Closed pixlwave closed 8 years ago
Just an update, I'm currently working around this by calling CGImageForProposedRect:context:hints:
on NSImage and then creating the buffer with allocBufferForCGImageRef:
instead, which is returning the correct sized buffer.
i don't remember if it's the intentional behavior, but it sure seems like a bug right now- thanks for reporting this, commit 9a4789b79dae029b6fbd4f4625b3d331548ed499 should address it!
Fab, that's done the trick :)
I'm not sure if this is intentional behaviour, but when calling
VVBufferPool.globalVVBufferPool().allocBufferForNSImage(myImage)
if the image passed in is higher in DPI than 72, the returned buffer is lower resolution than the original.Try loading the following image into ISF Editor, and you will see what I mean.
Many thanks for the great frameworks :)