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 / BUG: Powers of 2 in PASTE IMAGE:

Author
Message
Zep
21
Years of Service
User Offline
Joined: 31st Aug 2002
Location: From PA, USA. Currently reside in Hanoi, Vietnam
Posted: 28th Sep 2002 03:36
This pastes an image that is not right (too big)

Sync On
Ink RGB(200,0,0),0
Box 0,0,100,100
Get Image 1,0,0,100,100
Paste Image 1,150,0

Do
Sync
If SpaceKey() Then Exit
Loop

End

This code however, pastes the correct image size.
Sync On
Ink RGB(200,0,0),0
Box 0,0,64,64
Get Image 1,0,0,64,64
Paste Image 1,0,70

Do
Sync
If SpaceKey() Then Exit
Loop

End

Zep--
Gib007
21
Years of Service
User Offline
Joined: 28th Aug 2002
Location: United Kingdom
Posted: 28th Sep 2002 17:53
The "powers of 2" thing is actually present in almost everything!
At the beginning when I first tried to load up my own BSP map (with custom textures) into DBPro, the textures showed up as squares split by thick black lines...
This was caused by me not resizing my custom textures to "powers of 2"!
After resizing them all, my map worked perfectly...

Kayron James Mercieca - kayronjm@gibnet.gi

Login to post a reply

Server time is: 2024-03-28 17:19:44
Your offset time is: 2024-03-28 17:19:44