Returns a pointer to the image data associated with a bitmap context.
- iOS 2.0+
- macOS 10.2+
- tvOS 9.0+
- watchOS 2.0+
- Mac Catalyst 13.0+Beta
- Core Graphics
The bitmap context to examine.
A pointer to the specified bitmap context’s image data, or
NULL if the context is not a bitmap context.
If you provided the memory for the bitmap data, you can use this method to get that data pointer. If you passed
NULL for the data pointer when creating your bitmap context, it is safe to get the data pointer in iOS 4.0 and later and macOS 10.6 and later only. In earlier versions of the operating system, passing
NULL for the data parameter is not supported and may lead to crashes when attempting to access this data using this function.