VectorImageResourceBase
VectorImageResourceBase class
Base class for any supported vector image
public abstract class VectorImageResourceBase : IImageResource
Properties
Name |
Description |
AspectRatio { get; } |
Returns aspect ratio of this vector image |
abstract ByteContent { get; } |
In implementing type should return a content of this vector image as byte 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. |
abstract TextContent { get; } |
In implementing type should return a content of this vector image in text form: base64-encoded of XML regarding of image type |
abstract Type { get; } |
In implementing type should return information about type of the vector image |
Methods
Name |
Description |
abstract Dispose() |
In implementing type should dispose this instance |
Equals(IHtmlResource) |
Checks this instance with specified on reference equality. |
abstract Save(string) |
In implementing type should save this image to the disk by specified path |
abstract SaveToPng(Stream) |
In implementing type should save a current vector image to the raster PNG format into specified byte stream |
Events
Name |
Description |
event Disposed |
Event, which occurs when this raster image is disposed |
See Also