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

(9c1f44f67466fea2fb20bb6f31fea388d8c65961)

+ 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 189 of file fpdf_editimg.cpp.

References k1bppMask, k1bppRgb, k8bppMask, k8bppRgb, kArgb, kInvalid, kRgb, and kRgb32.

Referenced by CheckPDFiumCApi(), and TEST_F().

+ 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 330 of file fpdf_editimg.cpp.

Referenced by CheckPDFiumCApi(), and TEST_F().

+ 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 351 of file fpdf_editimg.cpp.

Referenced by CheckPDFiumCApi(), and TEST_F().

+ 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 399 of file fpdf_editimg.cpp.

References CPDFPageObjectFromFPDFPageObject(), FPDFImageObj_GetImageFilterCount(), and NulTerminateMaybeCopyAndReturnLength().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ 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 372 of file fpdf_editimg.cpp.

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

+ 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 418 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(), TEST_F(), and TEST_F().

+ 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 472 of file fpdf_editimg.cpp.

Referenced by CheckPDFiumCApi(), and TEST_F().

+ 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 271 of file fpdf_editimg.cpp.

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

Referenced by CheckPDFiumCApi(), and TEST_F().

+ 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 127 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 135 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 162 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 143 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 114 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: