Bsoft 2.1.4
Bernard's software package
rwTGA.h File Reference

Header file for reading and writing Truevision TGA files. More...

#include "rwimg.h"

Macros

#define TGASIZE   18
 

Functions

struct __attribute__ ((packed)) TGAhead
 
int readTGA (Bimage *p, int readdata)
 Reading a Truevision TGA image file format. More...
 
int writeTGA (Bimage *p)
 Writing a Truevision TGA map image file format. More...
 

Detailed Description

Header file for reading and writing Truevision TGA files.

Author
Bernard Heymann
Date
Created: 20150811
Modified: 20150815
Format: Truevision image file format

Macro Definition Documentation

◆ TGASIZE

#define TGASIZE   18

Function Documentation

◆ __attribute__()

struct __attribute__ ( (packed)  )

◆ readTGA()

int readTGA ( Bimage p,
int  readdata 
)

Reading a Truevision TGA image file format.

Parameters
*pthe image structure.
readdataflag to activate reading of image data.
Returns
int error code (<0 means failure). A color image format. Header size: 18 bytes (fixed). File format extensions: .tga The identifier is ???. Byte order: Little endian. Data types: 1 = byte, 2 = float, 3 = complex float 4 = 3-value vector, 5 = view

◆ writeTGA()

int writeTGA ( Bimage p)

Writing a Truevision TGA map image file format.

Parameters
*pthe image structure.
Returns
int error code (<0 means failure).