Property | Type | Description | |
---|---|---|---|
IndexedPixelFormats | Axiom.Media.PixelFormatDescription[] | ||
UnindexedPixelFormats | Axiom.Media.PixelFormatDescription[] |
Method | Description | |
---|---|---|
BulkPixelConversion ( |
Convert consecutive pixels from one format to another. No dithering or filtering is being done. Converting from RGB to luminance takes the R channel. In case the source and destination format match, just a copy is done.
|
|
BulkPixelConversion ( |
Convert pixels from one format to another. No dithering or filtering is being done. Converting from RGB to luminance takes the R channel. The source and destination boxes must have the same dimensions. In case the source and destination format match, a plain copy is done. |
|
GetDescriptionFor ( PixelFormat format ) : Axiom.Media.PixelFormatDescription | ||
Initialize ( ) : void | ||
PackColor ( |
Pack a color value to memory
|
|
PackColor ( float r, float g, float b, float a, PixelFormat format, |
Pack a color value to memory
|
|
PackColor ( uint r, uint g, uint b, uint a, PixelFormat format, |
Pack a color value to memory
|
|
UnpackColor ( PixelFormat pf, |
Unpack a color value from memory
|
|
UnpackColor ( byte &r, byte &g, byte &b, byte &a, PixelFormat pf, |
Unpack a color value from memory This function returns the color components in 8 bit precision, this will lose precision when coming from A2R10G10B10 or floating point formats. |
|
UnpackColor ( float &r, float &g, float &b, float &a, PixelFormat pf, |
Unpack a color value from memory
|
public static BulkPixelConversion ( |
||
srcBytes | Pointer to source region | |
srcOffset | int | |
srcFormat | PixelFormat | Pixel format of source region |
dstBytes | Pointer to destination region | |
dstOffset | int | |
dstFormat | PixelFormat | Pixel format of destination region |
count | int | |
return | void |
public static BulkPixelConversion ( |
||
src | PixelBox containing the source pixels, pitches and format | |
dst | PixelBox containing the destination pixels, pitches and format | |
return | void |
public static GetDescriptionFor ( PixelFormat format ) : Axiom.Media.PixelFormatDescription | ||
format | PixelFormat | |
return | Axiom.Media.PixelFormatDescription |
public static PackColor ( |
||
color | The color | |
format | PixelFormat | Pixel format in which to write the color |
dest | Destination memory location | |
return | void |
public static PackColor ( float r, float g, float b, float a, PixelFormat format, |
||
r | float | /// The four color components, range 0.0f to 1.0f /// (an exception to this case exists for floating point pixel /// formats, which don't clamp to 0.0f..1.0f) /// |
g | float | /// The four color components, range 0.0f to 1.0f /// (an exception to this case exists for floating point pixel /// formats, which don't clamp to 0.0f..1.0f) /// |
b | float | /// The four color components, range 0.0f to 1.0f /// (an exception to this case exists for floating point pixel /// formats, which don't clamp to 0.0f..1.0f) /// |
a | float | /// The four color components, range 0.0f to 1.0f /// (an exception to this case exists for floating point pixel /// formats, which don't clamp to 0.0f..1.0f) /// |
format | PixelFormat | Pixelformat in which to write the color |
dest | Destination memory location | |
return | void |
public static PackColor ( uint r, uint g, uint b, uint a, PixelFormat format, |
||
r | uint | Red component, range 0x00 to 0xFF |
g | uint | Green component, range 0x00 to 0xFF |
b | uint | Blue component, range 0x00 to 0xFF |
a | uint | Alpha component, range 0x00 to 0xFF |
format | PixelFormat | Pixelformat in which to write the color |
dest | Destination memory location | |
return | void |
public static UnpackColor ( PixelFormat pf, |
||
pf | PixelFormat | Pixelformat in which to read the color |
src | Source memory location | |
return |
public static UnpackColor ( byte &r, byte &g, byte &b, byte &a, PixelFormat pf, |
||
r | byte | The color is returned here (as byte) |
g | byte | The color is returned here (as byte) |
b | byte | The color is returned here (as byte) |
a | byte | The color is returned here (as byte) |
pf | PixelFormat | Pixelformat in which to read the color |
src | Source memory location | |
return | void |
public static UnpackColor ( float &r, float &g, float &b, float &a, PixelFormat pf, |
||
r | float | The color is returned here (as float) |
g | float | The color is returned here (as float) |
b | float | The color is returned here (as float) |
a | float | The color is returned here (as float) |
pf | PixelFormat | Pixelformat in which to read the color |
src | Source memory location | |
return | void |
protected static PixelFormatDescription[],Axiom.Media IndexedPixelFormats | ||
return | Axiom.Media.PixelFormatDescription[] |