Class CgmImage
CgmImage class
Represents a CGM file in binary mode
public class CgmImage : Image
Constructors
| Name | Description |
|---|
| CgmImage() | The default constructor. |
Properties
| Name | Description |
|---|
| virtual BackgroundColor { get; set; } | Gets or sets a value for the background color. |
| Bounds { get; } | Gets the image bounds. |
| Container { get; } | Gets the Image container. |
| Data { get; } | Provides CGM data structure |
| DataStreamContainer { get; } | Gets the object’s data stream. |
| Disposed { get; } | Gets a value indicating whether this instance is disposed. |
| virtual HasBackgroundColor { get; set; } | Gets or sets a value indicating whether image has background color. |
| override Height { get; } | |
| override IsCached { get; } | |
| Palette { get; set; } | Gets or sets the color palette. |
| Size { get; } | Gets the image size. |
| virtual UnitlessDefaultUnitType { get; } | Assumed unit type when UnitType is set to Unitless |
| UnitType { get; } | Gets current unit type. |
| override Width { get; } | |
Methods
| Name | Description |
|---|
| override CacheData() | |
| CanSave(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. |
| Dispose() | Disposes the current instance. |
| virtual GetStrings() | Gets all string values from image. |
| Save() | Saves the image data to the underlying stream. |
| Save(Stream) | Saves the object’s data to the specified stream. |
| virtual Save(string) | Saves the object’s data to the specified file location. |
| Save(Stream, ImageOptionsBase) | Saves the image’s data to the specified stream in the specified file format according to save options. |
| virtual Save(string, bool) | Saves the object’s data to the specified file location. |
| virtual Save(string, ImageOptionsBase) | Saves the object’s data to the specified file location in the specified file format according to save options. |
| SaveAsync(Stream, ImageOptionsBase) | Saves the image’s data to the specified stream in the specified file format according to save options. |
| virtual SaveAsync(string, ImageOptionsBase) | Saves the object’s data to the specified file location in the specified file format according to save options. |
See Also