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.

Dark GDK / Where is dbSetBitmapFormat

Author
Message
TechLord
21
Years of Service
User Offline
Joined: 19th Dec 2002
Location: TheGameDevStore.com
Posted: 21st Jan 2010 21:38 Edited at: 21st Jan 2010 22:13
I have searched high and low in the forum and DGDK Docs for this command with no luck. I only posted this out of pure frustration. Can someone, anyone please tell me where the DGDK dbSetBitmapFormat or equivalent is located. I'm using Memblock commands to capture the image from a Bitmap. The technique worked in DBP, but, DGDK is missing a SET BITMAP FORMAT equivalent. Sincere Thanks in advance.


Actual Bitmap (generated within DGDK)
Click to Zoom


Image viewed with GIMP (transparent pixels)
Images look like this when drawn to DGDK Sprites



TechLord
21
Years of Service
User Offline
Joined: 19th Dec 2002
Location: TheGameDevStore.com
Posted: 22nd Jan 2010 17:23 Edited at: 22nd Jan 2010 17:23
[FIXED] A call to dbSetSprite before assigning Sprite an Image.



TechLord
21
Years of Service
User Offline
Joined: 19th Dec 2002
Location: TheGameDevStore.com
Posted: 30th Apr 2010 02:39
There is still an issue. Now Alpha transparency is not working with


TechLord
21
Years of Service
User Offline
Joined: 19th Dec 2002
Location: TheGameDevStore.com
Posted: 30th Apr 2010 03:41 Edited at: 30th Apr 2010 03:42
FIX IT!!!

Add this line:


To:


Quote: "

dbSetBitmapFormat

This command will set any future bitmap created to the following format. Be aware that not all surface formats support a render target bitmap. Here are some common values you can set:

20 24-bit RGB pixel format with 8 bits per channel.
21 32-bit ARGB pixel format with alpha, using 8 bits per channel.
22 32-bit RGB pixel format, where 8 bits are reserved for each color.
23 16-bit RGB pixel format with 5 bits for red, 6 bits for green, and 5 bits for blue.
24 16-bit pixel format where 5 bits are reserved for each color.
25 16-bit pixel format where 5 bits are reserved for each color and 1 bit is reserved for alpha.
26 16-bit ARGB pixel format with 4 bits for each channel.
32 32-bit ARGB pixel format with alpha, using 8 bits per channel.
33 32-bit RGB pixel format, where 8 bits are reserved for each color.
Syntax

dbSetBitmapFormat(Bitmap Format Number)

"


Login to post a reply

Server time is: 2024-05-18 16:08:17
Your offset time is: 2024-05-18 16:08:17