From ca89829775fec2968b51fe5abad86bad1b6a277b Mon Sep 17 00:00:00 2001 From: Jane Liu Date: Wed, 16 Aug 2017 11:25:35 -0400 Subject: 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 Reviewed-by: dsinclair Commit-Queue: Jane Liu --- core/fpdfapi/render/cpdf_dibsource.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core') 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, -- cgit v1.2.3