Replaced the opacity() method with the IM quantumOperator method, which allows me to simply multiply the alpha percentage to each alpha value, and fixed a bug in the ImageReader which prevented copying pixel data between frames.

This commit is contained in:
Jonathan Thomas
2012-11-13 00:11:20 -06:00
parent bff37d0072
commit 73be628047
3 changed files with 18 additions and 12 deletions

View File

@@ -88,6 +88,7 @@ tr1::shared_ptr<Frame> ImageReader::GetFrame(int requested_frame) throw(ReaderCl
// Add Image data to frame
tr1::shared_ptr<Magick::Image> copy_image(new Magick::Image(*image.get()));
copy_image->modifyImage(); // actually copy the image data to this object
image_frame->AddImage(copy_image);
// return frame object