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 / .bmp is blurred

Author
Message
odiggity
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location:
Posted: 20th Apr 2008 04:57
Hi,
I am extremely new to db. Anyways I have the following code



If i open this image in paint it looks fine, but its really blurry and one of the lines doesn't even show up when i load it as a sprite (i have attached a picture of what it looks like).

I have set the display mode to dbSetDisplayMode(1280, 800,0);

Why is this happening?

Attachments

Login to view attachments
Twinsen
18
Years of Service
User Offline
Joined: 20th Jun 2006
Location: Romania
Posted: 20th Apr 2008 09:09 Edited at: 20th Apr 2008 09:09
I see you use Dark GDK and not Dark Basic ... anyway, your problem is because the image flag is badly set ... in DarkBasic, the normal command looks like this:



after you do this, you would have the same problem so I'll show you how to fix it in DarkBasic and hopefully, using the manual, you'll figure out the equivalent solution in DarkGDK :



as you can see, I've added an extra ,1 which tells the program to treat the image as it is ... otherwise, the image is blurred because it's stored in the Video memory as a texture with mipmaps on

Could you help me treat my injured Dino-Fly ?
odiggity
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location:
Posted: 20th Apr 2008 18:32
lol thanks, that was it.

Login to post a reply

Server time is: 2024-11-25 06:55:13
Your offset time is: 2024-11-25 06:55:13