Let's say I have some raw image data in memory in a packed RGBA 10/10/10/2 format. Is there a way to directly read this into an image, or do I have to convert it to something more friendly myself?
Something like this doesn't work for me, I get an 'ErrorCorruptImage':
Code: Select all
img.size( Magick::Geometry( m_width, m_height ) );
img.magick( "RGB" ); //RGBA also doesn't work
img.depth( 10 );
Magick::Blob blob( pixels(), size() );
img.read( blob );