This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Masked Transform with 32bppArgb

Hello,
I am using Aurigma graphicmills with C# ,

Aurigma.GraphicsMill.Transforms.Combiner combiner = new
Aurigma.GraphicsMill.Transforms.Combiner();
combiner.CombineMode = Aurigma.GraphicsMill.Transforms.CombineMode.Copy;
//Combine with the first image.
combiner.SourceBitmap = photo1;
combiner.SourceRectangle = new RectangleF(0, 0, photo1.Width, photo1.Height);
combiner.DestinationRectangle = _RectRubberband.Rectangle;
combiner.ApplyMaskTransform(background, mask);

using above code to create mask transform.. when using 24bppArgb image as background image its working fine , if using 32bppArgb Images it will make error ( message :Pixel format of mask bitmap has an unappropriate value.) .How can i solve it? please help me soon...
Please attach your testing images.
Hello,

I checked your images. Background and photo1 have Format32bppArgb PixelFormat. Unfortunately, GDI cannot handle bitmaps with an alpha channel (Format32bppArgb) when it draws anything on it. Please read details in the PixelFormat Enumeration. You should use another pixel format.