[futurebasic] Re: [FB][FB^3] Zooming with GWorlds

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2002 : Group Archive : Group : All Groups

From: Chris Wyatt <space@...>
Date: Fri, 01 Jan 1904 04:20:10 +1100
G'day Ashley,

you wrote:

> Hi All,
>   I am working on a program where I need to be able to zoom in on a world map. I am using a GWorld with the world map in which is 1600x800 pixels. I then have the scratch GWorld where the drawing is done which is 720x360 pixels. The world map is COPYBITSed to the scratch world. I have developed a function that reduces the size and varies the location of the source rectangle (ie the rect on the 1600x800 Map). When I zoom in the first zoom works but any zoom after this garbage gets put on the screen. I have taken some screen shots that are at ftp://ftp.futurebasic.org/futurebasic/DropBox/GWorldOut.sit
>
>   Does anybody have any ideas on 1) why it is doing this and 2) how I can fix it.
>
>   I am using Release 3 and it is a zoom factor of 8.

Check your rectangles.

Regards,

Chris Wyatt, in Bendigo, Australia.