Click or drag to resize

GraphDocumentExportActionsRenderAsBitmap(GraphDocument, BrushX, BrushX, PixelFormat, Double, Double) Method

Saves the graph as an bitmap file and returns the bitmap.

Namespace: Altaxo.Graph.Graph3D
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static Bitmap? RenderAsBitmap(
	this GraphDocument doc,
	BrushX backbrush1,
	BrushX backbrush2,
	PixelFormat pixelformat,
	double sourceDpiResolution,
	double destinationDpiResolution
)

Parameters

doc  GraphDocument
The graph document to export.
backbrush1  BrushX
First brush used to fill the background of the image (normally used with 24bbp bitmap formats to make the background opaque. Can be null.
backbrush2  BrushX
Second brush used to fill the background of the image. Can be null.
pixelformat  PixelFormat
Specify the pixelformat here.
sourceDpiResolution  Double
Resolution at which the graph document is rendered into a bitmap.
destinationDpiResolution  Double
Resolution which is assigned to the bitmap. This determines the physical size of the bitmap.

Return Value

Bitmap
The saved bitmap. You should call Dispose when you no longer need the bitmap.

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