TCnImage Class

An abstract base class that provides functionality for the Bitmap and Metafile descended classes.

Namespace: CNClrLib.Component.ImageList
TCollectionItem
  CNClrLib.Component.ImageList.TCnImage
type
 TCnImage = class(TCollectionItem)
 end;

The TCnImage type exposes the following members.

Show:
 NameDescription
Create(TCollection)

Creates and initializes a TCnImage instance.

Destroy

Frees the resources allocated with a TCnImage instance.

Top
Show:
 NameDescription
Flags

Gets attribute flags for the pixel data of this Image.

Height

Gets the height, in pixels, of this Image.

HorizontalResolution

Gets the horizontal resolution, in pixels per inch, of this Image.

Image

Represent the .Net image object as interface.

ImageCollection

Encapsulates the collection of Image objects in a CnImageList.

Name

The name of the Image.

PixelFormat

Gets the pixel format for this Image.

RawFormat

Gets the file format of this Image.

VerticalResolution

Gets the vertical resolution, in pixels per inch, of this Image.

Width

Gets the width, in pixels, of this Image.

Top
Show:
 NameDescription
Assign(TPersistent)

Copies the properties and content of another image.

DefineProperties(TFiler)

Represents method DefineProperties(TFiler).

DoImageChanged(TObject)

Represents method DoImageChanged(TObject).

GetDisplayName

Represents method GetDisplayName.

IsEqual(TCnImage)

Represents method IsEqual(TCnImage).

LoadFromFile(string)

Overloaded. Creates an Image from the specified file.

LoadFromStream(TStream)

Overloaded. Creates an Image from the TStream object.

LoadFromStream(_Stream)

Overloaded. Creates an Image from the Stream interface object.

SaveToFile(string)

Overloaded. Saves this image to the specified file.

SaveToFile(string,TImageFormat)

Overloaded. Saves this image to the specified file in the specified format.

SaveToStream(TStream)

Overloaded. Saves this image to the specified TStream.

SaveToStream(_Stream,TImageFormat)

Overloaded. Saves this image to the specified TStream in the specified format.

Top