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.

DarkBASIC Professional Discussion / Images are sooo blurry!

Author
Message
The One Ring
23
Years of Service
User Offline
Joined: 15th Sep 2002
Location: United States
Posted: 9th Apr 2003 06:50
Hello all!

I'm pretty sure I've seen this haggled over in the fourms before, but I'm not sure that I've seen a solution.

In my application I draw a listbox using lines, boxes, and then text. As the list grows, however, it takes longer to process, and slows the program down a bit.

In an attempt to optimize this, I wrote the code so it would use GET IMAGE to take a "snapshot" of the listbox. If the user hasn't scrolled or clicked on an item, I simply show the snapshot. If there is user interaction, I actually draw all items again, then take another snapshot.

This works good and well, but the snapshot image looks terrible!!! Fuzzy!!
Does anyone know what can be done about this? I have tried two different computers with 2 different video cards.

DBP4

Thanks!
Good, bad... I'm the guy with the gun. - Ash in Army Of Darkness(1993). http://www.divekahuna.com/images/aod-small.jpg[/img]
Richard Davey
Retired Moderator
24
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 9th Apr 2003 07:00 Edited at: 9th Apr 2003 07:00
get image #,x,y,x2,y2,1

The bit in the bold is the key bit.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
The One Ring
23
Years of Service
User Offline
Joined: 15th Sep 2002
Location: United States
Posted: 9th Apr 2003 07:11
Thanks Rich. This solved the blurry prob... The GET IMAGE seem to have slowed it down, however... Interesting... I'll have to experiment more.

Good, bad... I'm the guy with the gun. - Ash in Army Of Darkness(1993).
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 9th Apr 2003 10:58
when you load the imge type

load image "imagename",1,1

again the bit in bold is important
also remember not to use jpg files ( they are quite crappy ) i would say bitmap images are the sharpest

I have a word of advice...
..don't piss on an electric fence!
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 9th Apr 2003 14:05
Even better use PNG files

Current Project: Retro Compo. Entry.
TheCyborg
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 9th Apr 2003 14:21
Now we are talking about it... What is the last bit for? Why isn't it on as default?

TheCyborg Development.
http://TheCyborg.Amok.dk
The Ultimate Source To DarkBASIC Programming.
Richard Davey
Retired Moderator
24
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 9th Apr 2003 14:27
This is covered (quite extensively) in Tutorial 1 on this site.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
TheCyborg
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 9th Apr 2003 14:49
ok i'll look at those when i come home.
thx.

TheCyborg Development.
http://TheCyborg.Amok.dk
The Ultimate Source To DarkBASIC Programming.

Login to post a reply

Server time is: 2026-07-11 09:30:25
Your offset time is: 2026-07-11 09:30:25