ImageEn, unit iemview

TImageEnMView.ImageCount

TImageEnMView.ImageCount


Declaration

property ImageCount: integer; (Read-only)


Description

Returns the number of images stored in the TImageEnMView component.

Note: If you use a Filter then ImageCount may not more than then number of images in the control. Use FilteredCount instead


Demo

Demo  Demos\Multi\MViewPreview\MViewPreview.dpr


Example

// Display the filename and dimensions for each image
for I := 0 to ImageEnMView1.ImageCount - 1 do
begin
  ImageEnMView1.ImageInfoText[I]   := IEM_ImageDimensions;
  ImageEnMView1.ImageBottomText[I] := IEM_Filename;
end;

// Save all images in control to separate files
for i := 0 to ImageEnMView1.ImageCount - 1 do
  ImageEnMView1.GetImageToFile( i, 'D:\Image' + IntToStr( i ) + '.jpeg' );