I'm using IM with VC++ and want to put some data array into an DPX file.
The data array contains an image of 10 bit YUV 422 sorted:
Code: Select all
| U | Y | V | 00 | Y | U | Y | 00 |...
|10bit|10bit|10bit|2bit|10bit|10bit|10bit|2bit|...
| 32bit = 4Byte | 32bit = 4Byte |...
For an RGB (actually BGR) image I do it the following way:
Code: Select all
Magick::Image cMagickImage(
pcBmpBuffer->getWidth(),
pcBmpBuffer->getHeight(),
"BGR",
Magick::CharPixel,
pcBmpBuffer->getImage() );
cMagickImage.write( "test.dpx" );
Thank you in advance,
Nicola