NSImageRGBColorTable property

DartCADynamicRange get NSImageRGBColorTable

Implementation

DartNSBitmapImageRepPropertyKey get NSImageRGBColorTable =>
    objc.NSString.castFromPointer(
      _NSImageRGBColorTable.value,
      retain: true,
      release: true,
    );
set NSImageRGBColorTable (DartNSBitmapImageRepPropertyKey value)

Implementation

set NSImageRGBColorTable(DartNSBitmapImageRepPropertyKey value) {
  objc.NSString.castFromPointer(
    _NSImageRGBColorTable.value,
    retain: false,
    release: true,
  ).ref.release();
  _NSImageRGBColorTable.value = value.ref.retainAndReturnPointer();
}