ImageEn, unit iemview

TImageEnMView.IsSelected

TImageEnMView.IsSelected


Declaration

function IsSelected(idx: Integer): Boolean;


Description

Returns true if the image, idx, is currently selected.

Note: To select items, use SelectedImage


Examples

// Rotate selected images right (90° clockwise)
for i := 0 to ImageEnMView1.ImageCount - 1 do
  if ImageEnMView1.IsSelected( i ) then
  begin
    bmp := ImageEnMView1.GetTIEBitmap( i );
    bmp.Rotate( 270 );
    ImageEnMView1.ReleaseBitmap( i, True );
  end;
ImageEnMView1.Update();


// Replace all selected images with 'new.jpg'
for idx := 0 to ImageEnMView1.ImageCount - 1 do
  if ImageEnMView1.IsSelected(idx) then
    ImageEnMView1.SetImageFromFile(idx, 'new.jpg');


See Also

MultiSelectedImages