ImageEn, unit imageenproc

TImageEnProc.MakeTile

TImageEnProc.MakeTile


Declaration

procedure MakeTile(Columns, Rows: Integer);


Description

Replicates the current image in multiple columns and rows. This is used to create tiled images.

Note: The final image will be resized by columns * ImageWidth and rows * ImageHeight


Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


Example

// Create an image with pic.jpg repeated in a 6x6 grid
ImageEnView1.IO.LoadFromFile('C:\pic.jpg');
ImageEnView1.Proc.MakeTile(6, 6);
ImageEnView1.IO.SaveToFile('D:\tiled.jpg');


// Repeat image 3 times horizontally and vertically
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );




ImageEnView1.Proc.MakeTile( 3, 3 );