[wx-dev] #9554: wxDC.SetUserScale + wxDC.DrawBitmap = incorrect scaling when scaling by a factor of 7+

wxTrac noreply at wxsite.net
Sun Jun 8 03:39:32 PDT 2008


Ticket URL: <http://trac.wxwidgets.org/ticket/9554>

#9554: wxDC.SetUserScale + wxDC.DrawBitmap = incorrect scaling when scaling by a
factor of 7+
------------------------------------------+---------------------------------
 Reporter:  Vladiuz                       |       Owner:         
     Type:  defect                        |      Status:  new    
 Priority:  normal                        |   Milestone:         
Component:  wxMSW                         |     Version:  2.8.7.1
 Keywords:  SetUserScale, DrawBitmap, DC  |   Blockedby:         
    Patch:  0                             |    Blocking:         
------------------------------------------+---------------------------------
 I am using SetUserScale to zoom on images (more efficient way than
 resizing the image). In wxPython (Windows Vista) this does not work
 correctly when scaling to large magnitudes (7+). In particular the
 resulting image size is always off by a few pixels, and sometimes the
 positioning is off too by a pixel.

 (I suspect the same problem may occur on other systems and in APIs for
 other languages.)

 I will attach an image with example of the problem.

 Please point me to a way to fix this, or someone write and apply a patch
 please. I am ready to compensate for your time! :)


--
Ticket URL: <http://trac.wxwidgets.org/ticket/9554>


More information about the wx-dev mailing list