Click or drag to resize

GraphDocumentExportActionsRenderAsEnhancedMetafileBitmapFormat Method

Creates a new metafile and renders a bitmap into it.

Namespace: Altaxo.Graph.Gdi
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static Metafile RenderAsEnhancedMetafileBitmapFormat(
	Bitmap bmp,
	PointD2D docSize,
	Stream? stream = null
)

Parameters

bmp  Bitmap
The image to render.
docSize  PointD2D
The document size (in points = 1/72 inch).
stream  Stream  (Optional)
Optional: if given, the metafile is additionally rendered into the stream.

Return Value

Metafile
The newly created metafile. It contains only the provided bitmap.
See Also