ImageGear .NET v25.0 - Updated
Export(ImGearRasterPage,ImGearRectangle,ImGearRectangle,ImGearRectangle,ImGearInterpolationOptions,ImGearRGBQuad,Int32,Int32) Method




ImageGear.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class > Export Method : Export(ImGearRasterPage,ImGearRectangle,ImGearRectangle,ImGearRectangle,ImGearInterpolationOptions,ImGearRGBQuad,Int32,Int32) Method
Page to be exported.
Part of image to export.
Output area onto which exported image part will be scaled.
Interested part of device rectangle.
Interpolation method used to resize from image rectangle to device.
Background pixel to blend exporting page with. It's used only if the given page contains alpha or premultiplied alpha channel.
Specifies horizontal resolution of resulting GDI+ bitmap object. Measurement unit is PPM, i.e., pixels per meter.
Specifies vertical resolution of resulting GDI+ bitmap object. Measurement unit is PPM, i.e., pixels per meter.
Exports content of raster page to managed GDI+ image.
Syntax
'Declaration
 
Public Overloads Shared Function Export( _
   ByVal page As ImGearRasterPage, _
   ByVal imageRect As ImGearRectangle, _
   ByVal deviceRect As ImGearRectangle, _
   ByVal clipRect As ImGearRectangle, _
   ByVal interpolationOptions As ImGearInterpolationOptions, _
   ByVal backgroundColor As ImGearRGBQuad, _
   ByVal ppmX As Integer, _
   ByVal ppmY As Integer _
) As Bitmap
'Usage
 
Dim page As ImGearRasterPage
Dim imageRect As ImGearRectangle
Dim deviceRect As ImGearRectangle
Dim clipRect As ImGearRectangle
Dim interpolationOptions As ImGearInterpolationOptions
Dim backgroundColor As ImGearRGBQuad
Dim ppmX As Integer
Dim ppmY As Integer
Dim value As Bitmap
 
value = ImGearRasterProcessing.Export(page, imageRect, deviceRect, clipRect, interpolationOptions, backgroundColor, ppmX, ppmY)

Parameters

page
Page to be exported.
imageRect
Part of image to export.
deviceRect
Output area onto which exported image part will be scaled.
clipRect
Interested part of device rectangle.
interpolationOptions
Interpolation method used to resize from image rectangle to device.
backgroundColor
Background pixel to blend exporting page with. It's used only if the given page contains alpha or premultiplied alpha channel.
ppmX
Specifies horizontal resolution of resulting GDI+ bitmap object. Measurement unit is PPM, i.e., pixels per meter.
ppmY
Specifies vertical resolution of resulting GDI+ bitmap object. Measurement unit is PPM, i.e., pixels per meter.

Return Value

Instance of System.Drawing.Bitmap class.
Remarks
Exports an image of the page to GDI+ bitmap with the ability to specify the rectangular part of the image being exported and the interpolation method that should be used to resize the specified image part to device rectangle.

For more information see Displaying images topic.

See Also

Reference

ImGearRasterProcessing Class
ImGearRasterProcessing Members
Overload List
ImGearRasterPage Class
ImGearRectangle Structure
ImGearInterpolationOptions Class
ImGearRGBQuad Structure
ExportPageToBitmap Method