ImageGear .NET v25.0 - Updated
ExportPageToBitmap Method




ImageGear.Core Assembly > ImageGear.Formats Namespace > ImGearFileFormats Class : ExportPageToBitmap Method
Page to export.
Exports a System.Drawing.Bitmap, in one of the following formats, supported by System.Drawing.Bitmap: 1bpp Indexed, 4bpp Indexed, 8bpp Indexed, 24bpp RGB, 48bpp RGB, 64bpp ARGB.
Syntax
'Declaration
 
Public Shared Function ExportPageToBitmap( _
   ByVal page As ImGearPage _
) As Bitmap
'Usage
 
Dim page As ImGearPage
Dim value As Bitmap
 
value = ImGearFileFormats.ExportPageToBitmap(page)
public static Bitmap ExportPageToBitmap( 
   ImGearPage page
)
public: static Bitmap* ExportPageToBitmap( 
   ImGearPage* page
) 
public:
static Bitmap^ ExportPageToBitmap( 
   ImGearPage^ page
) 

Parameters

page
Page to export.

Return Value

System.Drawing.Bitmap class object, containing exported image.
Remarks
The method does not apply any processing to the image. It only converts image pixel format, if source format is not supported by System.Drawing.Bitmap. If source image contains Alpha channel, the method preserves it.

Due to a limitation in Microsoft .Net framework, the method exports 9-16bpp grayscale images to 48bpp RGB format rather than to 16bpp Grayscale.

See Also

Reference

ImGearFileFormats Class
ImGearFileFormats Members
ImGearRasterProcessing Class