CGGetDisplayTransferByTable(_:_:_:_:_:_:)
Gets the values in the RGB gamma tables for a display.
Declaration
func CGGetDisplayTransferByTable(_ display: CGDirectDisplayID, _ capacity: UInt32, _ redTable: UnsafeMutablePointer<CGGammaValue>?, _ greenTable: UnsafeMutablePointer<CGGammaValue>?, _ blueTable: UnsafeMutablePointer<CGGammaValue>?, _ sampleCount: UnsafeMutablePointer<UInt32>?) -> CGErrorParameters
- display:
The identifier of the display to be accessed.
- capacity:
The number of entries each table can hold.
- redTable:
A pointer to an array of type
CGGammaValuewith sizecapacity. On return, the array contains the values of the red channel in the display’s gamma table. - greenTable:
A pointer to an array of type
CGGammaValuewith sizecapacity. On return, the array contains the values of the green channel in the display’s gamma table. - blueTable:
A pointer to an array of type
CGGammaValuewith sizecapacity. On return, the array contains the values of the blue channel in the display’s gamma table. - sampleCount:
The number of samples actually copied into each array.
Return Value
A result code. See Core Graphics Data Types and Constants.
See Also
Functions
CGAcquireDisplayFadeReservation(_:_:)CGAssociateMouseAndMouseCursorPosition(_:)CGBeginDisplayConfiguration(_:)CGCancelDisplayConfiguration(_:)CGCaptureAllDisplays()CGCaptureAllDisplaysWithOptions(_:)CGCompleteDisplayConfiguration(_:_:)CGConfigureDisplayFadeEffect(_:_:_:_:_:_:)CGConfigureDisplayMirrorOfDisplay(_:_:_:)CGConfigureDisplayMode(_:_:_:)CGConfigureDisplayOrigin(_:_:_:_:)CGConfigureDisplayStereoOperation(_:_:_:_:)CGConfigureDisplayWithDisplayMode(_:_:_:_:)CGCursorIsDrawnInFramebuffer()CGCursorIsVisible()