ImageEn, unit iexLayers

TIEImageLayer

TIEImageLayer


Description


TImageEnView supports multiple layers, allowing the creation of a single image from multiple source images (which can be resized, rotated, moved, etc).
TIEImageLayer is a descendent of TIELayer which contains an image.



You can create image layers with code using LayersAdd or by user action by setting MouseInteractLayers to mlCreateImageLayers.

Review the Layer Documentation for a full description of layer support.


Examples


// Load an image layer and assign a pink border
ImageEnView1.LayersAdd( ielkImage ); // Append an image layer
ImageEnView1.IO.LoadFromFile('C:\New Zealand.jpg'); // Load image into the new/active layer
ImageEnView1.CurrentLayer.BorderColor := $008000FF;
ImageEnView1.CurrentLayer.BorderWidth := 3;
ImageEnView1.Update();



// Fix the aspect ratio of an image (that has been resized)
if ImageEnView1.CurrentLayer is TIEImageLayer then
  ImageEnView1.CurrentLayer.RestoreAspectRatio();
ImageEnView1.Update();

// Allow users to create and edit image layers
ImageEnView1.LayerOptions := ImageEnView1.LayerOptions + [ loAutoPromptForImage ]; // Prompt user to browse for image
ImageEnView1.MouseInteractLayers := [ mlCreateImageLayers, mlMoveLayers, mlResizeLayers ];



Methods and Properties


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


Image Access
  Bitmap
  Clear
  CropAlpha
  ExecuteOpenDialog


Style
  AlphaEdgeFeathering
  BorderColor
  BorderWidth
  Cropped
  Opacity
  Operation
  ResampleFilter
  Rotate
  RotateCenterX
  RotateCenterY
  SoftShadow
  UseResampleFilter


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

 Unique to TIEImageLayer



See Also


- LayersAdd
- LayersInsert
- TIELayerKind
- MouseInteractLayers