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.

Author
Message
A r e n a s
18
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 7th Aug 2010 16:39
Hey,

I was wondering whether anyone knows of a piece of code or dll which will convert images to bmp images. I'm looking for this because i need images which are compatable with bbb gui (only bmp images) and jpeg tends to be a much more common format. If anyone could direct me towards a converter that would be great,

Thanks,

Arenas

thenerd
17
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 7th Aug 2010 16:51 Edited at: 7th Aug 2010 16:51
well, neither jpg or bmp are good formats for game development, what I use for converting to bmp is paint because although it doesnt support transparency, paint doesnt save alpha anyway, so it's not much of a problem...The format I use most often is png, it is entirely lossless, and supports transparency...


Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 7th Aug 2010 17:25 Edited at: 7th Aug 2010 17:26
Thenerd is right it's better to use .png for all our programs but if you really need it for some other program Darkbasic Pro can do the conversion easily.

Any images you load into Darkbasic Pro can be converted to any format you want with the SAVE IMAGE command. All you do is use the desired file extension and it's converted properly.



BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 7th Aug 2010 17:29
Quote: "Any images you load into Darkbasic Pro can be converted to any format you want with the SAVE IMAGE command. All you do is use the desired file extension and it's converted properly."

Any useful (for game development) format, anyway.

Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 7th Aug 2010 17:54
Quote: "Any useful (for game development) format, anyway."


Yeah I should of clarified... any graphic format that Darkbasic Pro can load. .bmp, .jpg, .tga, .dds, .dib and .png

A r e n a s
18
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 7th Aug 2010 18:29
Png is also my format of choice, followed by dds. The problem is that the only format supported by the BBB GUI plugin to display in the form of labels is bmp.

Thanks for the help though Ive got it working fine, had one of those moments where i completely forgot image commands

Zyronagon
18
Years of Service
User Offline
Joined: 6th Mar 2008
Location: USA
Posted: 8th Aug 2010 03:53
I've had troubles using .png files in DBP, though I forgot what exactly they were... I just remember something obvious screwing up and it turns out it was because of the .png filetype, so now I use bmp.

I'm thinking it was either something to do with making the background of the sprite transparent, though I could be remembering wrong...

But yeah, using paint is the way to go.
A r e n a s
18
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 8th Aug 2010 12:47
The background of a sprite can be transparent Ive done it myself many times

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 8th Aug 2010 13:31
Quote: "I've had troubles using .png files in DBP, though I forgot what exactly they were... I just remember something obvious screwing up and it turns out it was because of the .png filetype, so now I use bmp."


DBP handles .png files perfectly well, with or without transparency. I use them or .dds files all the time, .bmp files are usually just unnecessarily large so I hardly ever use them. The main advantages of .dds files are that they load faster and support cube maps and volume textures as well - on the other hand .png files can be made easily in MS Paint which is useful for testing code.
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 8th Aug 2010 17:46
Quote: "I've had troubles using .png files in DBP, though I forgot what exactly they were... I just remember something obvious screwing up and it turns out it was because of the .png filetype, so now I use bmp."


You really should revisit using .pngs for your programs. Games look so much better with the alpha transparency ability in .pngs. .bmps can't do transparencies at all.



DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 8th Aug 2010 18:25
The Gimp. Free program that supports loads of stuff. I recommend using png's for game graphics or possibly dds for 3d if you prefer.

http://s6.bitefight.org/c.php?uid=103081
Zyronagon
18
Years of Service
User Offline
Joined: 6th Mar 2008
Location: USA
Posted: 8th Aug 2010 22:51
Yeah, I know that png supports transparency. I've been doing alot more 3D now though, but I'll keep that in mind.
A r e n a s
18
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 9th Aug 2010 00:15
I strongly recommend Gimp. You can also get plugins for DDS images with it as well. Even though its free, in my opinion its much better the photoshop (which i also own). PNG's function as any other image file is, so theres not change in how you code.

Login to post a reply

Server time is: 2026-07-25 01:13:22
Your offset time is: 2026-07-25 01:13:22