MAXScript Language Reference > 3ds Max Objects > BitmapIO : MAXWrapper >

# Targa interfaces:

    Targa - superclass: BitmapIO; super-superclass:MAXWrapper - classID: #(6, 0)

Constructor

    Class instances not creatable by MAXScript

Aliases:

    Targa tgaio

Targa interfaces

    Interface: itgaio

Methods

    Targa.getColorDepth ()

This method returns the color depth, which would be 16, 24, or 32.

    Targa.setColorDepth <integer>colorDepth

This method allows you to set the color depth.

colorDepth: The color depth, being either 16, 24, or 32.

    Targa.getCompressed ()

This method returns True if the compression flag is set, otherwise False .

    Targa.setCompressed <boolean>compression

This method allows you to set the compression flag.

compression: True to set the compression flag, otherwise False .

    Targa.getAlphaSplit ()

This method returns True if the alpha split flag is set, otherwise False .

    Targa.setAlphaSplit <boolean>alphaSplit

This method allows you to set the alpha split flag.

alphaSplit: True to set the alpha split flag, otherwise False .

    Targa.getPreMultAlpha ()

This method returns True if the premultiplied alpha flag is set, otherwise False .

    Targa.setPreMultAlpha <boolean>preMultAlpha

This method allows you to set the premultiplied alpha flag.

preMultAlpha: True to set the premultiplied alpha flag, otherwise False .

    <string>Targa.getAuthor ()
    <void>Targa.setAuthor <string>author

The author name will be clamped to 40 characters

    <string>Targa.getJobName ()
    <void>Targa.setJobName <string>jobname

The Job name will be clamped to 40 characters

    <string>Targa.getComment1 ()
    <void>Targa.setComment1 <string>comment
    <string>Targa.getComment2 ()
    <void>Targa.setComment2 <string>comment
    <string>Targa.getComment3 ()
    <void>Targa.setComment3 <string>comment
    <string>Targa.getComment4 ()
    <void>Targa.setComment4 <string>comment

The Comments will be clamped to 80 characters

The methods in this interface can be accessed by specifying the class, interface, and method. For example: targa.itgaio.getType() .

MAXScript will automatically search through a class’ interfaces for a property or method name if the name isn’t found as a class method or property. This allows you to say: targa.getType() .

Providing the fully qualified name of the method results in faster script execution. Providing the fully qualified name is also safer, as at some point in time another interface can be could be specified for the class, and a method or property with the same name could be defined in that interface. Which method or property is used would then be dependent on the order in which the the interfaces were searched for the method or property name.

See Also Class IBitmapIO_Tga, in the SDK Help file accompanying this product.

#### See Also

- BitmapIO Classes

- BMP : BitmapIO

- JPEG : BitmapIO

- Portable_Network_Graphics : BitmapIO

- TIF : BitmapIO