TClrImage Class

Provides functionality for the Bitmap and Metafile descended classes.

Namespace: CNClrLib.Control.Graphics
TInterfacedPersistent
  CNClrLib.Control.Graphics.TClrImage
type
 TClrImage = class(TInterfacedPersistent, IStreamPersist)
 end;

The TClrImage type exposes the following members.

Show:
 NameDescription
Create

Overloaded. Initializes a new instance of the TClrImage class using the specified .Net image object.

Create(_Image)

Overloaded. Initializes a new instance of the TClrImage class.

Destroy

Frees the resources allocated with a TClrImage instance.

Top
Show:
 NameDescription
Flags

Gets attribute flags for the pixel data of this Image.

Graphic

Specifies the graphic that the picture contains.

Height

Gets the height, in pixels, of this Image.

HorizontalResolution

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

Image

Gets or sets the .Net image object as interface.

IsEmpty

Represents an internal image that is null.

OnChange

Occurs when a property of this class changes.

Palette

Gets or sets the color palette used for this 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 contents of another, similar object.

AssignTo(TPersistent)

Represents method AssignTo(TPersistent).

Changed(TObject)

Represents method Changed(TObject).

DefineProperties(TFiler)

Represents method DefineProperties(TFiler).

DoGraphicChange(TObject)

Represents method DoGraphicChange(TObject).

GetBase64StringFromImage

Converts the image to its equivalent string representation that is encoded with base-64 digits.

GetBounds(TGraphicsUnit)

Gets the bounds of the image in the specified unit.

ImageHelperIntf

Gets the .Net image static class as interface object.

IsEqual(TClrImage)

Checks whether the current instance and the Value parameter are equal.

LoadFromFile(string)

Overloaded. Creates an Image from the specified file.

LoadFromFile(string,Boolean)

Overloaded. Creates an Image from the specified file using embedded color management information in that file.

LoadFromGraphic(TGraphic)

Creates an Image from the specified graphic.

LoadFromStream(TStream)

Overloaded. Creates an Image from the specified data stream.

LoadFromStream(_Stream)

Overloaded. Creates an Image from the specified data stream.

LoadFromStream(_Stream,Boolean)

Overloaded. Creates an Image from the specified data stream, optionally using embedded color management information in that stream.

LoadImageFromBase64String(WideString)

Converts the specified string, which encodes binary data as base-64 digits, to an equivalent image.

RotateFlip(TRotateFlipType)

Rotates, flips, or rotates and flips the Image.

SaveToFile(string)

Overloaded. Saves this Image to the specified file or stream.

SaveToFile(string,TImageFormat)

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

SaveToStream(TStream)

Overloaded. Saves this image to the specified stream.

SaveToStream(_Stream,TImageFormat)

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

Top