TGAReadScanlines

Name

TGAReadScanlines -- read image data per scanline

Synopsis

size_t TGAReadScanlines(TGA* tga, tbyte* buf, size_t sln, size_t n, tuint32 flags);

Arguments

tga

pointer to valid TGA structure

buf

pointer that will hold the data (must be large enough)

sln

the first scanline to be read (starts with 0)

n

total number of scanlines to read (starting at sln)

flags

currently only TGA_RGB or TGA_BGR possible (TGAData)

Description

Returns number of scanlines actually read ( = n on success). This function transparently decodes any RLE data. So the returned data from this functions is always decoded. Use TGAReadImage() instead.