ImageEn, unit iexBitmaps

TIEMask


Declaration

TIEMask = class;


Description

Contains a selection, which is a map of selected and unselected pixels.
A selection map can have a depth of 1 bit or 8 bit.
For a map of 1 bit, 0 is a non-selected pixel, while 1 is selected.
For a map of 8 bit, 0 is non-selected pixel, 1-254 is a "semi" selected pixel, and 255 is fully selected pixel.

TImageEnView component uses this class to store current selection in SelectionMask property.


Examples

// Select points 50,50 and 55,55
ImageEnView1.SelectionMask.SetPixel(50, 50, 1);
ImageEnView1.SelectionMask.SetPixel(55, 55, 1);
ImageEnView1.SelectCustom();

// Select all pixels that are blue or green (SelectionMaskDepth=1)
for y := 0 to ImageEnView1.IEBitmap.Height - 1 do
  for x := 0 to ImageEnView1.IEBitmap.Width - 1 do
  begin
    color := ImageEnView1.IEBitmap.Pixels[x, y];
    if ( color = clBlue ) or ( color = clGreen ) then
    begin
      ImageEnView.SelectionMask.SetPixel(X, Y, 1);
      ImageEnView.SelectCustom();
    end;
  end;


Methods and Properties

Public Method  AllocateBits
Public Method  Assign
Public Property  Bits
Public Property  BitsPerPixel
Public Method  CombineWithAlpha
Public Method  CopyBitmap
Public Method  CopyIEBitmap
Public Method  CopyIEBitmapAlpha
Public Method  DrawOuter
Public Method  DrawOutline
Public Method  DrawPolygon
Public Method  Empty
Public Method  Fill
Public Method  FreeBits
Public Property  Full
Public Method  GetPixel
Public Property  Height
Public Method  Intersect
Public Method  InvertCanvas
Public Method  IsEmpty
Public Method  IsPointInside
Public Method  Negative
Public Method  Resize
Public Property  Rowlen
Public Property  ScanLine
Public Method  SetEllipse
Public Method  SetPixel
Public Method  SetRectangle
Public Method  SyncFull
Public Method  SyncRect
Public Method  TranslateBitmap
Public Property  Width
Public Property  X1
Public Property  X2
Public Property  Y1
Public Property  Y2