diff options
author | Jane Liu <janeliulwq@google.com> | 2017-08-16 11:25:35 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-16 17:14:22 +0000 |
commit | ca89829775fec2968b51fe5abad86bad1b6a277b (patch) | |
tree | f276524600e7a4b8fa1cfb526302f330626cd815 /core/fpdfapi/render/cpdf_dibsource.h | |
parent | eb14e04c79c575146fe96c025dbf56b7440870c7 (diff) | |
download | pdfium-ca89829775fec2968b51fe5abad86bad1b6a277b.tar.xz |
API and test for retrieving metadata from image objects
Added FPDFImageObj_GetImageMetadata() for retriving the image metadata
of image objects, including its dimension, DPI, bits per pixel, and
colorspace.
* Added a corresponding embedder test.
Bug=pdfium:677
Change-Id: I4229334d1ac2125b21a46e2e44ea937ea2e94b51
Reviewed-on: https://pdfium-review.googlesource.com/10110
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Jane Liu <janeliulwq@google.com>
Diffstat (limited to 'core/fpdfapi/render/cpdf_dibsource.h')
-rw-r--r-- | core/fpdfapi/render/cpdf_dibsource.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/fpdfapi/render/cpdf_dibsource.h b/core/fpdfapi/render/cpdf_dibsource.h index 50e9a038e8..66a6d4e4e8 100644 --- a/core/fpdfapi/render/cpdf_dibsource.h +++ b/core/fpdfapi/render/cpdf_dibsource.h @@ -60,6 +60,7 @@ class CPDF_DIBSource : public CFX_DIBSource { int clip_left, int clip_width) const override; + const CPDF_ColorSpace* GetColorSpace() const { return m_pColorSpace; } uint32_t GetMatteColor() const { return m_MatteColor; } int StartLoadDIBSource(CPDF_Document* pDoc, |