API Notes: CoreGraphics framework¶
API Notes¶
See Context Managers for CoreGraphics for some extensions to the CoreGraphics API.
CGBitmapContextCreate: When passing in a data object you must make surethat this object stays alive until the bitmap context is released, and must also make sure that the storage for the data object doesn’t change ( the Python binding does not lock the buffer view).
In general it is better to pass
Noneand let framework manage memory for you.
CGColorConversionInfoCreateFromList: This function requires a manual wrapper and is not yet supported.CGColorConverterCreate: This function requires a manual wrapper and is not yet supported.CGColorSpaceCreateWithPlatformColorSpace,CGColorSpaceCreateWithPlatformColorSpace.These functions are not supported.
The functions and data-types for parsing PDF documents (such as
CGPDFStreamCreateWithStream) are for the most part unsupported at the moment. We have bindings for a subsection of the APIs, but haven’t those aren’t complete nor fully tested.CGWaitForScreenUpdateRects,CGWaitForScreenRefreshRectsThis functions are not yet supported.
CGDataProviderCreate,CGDataProviderCreateDirectAccessThese functions are not available when you build PyObjC on macOS 10.8, even when you run on earlier releases of macOS.
CGPathCreateWithRoundedRect,CGPathAddRoundedRectThese functions will crash hard when the parameters are inconsistent, for example when the rounded corners don’t fit in the rectangle.
CGColorConversionInfoCreateFromListThis function is not yet supported.
CGColorConversionInfoCreateFromListWithArgumentsThis function is not supported. Use
CGColorConversionInfoCreateFromListinstead.