PXCV_DrawPageToDIBSection

<< Click to Display Table of Contents >>

Navigation:  Functions >

PXCV_DrawPageToDIBSection


 

pdf-xchange-editor-simple-sdk_100x100 PXCV_DrawPageToDIBSection

 


 

PXCV_DrawPageToDIBSection creates a Windows graphics device interface DIB section from document pages.

 

HRESULT  PXCV_DrawPageToDIBSection(

PXVDocument Doc,

DWORD page_num,

LPPXV_CommonRederParameters pParams,

HDC hBaseDC,

COLORREF backcolor,

HBITMAPpResDIBSection,

HANDLE hSection,

DWORD dwOffset

);

 

Parameters

 

Doc

[in] Specifies a document that PXCV_Init created.

 

page_num

[in] Specifies the zero-based page number to be drawn.

 

pParams

[in] Pointer to the PXV_CommonRenderParameters structure, which defines drawing parameters. Please note that this function ignores the pxvrpf_UseVectorRenderer flag contained in the Flags field of PXV_CommonRenderParameters.

 

hBaseDC

[in] Handle of the device context used to create DIB sections. This parameter can be set to NULL if desired.

 

backcolor

[in] Specifies the background color. The most significant byte is used as the transparency value. 0 is full transparency and 255 is no transparency.

 

pResDIBSection

[out] Pointer to the HBITMAP variable that receives the DIB section handle.

 

hSection

[in] Handle of the file-mapping object used to create the DIB section. This parameter can be set to NULL if desired. See CreateDIBSection for further information about this parameter.

 

dwOffset

[in] Specifies the offset from the the beginning of the object that hSection references to where storage of the bitmap bit values begin. This value is ignored if hSection is NULL. Please note that the bitmap bit values are aligned on doubleword boundaries, therefore the offset must be a multiple of the size of a DWORD.

 

Please note that all functions and parameters are case-sensitive.

 

Return Values

 

If the function fails then the return value is an error code.

 

If the function succeeds then the return value is DS_OK, or a different value that isn't an error code.