Specifications
CHAPTER 3
Application Program Interface
ContrastEngine Component
29
ContrastEngineGetContrastRange 3
This function returns the allowable range of contrast settings for the AppleVision
displays. The values returned here can be used to ensure that your application does not
attempt to set an invalid contrast value.
pascal ComponentResult
ContrastEngineGetContrastRange( 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 contrast.
ContrastEngineGetContrast 3
This function returns the current contrast setting for the display.
pascal ComponentResult
ContrastEngineGetContrast( ComponentInstance engineComponent,
short* contrast )
engineComponent
A valid instance of the ContrastEngine component.
brightness
A value returned to the caller indicating the current brightness
setting.
ContrastEngineSetContrast 3
This function allows your application to set the contrast level for the display.
pascal ComponentResult
ContrastEngineSetContrast( ComponentInstance engineComponent,
short contrast )
engineComponent
A valid instance of the ContrastEngine component.
brightness
A value passed by your application indicating the desired
brightness setting for the display.