TcxImageCollection Class
A collection of images with support for image draw operations.
Declaration
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.
- AddFromMultiFrameImage
- Creates and adds new collection items from the specified multi-frame image.
Count
- Returns the number of stored images.
- Draw
- Allows you to draw a stored image on the specified canvas.
- GetAsMultiFrameTIFF
- Generates 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.