chess
Hola
honala13 at oo2.pl
Thu Oct 18 23:31:09 PDT 2007
>> ok, I write this one:
>> http://dark-code.bulix.org/g85xr4-58309
>
> And - what happens? Did you add jpeg-support? Did bmp show up? (Hint:
> Prepending m_ to member variables add a great deal of readability to the
> code). What is the problem?
yes showing the jpg file.
read next paragraph...
>>> You might want to rescale the bitmaps with wxImage::Resize()
>>> (http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximageresize) to
>>> the size you need or alternatively switch to a TTF-font with chess figures
>>> using wxDC::DrawText() and rely on the OS's scaling functions. Another
>>> solution would be a temporary wxMemoryDC and then wxDC::Blit()
>>> (http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcblit) which
>>> usually is hardware-supportet and therefore pretty fast.
>
>> hm... where I have to put that?
>
> Did you look at wxBombs?
yes but this program NOT have a resize window.
>> what change this code?
>
> My time is a bit limited and your question a bit vague. Please have a look
> at the wxLife demo - it's paint handler LifeCanvas::OnPaint() is quite
> advanced in that respect and redraws regions of the canvas when they are
> damaged.
this program no have a jpg file & resize. ;(
the DC context show me whole canvas but what I can resize elements.
ok. thanks sugestions "read the tutorial ;)"
More information about the wx-users
mailing list