Aurigma Forums
»
Legacy Products
»
Archive
»
Other Products
»
execption after resizing and unloading
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
|
|
|
|
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. |
|
|
|
|
Aurigma Forums
»
Legacy Products
»
Archive
»
Other Products
»
execption after resizing and unloading
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.