Back to Devexpress

TcxImageCollection Class

vcl-cxgraphics-d955d8de.md

latest3.0 KB
Original Source

TcxImageCollection Class

A collection of images with support for image draw operations.

Declaration

delphi
TcxImageCollection = class(
    TcxCustomComponent
)

Remarks

The TcxImageCollection class implements a non-visual component that allows you to manage a collection of multiple images. An individual collection item stores an image in a TPicture container.

Main API Members

The list below outlines key members of the TcxImageCollection class. These members allow you to manage an image collection and draw individual images on the required canvas.

AddFromMultiFrameImageCreates and adds new collection items from the specified multi-frame image.CountReturns the number of stored images.DrawAllows you to draw a stored image on the specified canvas.GetAsMultiFrameTIFFGenerates a multi-frame TIFF image from stored images.Items

Allows you to manage the image collection.

You can call Items.Add and Items.Insert functions to create new collection items.

Design-Time Functionality

You can use one of the following options to populate the component with images at design time:

Collection Editor

This design-time dialog allows you to manage collection items.

To invoke this dialog, you can double-click the component or click the Edit… option in the component’s context menu. To load an image to a created collection item, use its Picture property.

Image Picker

You can use this dialog to load an image from your file system or the DevExpress Icon Library. The image collection component automatically creates collection items for all loaded images.

To invoke this dialog, click Add Images from Icon Library… in the component’s context menu.

Inheritance

TObject TPersistent TComponent TcxCustomComponent TcxImageCollection

See Also

TcxImageList Class

TdxSmartImage Class

Glyphs and Images

TcxImageCollection Members

cxGraphics Unit