GraphDocumentExportActionsRenderAsBitmapToFile(GraphDocument, String, ImageFormat, Double) Method |
Saves the graph as an bitmap file into the file filename using the default
pixel format 32bppArgb and no background brush.
Namespace: Altaxo.Graph.GdiAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static (int pixelX, int pixelY) RenderAsBitmapToFile(
this GraphDocument doc,
string filename,
ImageFormat imageFormat,
double dpiResolution
)
Parameters
- doc GraphDocument
- The graph document to export.
- filename String
- The filename of the file to save the bitmap into.
- imageFormat ImageFormat
- The format of the destination image.
- dpiResolution Double
- Resolution of the bitmap in dpi. Determines the pixel size of the bitmap.
Return Value
ValueTupleInt32,
Int32The dimensions of the bitmap in pixels.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
GraphDocument. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also