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

Notification

Icon
Error

Options
Go to last post Go to first unread
thedo  
#1 Posted : Thursday, July 16, 2009 8:58:35 PM(UTC)
thedo

Rank: Newbie

Groups: Member
Joined: 7/16/2009(UTC)
Posts: 7

I have an image, which is copied from a regular System.Drawing.Bitmap and rendered into a new Aurigma.GraphicsMill.Bitmap with a format of Format32bppRgb. We then Scale the image, and save it. When this happens the image comes out corrupted. Using a PixelFormat of 32bppRBGA or 24bppRGB works.

Example code

Code:
using (Bitmap bm = Bitmap.FromFile("SomeFile.jpg") as Bitmap)
            {
                using (Aurigma.GraphicsMill.Bitmap aurigma = new Aurigma.GraphicsMill.Bitmap(bm.Width, bm.Height, Aurigma.GraphicsMill.PixelFormat.Format32bppRgb))
                {
                    using (Graphics g = aurigma.GetGdiplusGraphics())
                    {
                        g.DrawImage(bm, new Rectangle(0, 0, bm.Width, bm.Height));
                    }

                    SizeF newSize = new SizeF(bm.Width*1.1f, bm.Height*1.1f);
                    aurigma.Transforms.Resize(newSize);

                    aurigma.Save("C:\\corrupt.jpg");
                }
            }

This isnt that breaking for us, as we can easily use the 32bit format with Alpha right now, but may need without alpha in the future. The format has to remain 32bit for interoping with a 3rd party control (hence the 32bit RGB as opposed to 24bit). I'll attach before and after pictures to illustrate the issue.
thedo attached the following image(s):
images.jpg
corrupt.jpg
Tamila  
#2 Posted : Friday, July 17, 2009 3:31:07 PM(UTC)
Tamila

Rank: Advanced Member

Groups: Member
Joined: 3/9/2008(UTC)
Posts: 554

Was thanked: 1 time(s) in 1 post(s)
Hello,

This problem is already fixed. I recommend you to use the latest version Graphics Mill 5.1.278. You can download it here:
http://aurigma.com/Produ...illdotNET/FreeTrial.aspx

If you still have this problem please let us know.
Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Guest
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.