Noobie question regarding CopyPixels
Posted: 2018-04-05T18:22:15-07:00
I'm trying to copy a PNG image (with alpha) onto a transparent/blank background PNG image, but the PNG image I am copying to the background is not displayed, probably because the background image is transparent.
How do I get CopyPixels to ignore the background image?
I tried lots of the Channels.xxx options but nothing seems to work the way I want it to.
// Background
bgndImage= new MagickImage(bytes);
// Copy image onto background
imgAdd = new MagickImage(bytes);
bgndImage.CopyPixels(imgAdd, new MagickGeometry(imgAdd.Width, imgAdd.Height), point.X, point.Y, Channels.RGB);
How do I get CopyPixels to ignore the background image?
I tried lots of the Channels.xxx options but nothing seems to work the way I want it to.
// Background
bgndImage= new MagickImage(bytes);
// Copy image onto background
imgAdd = new MagickImage(bytes);
bgndImage.CopyPixels(imgAdd, new MagickGeometry(imgAdd.Width, imgAdd.Height), point.X, point.Y, Channels.RGB);