sontt#975
Hi,
I'm trying this feature to merge 2 image but it has an exception
Dimensions bitmap and mask bitmap are not the same
Please help me
Thanks
This is my code
I'm trying this feature to merge 2 image but it has an exception
Dimensions bitmap and mask bitmap are not the same
Please help me
Thanks
This is my code
private void Combine2Image()
{
Bitmap sourceBitmap = new Bitmap(Server.MapPath("copyrose.jpg"));
Bitmap maskBitmap = new Bitmap(Server.MapPath("ipod.png"));
Bitmap desBitmap = new Bitmap();
PngEncoderOptions pngEncoderOptions = new PngEncoderOptions(0;
Combiner combiner = new Combiner();
combiner.SourceBitmap = sourceBitmap;
combiner.ApplyMaskTransform(sourceBitmap,maskBitmap,desBitmap);
desBitmap.Save(Server.MapPath("aaa.png"),pngEncoderOptions);
}