GraphDocumentExportActionsRenderToStream(GraphDocument, Stream, BrushX, BrushX, PixelFormat, Double, Double) Method |
Saves the graph into a stream.
Namespace: Altaxo.Graph.Graph3DAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static (int PixelsX, int PixelsY) RenderToStream(
this GraphDocument doc,
Stream stream,
BrushX backbrush1,
BrushX backbrush2,
PixelFormat pixelformat,
double sourceDpiResolution,
double destinationDpiResolution
)
Parameters
- doc GraphDocument
- The graph document to export.
- stream Stream
- The stream to render inot.
- 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
ValueTupleInt32,
Int32The pixel dimensions of the image if the rendering was successful. The tuple (0,0) is returned if the rendering was unsuccessful, e.g. if no exporter was available.
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