size_t TGAReadScanlines(TGA* tga, const tbyte* buf, size_t sln, size_t n, tuint32 flags);
size_t TGAReadScanlines
pointer to valid TGA structure
pointer to scanline data
the first scanline that should be written
total number of scanlines to write
currently only TGA_RGB, TGA_BGR and TGA_RLE_ENCODE are supported (TGAData)
Returns number of scanlines actually written ( = n on success). Use TGAWriteImage() instead.