StiMetafileConverter Class
Namespace: Stimulsoft.Base.Drawing
Class realize methods for conversion Metafile to string and string to Metafile.
Methods
| Method | Returns | Description |
|---|---|---|
BytesToMetafile static |
Metafile | Convert Bytes to Metafile. |
MetafileToBitmap static (+1 overloads) |
Bitmap | Converts metafile to bitmap. |
MetafileToBitmapBytes static |
byte[] | Converts metafile to bitmap bytes. |
MetafileToBytes static |
byte[] | Convert Metafile to Bytes. |
MetafileToPngBytes static (+1 overloads) |
byte[] | Converts metafile to bitmap in png format with specified size. |
MetafileToString static |
string | Convert Metafile to String. |
StringToMetafile static |
Metafile | Convert String to Metafile. |
Method Details
BytesToMetafile static
BytesToMetafile(**: bytebytes): Metafile
Convert Bytes to Metafile.
Parameters
- ** (bytebytes)
Returns Metafile
MetafileToBitmap static
MetafileToBitmap(**: bytemetafileBytes, **bitmapWidth: int, bitmapHeight: int): Bitmap
Converts metafile to bitmap.
Parameters
- ** (bytemetafileBytes)
- bitmapWidth (int)
- bitmapHeight (int)
Returns Bitmap
MetafileToBitmap(metafile: Metafile, bitmapWidth: int, bitmapHeight: int): Bitmap
Converts metafile to bitmap with specified size.
Parameters
- metafile (Metafile)
- bitmapWidth (int)
- bitmapHeight (int)
Returns Bitmap
MetafileToBitmapBytes static
MetafileToBitmapBytes(**: bytemetafileBytes, **bitmapWidth: int, bitmapHeight: int): byte[]
Converts metafile to bitmap bytes.
Parameters
- ** (bytemetafileBytes)
- bitmapWidth (int)
- bitmapHeight (int)
Returns byte[]
MetafileToBytes static
MetafileToBytes(metafile: Metafile): byte[]
Convert Metafile to Bytes.
Parameters
- metafile (Metafile)
Returns byte[]
MetafileToPngBytes static
MetafileToPngBytes(**: bytemetafileBytes, **bitmapWidth: int, bitmapHeight: int): byte[]
Converts metafile to bitmap in png format with specified size.
Parameters
- ** (bytemetafileBytes)
- bitmapWidth (int)
- bitmapHeight (int)
Returns byte[]
MetafileToPngBytes(metafile: Metafile, bitmapWidth: int, bitmapHeight: int): byte[]
Converts metafile to bitmap in png format with specified size.
Parameters
- metafile (Metafile)
- bitmapWidth (int)
- bitmapHeight (int)
Returns byte[]
MetafileToString static
MetafileToString(metafile: Metafile): string
Convert Metafile to String.
Parameters
- metafile (Metafile) — Metafile for converting.
Returns string — Result string.
StringToMetafile static
StringToMetafile(str: string): Metafile
Convert String to Metafile.
Parameters
- str (string)
Returns Metafile