From 28fb7ba083dba5e09493fd37a11994de51527dfc Mon Sep 17 00:00:00 2001 From: Jane Liu Date: Wed, 2 Aug 2017 21:45:57 -0400 Subject: APIs and tests for extracting bitmaps from image objects Added FPDFImageObj_GetBitmap() that returns the bitmap of an image object, and a FPDFBitmap_GetFormat() that returns the format of a bitmap. * Fixed a small bitmap conversion bug in cfx_dibsource.cpp. * Enabled EmbedderTest::CompareBitmap() to support different formats of bitmaps. * Added an embedder test and a test PDF file with images of many different formats. Bug=pdfium:677 Change-Id: I6a72f9d969cf5f3577db9400ca33197c213622ed Reviewed-on: https://pdfium-review.googlesource.com/9690 Reviewed-by: Lei Zhang Commit-Queue: Jane Liu --- testing/resources/embedded_images.pdf | Bin 0 -> 27089 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 testing/resources/embedded_images.pdf (limited to 'testing/resources/embedded_images.pdf') diff --git a/testing/resources/embedded_images.pdf b/testing/resources/embedded_images.pdf new file mode 100644 index 0000000000..81845822a4 Binary files /dev/null and b/testing/resources/embedded_images.pdf differ -- cgit v1.2.3