ImageEn, unit iemview

TImageEnMView.SelectImage

TImageEnMView.SelectImage


Declaration

procedure TIECustomMView.SelectImage(idx: integer);


Description

Sets the currently selected and active image without change the exiting selection.
The selected image will also become the active image that is returned by IEBitmap and affected by editing operations using Proc.

Note:
Calling SelectImage is the same as setting SelectedImage except selection of idx is forced and the existing selection is not cleared
For batch selection use BeginSelectImages and EndSelectImages


Example

// Deskew all selected scanned documents
ImageEnMView1.LockUpdate();
try
  for i := 0 to ImageEnMView1.MultiSelectedImagesCount - 1 do
  begin
    selIdx := ImageEnMView1.MultiSelectedImages[i];
    ImageEnMView1.SelectImage( selIdx );
    angle := ImageEnMView1.Proc.SkewDetection();
    ImageEnMView1.Proc.RotateAndCrop( angle, ierBilinear, ImageEnMView1.IEBitmap.Height / ImageEnMView1.IEBitmap.Width, iecaSkewedDocument );
  end;
finally
  ImageEnMView1.UnlockUpdate();
end;


See Also

SelectedImage
SelectedFilename
SelectedFilenames
SelectedImageAlwaysVisible