Image Pixel Cache
Posted: 2008-03-25T13:21:35-07:00
I don't really understand the Image Pixel Cache. I want to get my pixels in the format RGB - without success so far.
This works at the moment:
How can I achive this via the image pixel cache? I need exactly what blob.data() would give me but by using the pixel cache because the blob conversion takes about ~700ms for a 1400x1000 pixel jpg image. And the pixels are copied later to opengl so it's an unneseccary conversion.
This works at the moment:
Code: Select all
Magick::Blob blob;
image.write(&blob, "RGB", 8);
blob.data() --> this is what I need