John Labenski 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
John Labenski wrote:
(06/03/2009 03:06)
>
>On Wed, Mar 4, 2009 at 4:01 AM, lostgallifreyan
> wrote:
>>>
>>>I would load the original as a wxImage and convert it to a wxBitmap
>>>for drawing, saving both of these. If the zoom changes, use the
>>>wxImage functions to rescale into the same wxBimap a
On Wed, Mar 4, 2009 at 4:01 AM, lostgallifreyan
wrote:
>>
>>I would load the original as a wxImage and convert it to a wxBitmap
>>for drawing, saving both of these. If the zoom changes, use the
>>wxImage functions to rescale into the same wxBimap and use this to
>>draw into your DC. That way your
John Labenski wrote:
(04/03/2009 07:08)
>-- YOU MUST DELETE THE PEN and COLOUR!
>local c = wx.wxColour(255,0,0)
>local p = wx.wxPen(c,1,wx.wxSOLID)
>> DC:SetPen(p)
>p:delete()
>c:delete()
>> DC:DrawLine(0,0,600,600)
>> DC:delete()
>> end
Good, that is exactly what I had in mi
On Sun, Mar 1, 2009 at 3:22 PM, lostgallifreyan
wrote:
>
> First, the code, in FULL because the one thing that made my day most
> difficult is snippets out of context. So much easier if a copy/paste of a
> working example can be had, then debugging is simple, focus on what change
> breaks somet
>This next wxPanel is on top of the CHART window. I would suggest
>drawing the image on a wxPanel yourself since the wxStaticBitmap is
>really meant for small images. You can either let the scrolled window
>take care of moving the image or get the coords from the scrolled
>window and crop the image
On Sat, Feb 28, 2009 at 9:34 AM, lostgallifreyan
wrote:
>
> Ultimately I want to zoom the view in and out as well as pan it, so if you
> have clues on how to do that, please let me know.
>
>
> SCRIPT:
>
> function main()
> FRAME=wx.wxFrame(wx.NULL,-1,"GPS
> Plot",wx.wxDefaultPosition,wx.wxSize(