Declaration
procedure PrintImages(Columns:integer; Rows:integer; HorizSpace:double; VertSpace:double; PrintSelected:boolean; MarginLeft:double; MarginTop:double; MarginRight:double; MarginBottom:double; DrawBox:boolean; DrawText:boolean; DrawShadow:boolean; BoxColor: TColor = clBlack);
Description
PrintImages prints all images or only selected images.
You can specify number of columns and rows, spaces between images and margins. It is possible also to draw box around images, shadows and text.
| Parameter | Description |
| Columns | Specifies how arrange images, specifying the number of columns. |
| Rows | Specifies how arrange images, specifying the number of rows. |
| HorizSpace | The horizontal space in inches between images. |
| VertSpace | The vertical space in inches between images. |
| PrintSelected | This is true if you want to print only selected images. |
| MarginLeft | Page left margin in inches. By specifying all zero values, no margins are used. |
| MarginTop | Page top margin in inches. By specifying all zero values, no margins are used. |
| MarginRight | Page right margin in inches. By specifying all zero values, no margins are used. |
| MarginBottom | Page bottom margin in inches. By specifying all zero values, no margins are used. |
| DrawBox | This is true if you want to draw a box around the images (image space). Image is always stretched to maintain aspect ratio. |
| DrawText | This is true if you want to draw text associated with every image. |
| DrawShadow | This is true if you want a shadow around the image. |
| BoxColor | Specifies the color of the box around the image if DrawBox is True. |
Example
Printer.BeginDoc;
ImageEnMView1.MIO.PrintImages(6, 4);
Printer.EndDoc;