SplitImage Function
Imaging

Splits image into XChunks x YChunks subimages.

Pascal
function SplitImage(var Image: TImageData; 
                    var Chunks: TDynImageDataArray; 
                    ChunkWidth: LongInt; 
                    ChunkHeight: LongInt; 
                    var XChunks: LongInt; 
                    var YChunks: LongInt; 
                    PreserveSize: Boolean; 
                    Fill: Pointer): Boolean;
File

Imaging (at line 195)

Description

Default size of each chunk is ChunkWidth x ChunkHeight. If PreserveSize si True chunks at the edges of the image are also ChunkWidth x ChunkHeight sized and empty space is filled with Fill pixels. After calling this function XChunks contains number of chunks along x axis and YChunks along y axis. To access chunk [X, Y] use this index: Chunks[Y * XChunks + X].

Related Information
You are here: Symbol Reference > Functions > SplitImage Function