ImageGear .NET v25.0 - Updated
Rasterize(Int32,Int32,Int32) Method




ImageGear.Core Assembly > ImageGear.Core Namespace > ImGearVectorPage Class > Rasterize Method : Rasterize(Int32,Int32,Int32) Method
The bit depth of resulting raster page.
This parameter specifies the horizontal resolution in dots-per-inch during the vector page conversion into a raster image. The greater this value, the higher the quality of the raster image you get after rasterization. The DIB of the output raster image has this value as an X resolution.
This parameter specifies the vertical resolution in dots-per-inch during the vector page conversion into the raster image. The greater this value, the higher the quality of the raster image you get after rasterization. The DIB of the output raster image has this value as an Y resolution.
Rasterizes the page using provided bit depth and resolution parameters.
Syntax
'Declaration
 
Public Overloads MustOverride Function Rasterize( _
   ByVal bitDepth As Integer, _
   ByVal resolutionX As Integer, _
   ByVal resolutionY As Integer _
) As ImGearRasterPage
'Usage
 
Dim instance As ImGearVectorPage
Dim bitDepth As Integer
Dim resolutionX As Integer
Dim resolutionY As Integer
Dim value As ImGearRasterPage
 
value = instance.Rasterize(bitDepth, resolutionX, resolutionY)
public abstract ImGearRasterPage Rasterize( 
   int bitDepth,
   int resolutionX,
   int resolutionY
)
public: abstract ImGearRasterPage* Rasterize( 
   int bitDepth,
   int resolutionX,
   int resolutionY
) 
public:
abstract ImGearRasterPage^ Rasterize( 
   int bitDepth,
   int resolutionX,
   int resolutionY
) 

Parameters

bitDepth
The bit depth of resulting raster page.
resolutionX
This parameter specifies the horizontal resolution in dots-per-inch during the vector page conversion into a raster image. The greater this value, the higher the quality of the raster image you get after rasterization. The DIB of the output raster image has this value as an X resolution.
resolutionY
This parameter specifies the vertical resolution in dots-per-inch during the vector page conversion into the raster image. The greater this value, the higher the quality of the raster image you get after rasterization. The DIB of the output raster image has this value as an Y resolution.

Return Value

ImGearRasterPage class instance with rasterized vector data.
Remarks
The support level for parameter bitDepth depends on each particular vector format, i.e it may either just ignore it, or consider limited set of bit depths. Please see below the table of Vector formats, that describes how they handle the parameter bitDepth.
File Format bitDepth supported Remarks
Adobe PDF/Adobe PS Yes Supported values: 1, 8 and 24.
Computer Graphics Metafile (SGM) No Uses 8 bit Indexed or 24 bit RGB color space.
MicroStation Drawing (DGN) No Uses 8 bit Indexed or 24 bit RGB color space.
Design Web Format (DWF) No Uses 24 bit RGB color space.
AutoDesk AutoCAD (DWG) No Uses 8 bit Indexed or 24 bit RGB color space.
Drawing eXchange Format (DXF) No Uses 8 bit Indexed or 24 bit RGB color space.
Hewlett Packard Graphics Language (HPGL) No Uses 8 bit Indexed or 24 bit RGB color space.
Universal 3D (U3D) No Uses 24 bit RGB color space.
XML Paper Specification (XPS) No Uses 32 bit RGBA color space.
Scalable Vector Graphics (SVG) Yes Supported values: 24 and 32.
Office Open XML Word (DOCX) No Uses 24 bit RGB color space.
Office Open XML Excel (XLSX) No Uses 24 bit RGB color space.
Office Open XML PowerPoint (PPTX) No Uses 24 bit RGB color space.
Microsoft Office Word 97-2003 (DOC) No Uses 24 bit RGB color space.
Microsoft Office Excel 97-2003 (XLS) No Uses 24 bit RGB color space.
Microsoft Office PowerPoint 97-2003 (PPT) No Uses 24 bit RGB color space.
See Also

Reference

ImGearVectorPage Class
ImGearVectorPage Members
Overload List
ImGearRasterPage Class