Click or drag to resize
SoGLGraphicConfigTemplateSetRGBAColor Method (SoGraphicConfigTemplatePreferences, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Sets the color preferences.

Namespace: OIV.Inventor.Components
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public void SetRGBAColor(
	SoGraphicConfigTemplatePreferences pref,
	int minRedBits,
	int minGreenBits,
	int minBlueBits,
	int minAlphaBits,
	int maxRedBits,
	int maxGreenBits,
	int maxBlueBits,
	int maxAlphaBits
)

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