Resizing and Pasting into new image
Posted: 2010-02-21T08:22:24-07:00
Hey All,
I think this is a simple question!
I am writing software for Digital Cinema Packages (DCPs) and it is pretty much complete.
I was using the CxImage class for my image manipulation, but given that ImageMagick supports dpx files, I was thinking of switching over to it.
I also need to do a colour transformation for RGB to XYZ (gamma 2.6), however I have written my own class to do this.
I have successfully loaded an image and resized it:
I would now like create a black image and paste the resized image into the centre of it (The image is portrait so it will have black borders).
I also need to save this 8 bit image as a 16 bit TIF file. I'm also not sure how to do this?
Could someone please give me some guidance on how to do this?
Many thanks,
Steve Q.
I think this is a simple question!
I am writing software for Digital Cinema Packages (DCPs) and it is pretty much complete.
I was using the CxImage class for my image manipulation, but given that ImageMagick supports dpx files, I was thinking of switching over to it.
I also need to do a colour transformation for RGB to XYZ (gamma 2.6), however I have written my own class to do this.
I have successfully loaded an image and resized it:
Code: Select all
Image img;
try
{
img.read( "Dancing.jpg" );
img.sample( Geometry(1998,1080));
}
etc...
I also need to save this 8 bit image as a 16 bit TIF file. I'm also not sure how to do this?
Could someone please give me some guidance on how to do this?
Many thanks,
Steve Q.