Search code examples
macoscocoacore-graphicsquartz-2dmacos-carbon

Find the number of components in the current fill & stroke color space form CGContext?


I am looking at way of finding the color space of a CGContext?

CGBitmapContextGetColorSpace() will not work as I am working with general context and not bitmap context.

Thank you, Rahul


Solution

  • colorspaceref CGContextGetStrokeColorSpace(ccontextref);

    colorspaceref CGContextGetFillColorSpace(ccontextref);

    but this are priate.