TGA.this

Creates a TGA file safely with automatically generated header. This constructor is the recommended one for general use.

  1. this()
  2. this(Header header, IImageData _imageData, IPalette _palette, char[] imageID)
  3. this(IImageData _imageData, IPalette _palette, char[] imageID, bool isRLE)
    class TGA
    public @safe
    this
    (
    IImageData _imageData
    ,
    IPalette _palette = null
    ,
    char[] imageID = null
    ,
    bool isRLE = false
    )
  4. this(Header header, Footer footer, IImageData _imageData, IPalette _palette, char[] imageID)

Parameters

_imageData IImageData

The imagedata to be used for the imagefile. Automatically adjusts the header format to this.

_palette IPalette

Palette data if any.

imageID char[]

Image name.

isRLE bool

If true, then RLE compression will be used.

Meta