3ds Max C++ API Reference
Loading...
Searching...
No Matches
LogLUV24Pixel Struct Reference

#include <color.h>

Public Member Functions

 operator Color () const
 
LogLUV24Pixeloperator= (const float c[3])
 
void GetRGB (float rgb[3]) const
 
void SetRGB (const float rgb[3])
 
void GetXYZ (float xyz[3]) const
 
void SetXYZ (const float xyz[3])
 

Static Public Member Functions

static void XYZtoRGB (const float xyz[3], float rgb[3])
 
static void RGBtoXYZ (const float rgb[3], float xyz[3])
 

Public Attributes

unsigned char value [3]
 Storage for the pixel value.
 

Detailed Description

See also
Class Color, Structure LogUV32Pixel This structure is a 24 bit pixel format that stores 10 bits for log of luminance and 14 bits of chroma.

Member Function Documentation

◆ operator Color()

operator Color ( ) const
inline
Remarks
This method will return the pixel format as a Color.
669 {
670 Color c;
671 GetRGB(c);
672 return c;
673 }
Definition: color.h:73
void GetRGB(float rgb[3]) const

◆ operator=()

LogLUV24Pixel & operator= ( const float  c[3])
inline
Remarks
Assignment operator.
Parameters:
const float c[3]
The array of color values to assign in RGB order.
680 {
681 SetRGB(c);
682 return *this;
683 }
void SetRGB(const float rgb[3])

◆ GetRGB()

void GetRGB ( float  rgb[3]) const
Remarks
This method will return the RGB space values.
Parameters:
float rgb[3]
The results are stored in this array.

◆ SetRGB()

void SetRGB ( const float  rgb[3])
Remarks
This method allows you to set the RGB space values.
Parameters:
const float rgb[3]
The values to set.

◆ GetXYZ()

void GetXYZ ( float  xyz[3]) const
Remarks
This method will return the XYZ space values.
Parameters:
float xyz[3]
The values are stored in this array.

◆ SetXYZ()

void SetXYZ ( const float  xyz[3])
Remarks
This method allows you to set the XYZ space values.
Parameters:
const float xyz[3]
The values to set.

◆ XYZtoRGB()

static void XYZtoRGB ( const float  xyz[3],
float  rgb[3] 
)
static
Remarks
This method will convert from XYZ space to RGB space.
Parameters:
const float xyz[3]
The input values to convert.

float rgb[3]
The output values are stored in this array.

◆ RGBtoXYZ()

static void RGBtoXYZ ( const float  rgb[3],
float  xyz[3] 
)
static
Remarks
This method will convert from RGB space to XYZ space.
Parameters:
const float rgb[3]
The input values to convert.

float xyz[3]
The output values are stored in this array.

Member Data Documentation

◆ value

unsigned char value[3]

Storage for the pixel value.