Properties · Methods · Demos · Examples
Declaration TIEShapeLayer = class(TIELayer ); Description
TImageEnView supports multiple layers, allowing the creation of a single image from multiple source images (which can be resized, rotated, moved, etc).
TIEShapeLayer is a descendent of
TIELayer that displays one of ImageEn's one hundred
built-in shapes .
You can create shape layers with code using
LayersAdd or by user action by setting
MouseInteractLayers to
mlCreateShapeLayers .
Review the
Layer Documentation for a full description of layer support.
Note: If you need a shape with text, use a
TIETextLayer and specify a
BorderShape
Demo Description Demo Project Folder Compiled Demo
All Layer Editing Usage of image , shape , text , polygon and line layers LayerEditing\Layers_AllTypes\Layers.dpr
Stamp Layers Add text, shapes, images and arrows directly to an image by clicking and dragging LayerEditing\StampTextAndShapes\StampLayers.dpr
// Add a yellow explosion layer ImageEnView1.LayersAdd( ielkShape ); TIEShapeLayer( ImageEnView1.CurrentLayer ).Shape := iesExplosion; ImageEnView1.CurrentLayer.FillColor := clYellow; ImageEnView1.CurrentLayer.BorderColor := $004080FF; ImageEnView1.CurrentLayer.BorderWidth := 2; ImageEnView1.Update(); // Remove the border... ImageEnView1.CurrentLayer.BorderWidth := 0; ImageEnView1.Update(); // Allow users to create and edit shape layers ImageEnView1.MouseInteractLayers := [ mlCreateShapeLayers, mlMoveLayers, mlResizeLayers ];
General
Style
Size and Position
Unique to TIEShapeLayer
See Also
◼ Layer Editing Overview
◼ LayersAdd
◼ LayersInsert
◼ TIEShape
◼ MouseInteractLayers
◼ AdvancedDrawShape
Loading contents...