Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot Namespace / ViewportLayout Class / WriteToFileRaster Method / WriteToFileRaster(Single,Double,String,ImageFormat,Boolean,Boolean) Method
The image scale
The factor applied to the line weight of the wire entities
A string that contains the name of the file to which to save the raster image
The file format of the raster image
If false, the drawing of the background is skipped
If true, use the hardware acceleration (OpenGL only)

In This Topic
    WriteToFileRaster(Single,Double,String,ImageFormat,Boolean,Boolean) Method
    In This Topic
    Saves a raster image of the current viewport scene on disk.
    Syntax
    'Declaration
     
    Public Overloads Sub WriteToFileRaster( _
       ByVal drawScaleFactor As Single, _
       ByVal lineWeightFactor As Double, _
       ByVal fileName As String, _
       ByVal format As ImageFormat, _
       ByVal drawBackground As Boolean, _
       Optional ByVal hdwAcceleration As Boolean _
    ) 
    public void WriteToFileRaster( 
       float drawScaleFactor,
       double lineWeightFactor,
       string fileName,
       ImageFormat format,
       bool drawBackground,
       bool hdwAcceleration
    )

    Parameters

    drawScaleFactor
    The image scale
    lineWeightFactor
    The factor applied to the line weight of the wire entities
    fileName
    A string that contains the name of the file to which to save the raster image
    format
    The file format of the raster image
    drawBackground
    If false, the drawing of the background is skipped
    hdwAcceleration
    If true, use the hardware acceleration (OpenGL only)
    Remarks
    The saved file will contain a 24-bit image.If the file exists, it's overwritten.To get a 32-bit image with transparent background set the devDept.Graphics.BackgroundSettings.StyleMode to devDept.Graphics.backgroundStyleType.None.
    See Also