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 / Grab Image Texture Flags?

Author
Message
Maverick
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location:
Posted: 3rd Nov 2002 04:29
When using the Grab/paste image commands all grabbed images are blurred when pasted, i noticed that there is a texture flag attached to Grab Image, but alas no documentation, What are the texture flags. Any help would be greatly appreciated.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 5th Nov 2002 02:04
The way it works is this - the images are blurred when pasted to bitmap 0 (the current screen display) because essentially they're being anti-aliased by DirectX (cheers DX!). If you then grab from bitmap 0 and paste again, you get double the blur effect and so on until it becomes a hazey mess.

If you "get image" from an offscreen bitmap (1+) then the image will be fine until you paste it again.

The additional parameter on paste image is a transparency flag - set it to 1 and all pixels coloured RGB(0,0,0) are ignored (hence, transparent).

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming

Login to post a reply

Server time is: 2024-05-07 16:04:03
Your offset time is: 2024-05-07 16:04:03