Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Mouse select a box on screen

Author
Message
spooky
21
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 21st Nov 2002 16:36
Did a fractal generator, see:

http://www.darkbasicpro.com/apollo/view.php?t=1886&b=11

Is there a better way to draw loads of stuff on the screen and then allow user to zoom in with mouse by selecting a portion of the screen by dragging a box.

I could only think of drawing the fractal, grab it as an image, then paste it as a sprite. Then you can do a select-box type thingy without worrying about wiping out image under it.

Trouble is, when you re-paste the sprite it goes a bit blurry. Why?

Is there a better way of doing what I want?
I love it when a plan comes together
ToXic
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Australia
Posted: 21st Nov 2002 22:16
when you load or get your image put a ,1 at the end of your command ie (get image 1,10,10,20,20,1) this should fix the blurring problem.

ToXic.
ToXic
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Australia
Posted: 21st Nov 2002 22:20
also,,,,,,,,,,,,,,,,,,,,nice code .

ToXic.
spooky
21
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 22nd Nov 2002 14:48
Ta, I'll give it a go tonight after work.

I love it when a plan comes together
spooky
21
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 24th Nov 2002 22:44
You're a genius, worked a treat!

Why this isn't the default mode for 'get image' who knows.

I love it when a plan comes together
Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 25th Nov 2002 08:33
beatiful code =D

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/2.5mbs Sat Con... I joined in!

Login to post a reply

Server time is: 2024-04-20 13:13:31
Your offset time is: 2024-04-20 13:13:31