What you are doing sounds correct (copying on/offscreen with
WinCopyRectangle).  The OS Reference recommends you use bitmap functions
instead, but both ways should work.

When using a high density screen, make sure to create the offscreen window
in the same format as the screen (nativeFormat) to avoid losing resoution.
If you're doing anything with the coordinate system, make sure you reset it
when copying/recopying the window.
-- 
Tim Kostka
http://www.nuprograms.com


"Catherine Soldan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>   Have been programming for a long time but am just learning my way around
palmos. While programming a more or less classic swap type jigsaw puzzle,I
wish to have a copy of the screen image offscreen so that I can put the
pieces back onscreen in mixed-up order. I have been attempting to do this by
copying the screen to offscreen by using wincopyrectangle src to dest with
coords of 160x160 (entire screen). I also attempted winsavebits. The form
bitmap has been divided up and the exact coordinates of each piece is in an
array of records(yes I am a pascal person I don't believe 'C' existed at the
time I learned pascal and I never switched. Thanks delphi, Thanks
pocketstudio). The problem is that when I put the piece back on the main
screen using the exact copied offscreen image with the exact coordinates it
is the wrong size. It appears to be from the correct place and into the
correct place but is either double-width or double height or both.
>   I assume that there is something that is fundamentally wrong about doing
things in this manner. Please inform me of how such a simple procedure is
commonly done and what I am doing incorrectly.
>
>
>
> peter r. soldan
> [EMAIL PROTECTED]
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to