xref: /aosp_15_r20/external/pdfium/core/fpdfdoc/cpdf_icon.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2019 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef CORE_FPDFDOC_CPDF_ICON_H_
8 #define CORE_FPDFDOC_CPDF_ICON_H_
9 
10 #include "core/fxcrt/bytestring.h"
11 #include "core/fxcrt/fx_coordinates.h"
12 #include "core/fxcrt/retain_ptr.h"
13 
14 class CPDF_Stream;
15 
16 class CPDF_Icon final {
17  public:
18   explicit CPDF_Icon(RetainPtr<const CPDF_Stream> pStream);
19   ~CPDF_Icon();
20 
21   CFX_SizeF GetImageSize() const;
22   CFX_Matrix GetImageMatrix() const;
23   ByteString GetImageAlias() const;
24 
25  private:
26   RetainPtr<const CPDF_Stream> const m_pStream;
27 };
28 
29 #endif  // CORE_FPDFDOC_CPDF_ICON_H_
30