 | PdfiumFPDFImageObj_LoadJpegFile Method |
Load Image from a JPEG image file and then set it to an image object.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static IntPtr FPDFImageObj_LoadJpegFile(
IntPtr pages,
int nCount,
IntPtr image_object,
FPDF_FILEACCESS fileAccess
)
Public Shared Function FPDFImageObj_LoadJpegFile (
pages As IntPtr,
nCount As Integer,
image_object As IntPtr,
fileAccess As FPDF_FILEACCESS
) As IntPtr
public:
static IntPtr FPDFImageObj_LoadJpegFile(
IntPtr pages,
int nCount,
IntPtr image_object,
FPDF_FILEACCESS^ fileAccess
)
static member FPDFImageObj_LoadJpegFile :
pages : IntPtr *
nCount : int *
image_object : IntPtr *
fileAccess : FPDF_FILEACCESS -> IntPtr
public static IntPtr FPDFImageObj_LoadJpegFile(
IntPtr pages,
int nCount,
IntPtr image_object,
FPDF_FILEACCESS fileAccess
)
Patagames.Pdf.Pdfium.FPDFImageObj_LoadJpegFile = function(pages, nCount, image_object, fileAccess);
Parameters
- pages IntPtr
- Pointers to the start of all loaded pages, could be IntPtr.Zero.
- nCount Int32
- Number of pages, could be 0.
- image_object IntPtr
- Handle to image object returned by FPDFPageObj_NewImgeObj(IntPtr).
- fileAccess FPDF_FILEACCESS
- The custom file access handler, which specifies the JPEG image file.
Return Value
IntPtrJpeg file handle if successful, IntPtr.Zero otherwise.
RemarksThe image object might already has an associated image, which is shared and cached by the loaded pages, In this case, we need to clear the cache of image for all the loaded pages.
Pass pages and count to this API to clear the image cache. The image must be destroyed by calling
FPDFImageObj_DestroyJpegFile(IntPtr)
See Also