fixAlpha() - Media Method

The fixAlpha() method adjusts the RGB components of an image relative to its alpha channel. This should be done when an alpha channel has been manually created for an image. This command will frequently correct unexpected results in functions that utilize the alpha channel.

Important:  This function is now removed from MediaScript. If it is encountered, no operation is executed.

Syntax

fixAlpha();

Example

var image = new Media();

image.load(name @ "pasta.tga");

image.fixAlpha();

image.save(type @ "jpeg");