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

Notification

Icon
Error

Options
Go to last post Go to first unread
midibase  
#1 Posted : Wednesday, September 19, 2007 1:45:25 AM(UTC)
midibase

Rank: Member

Groups: Member
Joined: 9/16/2007(UTC)
Posts: 4

Whats could be the risen for the execption after loading an bitmap in the Bitmapviewer and resize the mainform?
The bitmapviewer is a childcontrol of the mainform?

The exceptionmessage is (sorry german) "Ungültige Parameter" in other english words could it be "not the right parameters"

When I'm not loading a bitmap and show only the empty bitmapviewercontrol I got no exception.
But this could not be the solution :)

To work with the bitmap (mean zoom, transformation a.s.o) do very well. Only the formresizing and closing the mainform do the exception.



i load the bitmap with this code
Code:
GMBitmap.Bitmap = (GraphicsMill.Bitmap)GdiToGmBitmap(origGDIBmp);


        private GraphicsMill.Bitmap GdiToGmBitmap(System.Drawing.Bitmap GdiBitmap) {
            // bmpFloor is an .net bmp object
            // create the new aurigma bitmap
            GraphicsMill.BitmapClass gmBitmap = new GraphicsMill.BitmapClass();

            // copy the info
            MemoryStream memStream = new MemoryStream();
            GdiBitmap.Save(memStream, System.Drawing.Imaging.ImageFormat.Bmp);
            gmBitmap.LoadFromMemory(memStream.GetBuffer());

            // dont need the floor ms-bmp anymore
            GdiBitmap.Dispose();

            return gmBitmap;
        }

THX

Edited by user Monday, December 17, 2007 12:42:10 PM(UTC)  | Reason: Not specified

Dmitry  
#2 Posted : Tuesday, October 2, 2007 3:16:50 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

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

Unfortunately it is hard to say what the problem is without looking through the sample application. I have tried to resize the form - everything works fine.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
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.