John Labenski <jlaben...@gmail.com> wrote: (06/03/2009 03:06) >You can also try using >wxDC::SetUserScale() IIRC.
Further to that last message, I'd been trying it in the OnPaint() handler because when I tried it in the Main() function where the bitmap is loaded, it didn't do anything (though wxLua didn't protest at my usage). I tried again, with mixed results. local DC,C,P=wx.wxMemoryDC() DC:SelectObject(BITMAP) local X,Y,x,y=string.find(T[1],"^(.-)\t(.-)$") for N in ipairs(T) do C=wx.wxColour(255,0,0) P=wx.wxPen(C,1,wx.wxSOLID) C:delete() DC:SetPen(P) P:delete() _,_,X,Y=string.find(T[N],"^(.-)\t(.-)$") DC:DrawLine(x+0,y+0,X+0,Y+0) x,y=X,Y end DC:SetUserScale(0.5,0.5) DC:SelectObject(wx.wxNullBitmap) DC:delete() At the location right before delete, it does nothing. If I place it before the track drawing to wxMemoryDC it scales the track nicely. But at no point will it scale the bitmap. I was thinking that bitmap was loaded to the MemoryDC and was being drawn on directly by that track, but it can't be if one scales but not the other. Now I don't know exactly what I have... ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users