Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fpdf_editimg.cpp File Reference

(0ccf980226462398d5097987466bcffd8236e1e9)

Include dependency graph for fpdf_editimg.cpp:

Go to the source code of this file.

Functions

FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFPageObj_NewImageObj (FPDF_DOCUMENT document)
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFImageObj_LoadJpegFile (FPDF_PAGE *pages, int count, FPDF_PAGEOBJECT image_object, FPDF_FILEACCESS *file_access)
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFImageObj_LoadJpegFileInline (FPDF_PAGE *pages, int count, FPDF_PAGEOBJECT image_object, FPDF_FILEACCESS *file_access)
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFImageObj_SetMatrix (FPDF_PAGEOBJECT image_object, double a, double b, double c, double d, double e, double f)
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFImageObj_SetBitmap (FPDF_PAGE *pages, int count, FPDF_PAGEOBJECT image_object, FPDF_BITMAP bitmap)
FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV FPDFImageObj_GetBitmap (FPDF_PAGEOBJECT image_object)
FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV FPDFImageObj_GetRenderedBitmap (FPDF_DOCUMENT document, FPDF_PAGE page, FPDF_PAGEOBJECT image_object)
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFImageObj_GetImageDataDecoded (FPDF_PAGEOBJECT image_object, void *buffer, unsigned long buflen)
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFImageObj_GetImageDataRaw (FPDF_PAGEOBJECT image_object, void *buffer, unsigned long buflen)
FPDF_EXPORT int FPDF_CALLCONV FPDFImageObj_GetImageFilterCount (FPDF_PAGEOBJECT image_object)
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFImageObj_GetImageFilter (FPDF_PAGEOBJECT image_object, int index, void *buffer, unsigned long buflen)
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFImageObj_GetImageMetadata (FPDF_PAGEOBJECT image_object, FPDF_PAGE page, FPDF_IMAGEOBJ_METADATA *metadata)
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFImageObj_GetImagePixelSize (FPDF_PAGEOBJECT image_object, unsigned int *width, unsigned int *height)

Function Documentation

◆ FPDFImageObj_GetBitmap()

FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV FPDFImageObj_GetBitmap ( FPDF_PAGEOBJECT image_object)

Definition at line 197 of file fpdf_editimg.cpp.

References k1bppMask, k1bppRgb, k8bppMask, k8bppRgb, kBgr, kBgra, kBgrx, and kInvalid.

Referenced by CheckPDFiumCApi(), and WriteImages().

Here is the caller graph for this function:

◆ FPDFImageObj_GetImageDataDecoded()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFImageObj_GetImageDataDecoded ( FPDF_PAGEOBJECT image_object,
void * buffer,
unsigned long buflen )

Definition at line 348 of file fpdf_editimg.cpp.

Referenced by CheckPDFiumCApi().

Here is the caller graph for this function:

◆ FPDFImageObj_GetImageDataRaw()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFImageObj_GetImageDataRaw ( FPDF_PAGEOBJECT image_object,
void * buffer,
unsigned long buflen )

Definition at line 371 of file fpdf_editimg.cpp.

Referenced by CheckPDFiumCApi().

Here is the caller graph for this function:

◆ FPDFImageObj_GetImageFilter()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFImageObj_GetImageFilter ( FPDF_PAGEOBJECT image_object,
int index,
void * buffer,
unsigned long buflen )

Definition at line 421 of file fpdf_editimg.cpp.

References CPDFPageObjectFromFPDFPageObject(), and FPDFImageObj_GetImageFilterCount().

Referenced by CheckPDFiumCApi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FPDFImageObj_GetImageFilterCount()

FPDF_EXPORT int FPDF_CALLCONV FPDFImageObj_GetImageFilterCount ( FPDF_PAGEOBJECT image_object)

Definition at line 394 of file fpdf_editimg.cpp.

Referenced by CheckPDFiumCApi(), and FPDFImageObj_GetImageFilter().

Here is the caller graph for this function:

◆ FPDFImageObj_GetImageMetadata()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFImageObj_GetImageMetadata ( FPDF_PAGEOBJECT image_object,
FPDF_PAGE page,
FPDF_IMAGEOBJ_METADATA * metadata )

Definition at line 442 of file fpdf_editimg.cpp.

References FPDF_IMAGEOBJ_METADATA::bits_per_pixel, FPDF_IMAGEOBJ_METADATA::colorspace, CPDFPageFromFPDFPage(), CPDF_Page::GetDocument(), CPDF_PageObject::GetRect(), FPDF_IMAGEOBJ_METADATA::height, FPDF_IMAGEOBJ_METADATA::horizontal_dpi, CPDF_DIB::kFail, CPDF_ColorSpace::kUnknown, FPDF_IMAGEOBJ_METADATA::marked_content_id, FPDF_IMAGEOBJ_METADATA::vertical_dpi, and FPDF_IMAGEOBJ_METADATA::width.

Referenced by CheckPDFiumCApi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FPDFImageObj_GetImagePixelSize()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFImageObj_GetImagePixelSize ( FPDF_PAGEOBJECT image_object,
unsigned int * width,
unsigned int * height )

Definition at line 496 of file fpdf_editimg.cpp.

Referenced by CheckPDFiumCApi().

Here is the caller graph for this function:

◆ FPDFImageObj_GetRenderedBitmap()

FPDF_EXPORT FPDF_BITMAP FPDF_CALLCONV FPDFImageObj_GetRenderedBitmap ( FPDF_DOCUMENT document,
FPDF_PAGE page,
FPDF_PAGEOBJECT image_object )

Definition at line 288 of file fpdf_editimg.cpp.

References CFX_Matrix::CFX_Matrix(), CPDF_ImageRenderer::CPDF_ImageRenderer(), CFX_Matrix::a, CFX_DefaultRenderDevice::Attach(), CFX_Matrix::b, CFX_Matrix::c, CPDF_ImageRenderer::Continue(), CPDFDocumentFromFPDFDocument(), CPDFPageFromFPDFPage(), CFX_Matrix::d, CFX_Matrix::e, CFX_Matrix::f, CPDF_Page::GetDocument(), CPDF_ImageRenderer::GetResult(), kBgra, CPDF_ImageObject::matrix(), CPDF_ImageRenderer::Start(), and CFX_Matrix::Translate().

Referenced by CheckPDFiumCApi(), TEST_F(), and WriteRenderedImages().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FPDFImageObj_LoadJpegFile()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFImageObj_LoadJpegFile ( FPDF_PAGE * pages,
int count,
FPDF_PAGEOBJECT image_object,
FPDF_FILEACCESS * file_access )

Definition at line 131 of file fpdf_editimg.cpp.

Referenced by CheckPDFiumCApi().

Here is the caller graph for this function:

◆ FPDFImageObj_LoadJpegFileInline()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFImageObj_LoadJpegFileInline ( FPDF_PAGE * pages,
int count,
FPDF_PAGEOBJECT image_object,
FPDF_FILEACCESS * file_access )

Definition at line 139 of file fpdf_editimg.cpp.

Referenced by CheckPDFiumCApi().

Here is the caller graph for this function:

◆ FPDFImageObj_SetBitmap()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFImageObj_SetBitmap ( FPDF_PAGE * pages,
int count,
FPDF_PAGEOBJECT image_object,
FPDF_BITMAP bitmap )

Definition at line 166 of file fpdf_editimg.cpp.

References CPDF_ImageObject::CalcBoundingBox(), CPDFPageFromFPDFPage(), and CPDF_PageObject::SetDirty().

Referenced by CheckPDFiumCApi(), and TEST_F().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FPDFImageObj_SetMatrix()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFImageObj_SetMatrix ( FPDF_PAGEOBJECT image_object,
double a,
double b,
double c,
double d,
double e,
double f )

Definition at line 147 of file fpdf_editimg.cpp.

References CFX_Matrix::CFX_Matrix(), CPDF_PageObject::SetDirty(), and CPDF_ImageObject::SetImageMatrix().

Referenced by CheckPDFiumCApi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FPDFPageObj_NewImageObj()

FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFPageObj_NewImageObj ( FPDF_DOCUMENT document)

Definition at line 118 of file fpdf_editimg.cpp.

References CPDFDocumentFromFPDFDocument().

Referenced by CheckPDFiumCApi().

Here is the call graph for this function:
Here is the caller graph for this function: