ImageEn, unit iemview

TImageEnMView.SelectedImage

TImageEnMView.SelectedImage


Declaration


property SelectedImage: integer;


Description


Get or set the currently selected image (which will be drawn with a colored border.

You can get the bitmap of the selected image using IEBitmap or Bitmap.


Example


// Paint frame number on each thumbnail
ImageEnMView1.LockUpdate();
for I := 0 to ImageEnMView1.ImageCount - 1 do
begin
  ImageEnMView1.SelectedImage := I;
  ImageEnMView1.Proc.TextOut(Align_text_near_top,
                             Align_text_near_left,
                             '#' + IntToStr( I + 1 ),
                             'Arial',
                             32,
                             clRed,
                             [fsBold]);
end;
ImageEnMView1.UnlockUpdate();


See Also


- SelectedFilename
- SelectedFilenames
- SelectedImageAlwaysVisible