WmfImage
WmfImage class
Represents one vector image in WMF (Windows MetaFile) format with its metadata and additional methods
public sealed class WmfImage : MetaImageBase
Constructors
Name |
Description |
WmfImage(string, Stream) |
Creates new WmfImage instance from content, represented as byte stream, and with specified name |
WmfImage(string, string) |
Creates new WmfImage instance from content, represented as base64-encoded string, and with specified name |
Properties
Name |
Description |
AspectRatio { get; } |
Returns aspect ratio of this vector image |
override ByteContent { get; } |
Returns a content of this WMF image as a binary stream |
FilenameWithExtension { get; } |
Returns correct filename of this vector image, which consists of name and extension. Theoretically can differ from the name. |
IsDisposed { get; } |
Determines whether this raster image is disposed (true ) or not (false ) |
LinearDimensions { get; } |
Returns linear dimensions of this vector image (width and height) |
Name { get; } |
Returns name of this vector image. Usually doesn’t contain filename extension and theoretically can differ from filename. |
override TextContent { get; } |
Returns a content of this WMF image as a plain text |
override Type { get; } |
Returns ImageType.Wmf |
Methods
Name |
Description |
override Dispose() |
Disposes this WMF image by disposing its content and making most its methods and properties non-working |
Equals(IHtmlResource) |
Checks this instance with specified on reference equality. |
override Save(string) |
Saves this WMF image to the file |
override SaveToPng(Stream) |
Saves this vector WMF image into raster PNG image |
override SaveToSvg(Stream) |
Saves this vector WMF image into vector SVG image |
static IsValid(Stream) |
Checks whether specified stream is a valid WMF image |
static IsValid(string) |
Checks whether specified base64-encoded string is a valid WMF image |
Events
Name |
Description |
event Disposed |
Event, which occurs when this raster image is disposed |
See Also