<< Click to Display Table of Contents >> NShape Reference
|
Combines a GDI+ System.Drawing.Image with a name.
public class NamedImage : IDisposable |
Combines a GDI+ System.Drawing.Image with a name, by default the file name without path and extension.
In contrast to the System.Drawing.Image, the NamedImage does not lock the image file when opening it.
Name |
Description |
---|---|
FromFile |
Loads an image from a file. |
IsNullOrEmpty |
Returns true if the given NamedImage reference is null or does neither contain a valid path to an existing file nor an image. |
Name |
Description |
---|---|
FilePath |
Full path to the image file. |
Height |
Specifies the height of the image in pixels. 0 if no image is loaded. |
Image |
The GDI+ image. |
Name |
The name of the image. |
Size |
Size of the image. Same as Width and Height. Size.Empty if no image is loaded. |
Width |
Specifies the width of the image in pixels. 0 if no image is loaded. |
Name |
Description |
---|---|
Constructor |
|
Clone |
Creates a copy of this NamedImage. |
Dispose |
Release all resources. |
Load |
Loads an image from a file specified by the given path. |
Save |
Saves the image as image file at the specified path. |
ToString |
Returns the name of the image. |
Namespace: Dataweb.NShape.Advanced
Assembly: Dataweb.NShape