Return a raster copy of this image.
Syntax

[C#]

XImage ToRaster();
XImage ToRaster(double dotsPerInch);
XImage ToRaster(XExport inExport);

[Visual Basic]

Function ToRaster() As XImage
Function ToRaster(dotsPerInch As Double) As XImage
Function ToRaster(inExport As XExport) As XImage
Params
Name Description
dotsPerInch The resolution to rasterize at in DPI
inExport The export options.
Notes

This method creates a new image identical to this one except in raster format. Multiple page vector images will be converted to a single page image of the current Frame.

The two different versions of the function work a slightly different way.

The parameterless function works directly, preserving transparency where appropriate. It is the version you will tend to want to use.

The version taking a type works via an intermediate file format which means that export settings affect the output. It is maintained for backwards compatibility with older code. The UseAlpha property determines if alpha transparency is preserved in the output Bitmap. The HRes and VRes properties determine the resolution of the output.

See Also

IsRaster

Rasterize

XExport

Example

None.