NShape Reference
NamedImage Class

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Advanced >

NShape Reference
NamedImage Class

Previous pageReturn to chapter overviewNext page

Combines a GDI+ System.Drawing.Image with a name.

Syntax

public class NamedImage : IDisposable

Description

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.

Public Static Methods

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.

Public Properties

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.

Public Methods

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.

Requirements

Namespace: Dataweb.NShape.Advanced

Assembly: Dataweb.NShape