ImageEn, unit iemview

TImageEnMView.Proc

TImageEnMView.Proc


Declaration


property Proc: TImageEnProc;


Description


The Proc property encapsulates the TImageEnProc component inside TImageEnMView (it is created automatically the first time that it is used). It allows you to perform image editing on the selected image.


Example


// Reverse colors of the selected image
ImageEnMView1.Proc.Negative;

// Reverse colors of all images in the TImageEnMView
ImageEnMView1.LockUpdate();
for i := 0 to ImageEnMView1.ImageCount - 1 do
begin
  ImageEnMView1.SelectedImage := i;
  ImageEnMView1.Proc.Negative;
end;
ImageEnMView1.SelectedImage := 0;
ImageEnMView1.UnlockUpdate();

// 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();