Bug SS-170
2 votes

Unwanted self resize of wide images

Created by Davide on 7/8/2014 4:03 AM Last Updated by smath on 4/13/2015 7:54 PM
%
 (hrs)
Logged: 0   (hrs)

 Description

I've set a worksheet layout as landscape, then I've added a wide image (f.e.1060x200 px), finally I've saved and closed the file. Opening again the file, the image is scaled (770x140) (why?)
 
Moreover if the image is thin (f.e. 1000x3 px) then becomes a transparent region. Clicking to edit the trasparent region, an exception is thrown.
 
System.ArgumentException: Invalid parameter.
   in System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
   in ..(MenuButtonArgs args)
   in ..(Object , RegionBase , MenuButton )
   in ...(Object , EventArgs )
   in System.Windows.Forms.MenuItem.OnClick(EventArgs e)
   in System.Windows.Forms.Command.Invoke()
   in System.Windows.Forms.Control.WmCommand(Message& m)
   in System.Windows.Forms.Control.WndProc(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

    smath (Monday, April 13, 2015 7:54 PM) #

Both issues fixed.

Thank you!