GraphDocumentExportActionsRenderAsBitmapToStream(GraphDocument, Stream, ImageFormat, BrushX, PixelFormat, Double, Double) Method |
Saves the graph as an bitmap file into the stream stream.
Namespace: Altaxo.Graph.GdiAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static (int pixelsX, int pixelsY) RenderAsBitmapToStream(
this GraphDocument doc,
Stream stream,
ImageFormat imageFormat,
BrushX? backbrush,
PixelFormat pixelformat,
double sourceDpiResolution,
double destinationDpiResolution
)
Parameters
- doc GraphDocument
- The graph document to export.
- stream Stream
- The stream to save the metafile into.
- imageFormat ImageFormat
- The format of the destination image.
- backbrush BrushX
- 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 is rendered to a bitmap.
- destinationDpiResolution Double
- Resolution of the resulting bitmap. This determines the physical 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