30 lines
726 B
C++
30 lines
726 B
C++
// Copyright 2019 PDFium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
|
|
|
|
#ifndef CORE_FPDFDOC_CPDF_ICON_H_
|
|
#define CORE_FPDFDOC_CPDF_ICON_H_
|
|
|
|
#include "core/fxcrt/fx_coordinates.h"
|
|
#include "core/fxcrt/fx_string.h"
|
|
#include "core/fxcrt/retain_ptr.h"
|
|
|
|
class CPDF_Stream;
|
|
|
|
class CPDF_Icon final {
|
|
public:
|
|
CPDF_Icon(CPDF_Stream* pStream);
|
|
~CPDF_Icon();
|
|
|
|
CFX_SizeF GetImageSize() const;
|
|
CFX_Matrix GetImageMatrix() const;
|
|
ByteString GetImageAlias() const;
|
|
|
|
private:
|
|
RetainPtr<CPDF_Stream> const m_pStream;
|
|
};
|
|
|
|
#endif // CORE_FPDFDOC_CPDF_ICON_H_
|