EmfImage

EmfImage class

Represents one vector image in Enhanced metafile format (EMF) format with its metadata and additional methods

public sealed class EmfImage : MetaImageBase

Constructors

Name Description
EmfImage(string, Stream) Creates new EmfImage instance from content, represented as byte stream, and with specified name
EmfImage(string, string) Creates new EmfImage 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 EMF 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 EMF image as a plain text
override Type { get; } Returns ImageType.Emf

Methods

Name Description
override Dispose() Disposes this EMF 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 EMF image to the file
override SaveToPng(Stream) Saves this vector EMF image into raster PNG image
override SaveToSvg(Stream) Saves this vector EMF image into vector SVG image
static IsValid(Stream) Checks whether specified stream is a valid EMF image
static IsValid(string) Checks whether specified base64-encoded string is a valid EMF image

Events

Name Description
event Disposed Event, which occurs when this raster image is disposed

See Also