ImageEn, unit iexLayers

TIEShapeLayer

TIEShapeLayer


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 pre-built 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 assign a BorderShape


Examples


// 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 ];



Methods and Properties


General
  Assign
  ConvertToImageLayer
  ConvertToPolylineLayer
  CopyToBitmap
  DrawingInfo
  DrawOuter
  DrawToCanvas
  GetProperties
  Guid
  GroupIndex
  IsMask
  Kind
  LayerIndex
  Locked
  MaskInverted
  Modified
  Name
  Selectable
  Selected
  SetProperties
  Swap
  SupportsFeature
  Tag
  UserData
  UserDataLen
  Visible
  VisibleBox


Style
  AntiAlias
  AlphaEdgeFeathering
  BorderColor
  BorderWidth
  Cropped
  FillColor
  FillColor2
  FillGradient
  FillOpacity
  Opacity
  Operation
  Rotate
  Shape
  ShapeModifier
  SoftShadow


Size and Position
  AspectRatioLocked
  ClientAreaBox
  ConvXBmp2Scr
  ConvXScr2Bmp
  ConvYBmp2Scr
  ConvYScr2Bmp
  Height
  PosX
  PosY
  PreferredAspectRatio
  RestoreAspectRatio
  Width

 Unique to TIEShapeLayer



See Also


- LayersAdd
- LayersInsert
- TIEShape
- TIELayerKind
- MouseInteractLayers