Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Noufal123  
#1 Posted : Wednesday, September 14, 2011 4:07:33 AM(UTC)
Noufal123

Rank: Advanced Member

Groups: Member
Joined: 3/29/2010(UTC)
Posts: 81

Thanks: 10 times
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...
Dmitry.Obukhov  
#2 Posted : Thursday, September 15, 2011 2:09:31 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Please attach your testing images.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Noufal123  
#3 Posted : Thursday, September 15, 2011 4:29:09 AM(UTC)
Noufal123

Rank: Advanced Member

Groups: Member
Joined: 3/29/2010(UTC)
Posts: 81

Thanks: 10 times
I have attached images .please help me soon

Edited by user Thursday, September 15, 2011 4:30:27 AM(UTC)  | Reason: Not specified

File Attachment(s):
testMaskrar.rar (62kb) downloaded 5 time(s).
Dmitry.Obukhov  
#4 Posted : Friday, September 16, 2011 1:39:08 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
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.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
thanks 1 user thanked Dmitry.Obukhov for this useful post.
Noufal123 on 9/16/2011(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.