On 19 Dec 2015, at 09:51, Graham Cox wrote:
> My use case is an interface that sets up a batch of files for saving in a
> particular folder. The user chooses the folder using a standard NSOpenPanel,
> but I want to display the chosen location in the UI so that they don’t need
> to remember it.
I’m trying to understand how properly to use colorspaces with bitmaps.
In my app’s Export function, we’d like to offer the ability to choose a
colorspace for the exported image, in whatever format the user chose. My
thoughts were to use NSBitmapImageRep to capture the image, then use its
-repre
> On 21 Dec 2015, at 09:15, Graham Cox wrote:
>
> I’m trying to understand how properly to use colorspaces with bitmaps.
>
> The problem here is that I can find no documentation that goes anywhere near
> explaining this. Maybe NSBitmapImageRep is too high level and I need to drop
> down to CG
> On 21 Dec 2015, at 1:16 PM, Roland King wrote:
>
> That bit seems straightforward, you get the CGColorSpace property of the
> NSColorSpace object returned by NSColorSpace.availableColorSpacesWithModel()
>
> But if you want a bitmap to draw in then CGImageRef doesn’t seem like the
> right t