vcl-cximage-dot-tcxcustomimage-ed9d85a3.md
Provides access to the image container that stores the image displayed in the editor.
property Picture: TPicture read; write;
| Type | Description |
|---|---|
| TPicture |
Stores the image displayed in the editor.
Use the Picture.Graphic property to access the image container. You need to cast the Picture.Graphic property value to the corresponding terminal TGraphic class descendant to access all public API members.
Tip
The Properties.GraphicClass property defines the actual image container type. You can use the Properties.GraphicClass property to switch between registered image container types.
|
You can use the Picture.Graphic property to access the displayed image directly. To clear the editor, assign nil (in Delphi) or nullptr (in C++Builder) to the Picture.Graphic property.
To use a TGraphic class descendant as an image container (accessible through the Picture.Graphic property), assign the corresponding class reference to the Properties.GraphicClass property.
Tip
We recommend that you set the Properties.GraphicClass property to TdxSmartImage to ensure that the image editor supports the same image formats as all other DevExpress components.
BMP | EMF | GIF | JPEG | PNG | TIFF | WMFSupport for these image formats relies on corresponding native encoders from the Windows Imaging Component (WIC).SVGDevExpress controls use our own SVG engine implementation. Refer to the following topic for detailed information on supported SVG elements and their attributes: SVG Image Support.
Users can execute image load, edit, save, and delete commands in the editor’s context menu. To customize the context menu, use the Properties.PopupMenuLayout property.
You can use the Properties.Caption property to display a custom caption in the editor when it is empty. For example, you can prompt a user to perform an action:
See Also
TcxCustomImage.LoadFromFile Procedure
TcxCustomImage.SaveToFile Procedure