ImageGear for .NET
Rasterize(ImGearDoublePoint,ImGearSize,Int32,Double,Double) Method




Specifies the coordinates of the upper-left corner of the area to be rasterized. The coordinates should be non-negative and provided in the output raster pixel units.
Specifies the size of the rasterized area. The size should be non-negative, non-zero and provided in the output raster pixel units. The output raster image DIB will have this value as a width and height.
Specifies bit depth value for PDF rasterization. The greater this value, the higher quality of the output raster image you get after rasterization. The output raster image DIB will have this value as a bit count. Available values: 1, 8, 24 and 32.
Specifies horizontal resolution value in dots-per-inch for PDF rasterization. The greater this value, the higher quality of the output raster image you get after rasterization. Must be positive.
Specifies vertical resolution value in dots-per-inch for PDF rasterization. The greater this value, the higher quality of the output raster image you get after rasterization. Must be positive.
Rasterizes a portion of the page using the provided parameters.
Syntax
'Declaration
 
Public Overloads Function Rasterize( _
   ByVal location As ImGearDoublePoint, _
   ByVal size As ImGearSize, _
   ByVal bitDepth As Integer, _
   ByVal resolutionX As Double, _
   ByVal resolutionY As Double _
) As ImGearRasterPage
'Usage
 
Dim instance As ImGearPDFPage
Dim location As ImGearDoublePoint
Dim size As ImGearSize
Dim bitDepth As Integer
Dim resolutionX As Double
Dim resolutionY As Double
Dim value As ImGearRasterPage
 
value = instance.Rasterize(location, size, bitDepth, resolutionX, resolutionY)

Parameters

location
Specifies the coordinates of the upper-left corner of the area to be rasterized. The coordinates should be non-negative and provided in the output raster pixel units.
size
Specifies the size of the rasterized area. The size should be non-negative, non-zero and provided in the output raster pixel units. The output raster image DIB will have this value as a width and height.
bitDepth
Specifies bit depth value for PDF rasterization. The greater this value, the higher quality of the output raster image you get after rasterization. The output raster image DIB will have this value as a bit count. Available values: 1, 8, 24 and 32.
resolutionX
Specifies horizontal resolution value in dots-per-inch for PDF rasterization. The greater this value, the higher quality of the output raster image you get after rasterization. Must be positive.
resolutionY
Specifies vertical resolution value in dots-per-inch for PDF rasterization. The greater this value, the higher quality of the output raster image you get after rasterization. Must be positive.

Return Value

ImageGear.Core.ImGearRasterPage object representing the rasterized tile.
Remarks

This method is designed to be used for tiled PDF rasterization as illustrated below:

If the size of the area exceeds the size of the page in the output raster pixel coordinates, it will be partially blacked.

See Also

Reference

ImGearPDFPage Class
ImGearPDFPage Members
Overload List

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback