TGAWriteColorMap

Name

TGAWriteColorMap -- write color map

Synopsis

int TGAWriteColorMap(TGA* tga, tbyte* cmap, tuint32 flags);

Arguments

tga

pointer to valid TGA structure

cmap

pointer to color map data

flags

currently only TGA_RGB or TGA_BGR are supported. If the data you pass to the functions is in RGB format set flags to TGA_RGB, otherwise to TGA_BGR. The write functions (TGAWrite*) always write BGR data to the file (TGAData)

Description

It returns TGA_CMAP_SIZE(cmap) on success.

Use TGAWriteImage() instead.