ImageEn, unit iexLayerMView |
|
TImageEnLayerMView
Properties · Methods · Events · Demos · Examples
Declaration
TImageEnLayerMView = class(TIECustomMView);
Description
The TImageEnLayerMView component is a descendent of
TImageEnMView, but is designed to display the
layers of a TImageEnView (i.e. all of the layers of a multi-layer file format, such as a PSD, IEN or SVG file).
To use TImageEnLayerMView, simply set the
AttachedImageEnView property to a
TImageEnView.
TImageEnLayerMView provides the following features:
◼Preview of all layers of a TImageEnView, with thumbnail, layer type, position, size and rotation information
◼Selection of thumbnails to select the relevant layer (
Optional)
◼Buttons to set the
Visible,
Locked or
IsMask status of layers (
Optional)
◼Dragging of thumbnails to re-arrange them (
Optional)
◼Dragging of thumbnails outside the control (or clicking Delete) to remove them (
Optional)
Note: You can also display layers in a standard
TImageEnMView, using
AssignLayers
| Demos\Actions\Actions_Layers\LayerActions.dpr |
| Demos\Layers\Layers_AllTypes\Layers.dpr |
| Demos\LayerEditing\Layers_Images\Layers.dpr |
| Demos\LayerEditing\Layers_Lines\Layers.dpr |
| Demos\LayerEditing\Layers_Text\TextLayers.dpr |
// Set up
IELayerMView1.AttachedImageEnView := ImageEnView1;
// Thumbnails or details?
if fShowLayersAsThumbs then
IELayerMView1.Style := iemsFlat
else
IELayerMView1.Style := iemsFlatAndWide;
// Background down to front-most, or reversed?
if fLayerViewReversed then
IELayerMView1.LayerOrder := ieloTopFirst
else
IELayerMView1.LayerOrder := ieloBackgroundFirst;
// Enable dragging of thumbnails to rearrange layers and remove layers
IELayerMView1.LayerOptions := IELayerMView1.LayerOptions + [ lvDragOrdering, lvDragDelete ];
// Move buttons to the top-right of thumbnail
ImageEnLayerMView1.ButtonParams.Position := iecpTopRight;
Common Members
Display
Thumbnail Text
Thumbnail Appearance
Thumbnail Spacing
Selections
User Interaction
ScrollBars
Other
Layer Events
User Interaction Events
Paint Events
Other Events
Unique to TImageEnLayerMView