SoGLGraphicConfigTemplateSetRGBAColor Method (SoGraphicConfigTemplatePreferences, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) |
Sets the color preferences.
Namespace: OIV.Inventor.ComponentsAssembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax public void SetRGBAColor(
SoGraphicConfigTemplatePreferences pref,
int minRedBits,
int minGreenBits,
int minBlueBits,
int minAlphaBits,
int maxRedBits,
int maxGreenBits,
int maxBlueBits,
int maxAlphaBits
)
Public Sub SetRGBAColor (
pref As SoGraphicConfigTemplatePreferences,
minRedBits As Integer,
minGreenBits As Integer,
minBlueBits As Integer,
minAlphaBits As Integer,
maxRedBits As Integer,
maxGreenBits As Integer,
maxBlueBits As Integer,
maxAlphaBits As Integer
)
public:
void SetRGBAColor(
SoGraphicConfigTemplatePreferences pref,
int minRedBits,
int minGreenBits,
int minBlueBits,
int minAlphaBits,
int maxRedBits,
int maxGreenBits,
int maxBlueBits,
int maxAlphaBits
)
member SetRGBAColor :
pref : SoGraphicConfigTemplatePreferences *
minRedBits : int *
minGreenBits : int *
minBlueBits : int *
minAlphaBits : int *
maxRedBits : int *
maxGreenBits : int *
maxBlueBits : int *
maxAlphaBits : int -> unit
Parameters
- pref
- Type: OIV.Inventor.ComponentsSoGraphicConfigTemplatePreferences
- minRedBits
- Type: SystemInt32
- minGreenBits
- Type: SystemInt32
- minBlueBits
- Type: SystemInt32
- minAlphaBits
- Type: SystemInt32
- maxRedBits
- Type: SystemInt32
- maxGreenBits
- Type: SystemInt32
- maxBlueBits
- Type: SystemInt32
- maxAlphaBits
- Type: SystemInt32
Remarks
REQUIRED means RGBA mode and FORBIDDEN means indexed color mode. min(red/green/blue/alpha)Bits and max(red/green/blue/alpha)Bits are the minimum and maximum required sizes. The required size must be greater than or equal to the min(red/green/blue/alpha)Bits, and less than or equal to max(red/green/blue/alpha)Bits. The maximum size is always preferred. If pref is FORBIDDEN, the min/max values are ignored.
See Also