TcxDBImage Class
A data-aware image editor.
Declaration
TcxDBImage = class(
TcxCustomImage
)
Remarks
A data-aware image editor is designed to display and manage images stored in a database. Users can invoke a context menu to manage images.
Image editors can use different TGraphic class descendants as image containers. You can use Properties.GraphicClass and Properties.GraphicClassName properties to switch between image container types.
Supported Image Formats
- Device-independent bitmap (BMP or DIB)
- Graphics Interchange Format (GIF) with support for animation
- Joint Photographic Experts Group (JPG, JPEG, etc.)
- Portable Network Graphics (PNG)
- Tagged Image File Formats (TIFF)
- Scalable Vector Graphics (SVG)
- Windows Metafiles (EMF and WMF)
- Icons (ICO)
Main API Members
The list below outlines key members of the TcxDBImage
class that allow you to load and save images as well as configure image editor settings.
- Bind the image editor to data (DataBinding).
- Customize editor settings (Properties).
- Assign a repository item as an external source of image editor settings (RepositoryItem).
- Identify active image editor settings (ActiveProperties).
- Specify if the image editor uses its parent color to fill the background area when no image is displayed (ParentColor).
- Configure GIF animation settings (AnimationOptions).
- Switch between supported clipboard image formats (ClipboardFormat).
- Perform clipboard operations (CopyToClipboard, CutToClipboard, and PasteFromClipboard).
- Invoke Open and Save As dialogs for the image editor (LoadFromFile and SaveToFile).
- Access the image container, configure its settings, and manage the stored image (Picture).
- Zoom the displayed image in or out and customize zoom-related settings (ZoomingOptions).
- Disable or enable the image editor (Enabled).
- Specify if the editor is transparent in GDI render mode (Transparent).
- Configure look & feel and base editor appearance settings (Style).
- Define individual appearance settings for different editor states (StyleDisabled, StyleFocused, and StyleHot).
- Resize editor dimensions (Width and Height).
- Access individual styles applied to the image editor (Styles).
Repository Item Class
You can create a TcxEditRepositoryImageItem component in an edit repository to store image editor settings and share them between multiple image editors.
Limitations
- You cannot use a data-aware image editor as an in-place editor in container controls.
- Ensure that the bound dataset field contains image data; otherwise, an error may occur.
Inheritance
See Also