Main Page | Modules | Class List | File List | Class Members | File Members

# Alpha

## Functions
void | CxImage::AlphaClear ()
bool | CxImage::AlphaCopy (CxImage &from)
void | CxImage::AlphaCreate ()
void | CxImage::AlphaDelete ()
bool | CxImage::AlphaFlip ()
BYTE | CxImage::AlphaGet (const long x, const long y)
BYTE | CxImage::AlphaGetMax () const
BYTE * | CxImage::AlphaGetPointer (const long x=0, const long y=0)
void | CxImage::AlphaInvert ()
bool | CxImage::AlphaIsValid ()
bool | CxImage::AlphaMirror ()
void | CxImage::AlphaPaletteClear ()
void | CxImage::AlphaPaletteEnable (bool enable=true)
bool | CxImage::AlphaPaletteIsEnabled ()
bool | CxImage::AlphaPaletteIsValid ()
bool | CxImage::AlphaPaletteSplit (CxImage *dest)
void | CxImage::AlphaSet (const long x, const long y, const BYTE level)
bool | CxImage::AlphaSet (CxImage &from)
void | CxImage::AlphaSet (BYTE level)
void | CxImage::AlphaSetMax (BYTE nAlphaMax)
bool | CxImage::AlphaSplit (CxImage *dest)
void | CxImage::AlphaStrip ()

## Function Documentation

void CxImage::AlphaClear | ( |  | ) | `[inherited]`

| Inverts the alpha channel.

bool CxImage::AlphaCopy | ( | CxImage & | from | ) | `[inherited]`

| Imports an existing alpa channel from another image with the same width and height.

void CxImage::AlphaCreate | ( |  | ) | `[inherited]`

| Allocates an empty (opaque) alpha channel.

void CxImage::AlphaDelete | ( |  | ) | `[inherited]`

bool CxImage::AlphaFlip | ( |  | ) | `[inherited]`

BYTE CxImage::AlphaGet | ( | const long | x,
|  | const long | y
| ) | `[inherited]`

| Gets the alpha level for a single pixel

BYTE CxImage::AlphaGetMax | ( |  | ) | const`[inherited]`

| See also: AlphaSetMax

BYTE * CxImage::AlphaGetPointer | ( | const long | x = `0`,
|  | const long | y = `0`
| ) | `[inherited]`

| Returns pointer to alpha data for pixel (x,y). Author: ***bd*** 2.2004

void CxImage::AlphaInvert | ( |  | ) | `[inherited]`

bool CxImage::AlphaIsValid | ( |  | ) | `[inherited]`

| Checks if the image has a valid alpha channel.

bool CxImage::AlphaMirror | ( |  | ) | `[inherited]`

void CxImage::AlphaPaletteClear | ( |  | ) | `[inherited]`

| Resets the alpha palette

void CxImage::AlphaPaletteEnable | ( | bool | enable = `true` | ) | `[inherited]`

| Enables the alpha palette, so the Draw() function changes its behavior.

bool CxImage::AlphaPaletteIsEnabled | ( |  | ) | `[inherited]`

| True if the alpha palette is enabled for painting.

bool CxImage::AlphaPaletteIsValid | ( |  | ) | `[inherited]`

| Checks if the image has a valid alpha palette.

bool CxImage::AlphaPaletteSplit | ( | CxImage * | dest | ) | `[inherited]`

| Exports the alpha palette channel in a 8bpp grayscale image.

void CxImage::AlphaSet | ( | const long | x,
|  | const long | y,
|  | const BYTE | level
| ) | `[inherited]`

| Sets the alpha level for a single pixel

bool CxImage::AlphaSet | ( | CxImage & | from | ) | `[inherited]`

| Creates the alpha channel from a gray scale image.

void CxImage::AlphaSet | ( | BYTE | level | ) | `[inherited]`

| Sets the alpha level for the whole image

void CxImage::AlphaSetMax | ( | BYTE | nAlphaMax | ) | `[inherited]`

  | Sets global Alpha (opacity) value applied to the whole image, valid only for painting functions. Parameters:
  | nAlphaMax: | can be from 0 to 255

bool CxImage::AlphaSplit | ( | CxImage * | dest | ) | `[inherited]`

| Exports the alpha channel in a 8bpp grayscale image.

void CxImage::AlphaStrip | ( |  | ) | `[inherited]`

| Blends the alpha channel and the alpha palette with the pixels. The result is a 24 bit image. The background color can be selected using SetTransColor().