Specifications
CHAPTER 3
Application Program Interface
28
ContrastEngine Component
ContrastEngine Component Functions 3
This section describes the ContrastEngine Component functions that control brightness
and contrast.
ContrastEngineGetBrightnessRange 3
This function returns the allowable range of brightness settings for the AppleVision
displays. The values returned here can be used to ensure that your application does not
attempt to set an invalid brightness value.
pascal ComponentResult
ContrastEngineGetBrightnessRange( ComponentInstance
engineComponent, short* min, short* max )
engineComponent
A valid instance of the ContrastEngine component.
min, max
Values returned to the caller indicating the range of allowable
settings for brightness.
ContrastEngineGetBrightness 3
This function returns the current brightness setting for the AppleVision displays.
pascal ComponentResult
ContrastEngineGetBrightness( ComponentInstance engineComponent,
short* brightness )
engineComponent
A valid instance of the ContrastEngine component.
brightness
A value returned to the caller indicating the current brightness
setting.
ContrastEngineSetBrightness 3
This function allows your application to set the brightness level for the AppleVision
displays.
pascal ComponentResult
ContrastEngineSetBrightness( ComponentInstance engineComponent,
short brightness )
engineComponent
A valid instance of the ContrastEngine component.
brightness
A value passed by your application indicating the desired
brightness setting for the display.