/
GetPage
GetPage
Declaration
Delphi
function GetPage(PageNr , DPI:Integer):HBITMAP;
ActiveX
HRESULT _stdcall GetPage([in] long PagteNr, [in] long DPI, [out, retval] OLE_HANDLE * RetVal );
Arguments
Argument | Description |
---|---|
Page | Number of the page which should be rendered |
DPI | DPI value of the page image |
Return value
HBITMAP Handle to Windows Bitmap.
Description
This function returns a image of a PDF page in the desired DPI.
Sample
C# - getPage
// GetPage returns a Bitmap from a Page of the loaded document. Input Parameters are the Pagenumber and the DPI Size Bitmap bmp = Image.FromHbitmap((IntPtr)SignAPI.GetPage(pagenumber, 125)); panel.AutoScroll = true; pictureBox.SizeMode = PictureBoxSizeMode.AutoSize; pictureBox.Image = bmp;
Delphi
procedure TForm1.ButtonGetPageClick(Sender: TObject); var bmphandle:HBITMAP; bmp:TBitmap; begin // Get first Page in 150dpi bmphandle := SignApi.GetPage(1,150); if bmphandle <> 0 then begin bmp := TBitmap.Create; bmp.PixelFormat := pf32bit; bmp.Handle := bmphandle; bmp.SaveToFile('C:\Temp\page' + Trim(PageNumEdit.Text) + '_dpi' + Trim(EditDPI.text) + '.bmp' ); bmp.Free; end; end;
, multiple selections available,
Related content
GetPageSize
GetPageSize
More like this
SetSignDocMode
SetSignDocMode
More like this
LCDImageEx, LCDImageExR
LCDImageEx, LCDImageExR
More like this
ViewDocOnDeviceDefaultZoom
ViewDocOnDeviceDefaultZoom
More like this
AddBitmapFile
AddBitmapFile
More like this
AddSignatureImage
AddSignatureImage
More like this