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 / Save Image Command not working

Author
Message
krfsim
22
Years of Service
User Offline
Joined: 26th Aug 2003
Location:
Posted: 5th Sep 2003 16:02
When the save image command is used to save to jpg file formats the width and height parameters get reversed, i.e., a 800x600 image becomes a 600x800 image. When the other file formats are tried, the resulting file cannot be opened and viewed by PhotoShop, Paint, etc.
Has anyone else noticed this problem?
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 5th Sep 2003 16:07
Its been mentioned in the Bugs forum...


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
brittd99
23
Years of Service
User Offline
Joined: 16th Sep 2002
Location:
Posted: 10th Sep 2003 07:29
Hope they mentioned that it does the same to bmp format.
TheOneRing
22
Years of Service
User Offline
Joined: 28th Aug 2003
Location: Right here.
Posted: 10th Sep 2003 17:01
I've actually had success in saving a BMP file with the correct dimentions... Can't say the same for JPG.
brittd99
23
Years of Service
User Offline
Joined: 16th Sep 2002
Location:
Posted: 16th Sep 2003 07:48 Edited at: 18th Sep 2003 08:45
Ok I will probably get flamed for this, but I have been known to be impulsive and make people mad.

I can't believe a simple fix like switching the Width and hieght parameter on save image, did not make it into the 5.1 patch. This could not have taken more then 30 minute time of coding. It took me less then that to write the code using darkbasic to save bmp files. But it is slow and sucks because I use this to create one large matrix texture by combining small blocks of pictures into on large bitmap.

Get your act together guys and fix these silly bugs. I don't even understand how you broke it unless old code got recomplied.

Ok fire proof body suit on. Don't care, this crap needs to be fix in timely matters, and now probably be 2 months or more before 6 will be released to fix this bug since 5.1 came out today.
Eric T
23
Years of Service
User Offline
Joined: 7th Apr 2003
Location: My location is where I am at this time.
Posted: 16th Sep 2003 08:25
Quote: "could not have taken more then 30 minute time of coding"



Ehhhhhh I don't think its more of how long it is to code it, or THE AMOUNT OF TIME IT WOULD TAKE TO FIND IT in thousands lines of code. I'm not sure if you have gone through 100,000 lines of code latley, looking for 1 measly snippet, but i'll tell you now, it can take days (unless your an organized coder, how marks where his stuff is, but that's kinda foriegn to programmers).

Working on 4 projects 2 RPG(programming texturing and 3d map), 1 3rd person shooter (Programming), and a special project.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 16th Sep 2003 10:04
@brittd99, you've only mentioned one of many bugs, because that one is specifically important to you.

So Lee deals with that 30 minute fix for you, then another for someone else, and another, and another ...

If Lee dealt with all the little 'quick' fixes now, 5.1 would never have been released. As it was, he has targetted only the most important ones.

There's code in the Code snippets for saving bitmaps and images to files that has been around for months. You can use that for now
brittd99
23
Years of Service
User Offline
Joined: 16th Sep 2002
Location:
Posted: 17th Sep 2003 07:56
Hah I wrote a big long 20 line reply to this and then scratched it all. It seems people are always making excuses for the DBPro team when in reality they shouldn't. I beta this product & pre-order it before it was release. 5 versions later and I am still waiting for a finished product.
DMXtra
23
Years of Service
User Offline
Joined: 28th Aug 2002
Location: United States
Posted: 17th Sep 2003 14:12
Quote: "Hah I wrote a big long 20 line reply to this and then scratched it all. It seems people are always making excuses for the DBPro team when in reality they shouldn't. I beta this product & pre-order it before it was release. 5 versions later and I am still waiting for a finished product. "


Well, nobody can deny that its had its problems. I doubt DBPro will ever be finished as most software it evolves.

What you need to do is use the built in C++ commands to save images. Oh wait, you mean you have to do a little work, God forbid you might actually code a little bit.

Dark Basic Pro - The Bedroom Coder's Language of choice for the 21st Century.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Sep 2003 16:43
As I said before ...

Quote: "There's code in the Code snippets for saving bitmaps and images to files that has been around for months. You can use that for now"


So you don't even have to write the code
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 17th Sep 2003 18:13
Guy.S. had written one ages ago anyway in case you forgot about that extra image saving DLL.

http://www.lunarpixel.com
It's already tomorrow in Australia
DMXtra
23
Years of Service
User Offline
Joined: 28th Aug 2002
Location: United States
Posted: 18th Sep 2003 01:25
Screw it, don't tell him anything, make him do a little work.

No doubt he is probably looking for the create game button with DBPro as well.

Then he will complain about DBpro not having a create game button and how he paid all of this money and how Lee is an idiot for not including it.... blah...blah...blah...

Dark Basic Pro - The Bedroom Coder's Language of choice for the 21st Century.
brittd99
23
Years of Service
User Offline
Joined: 16th Sep 2002
Location:
Posted: 18th Sep 2003 08:58 Edited at: 18th Sep 2003 09:00
As I said in my second post I already wrote a work around.
Have spent to much time looking for work around, or writing them myself. Also spent too much time trying to figure out why my code doesn't work only to find out 4 hours later that it is a bug in DBPro.

DMXtra... I don't think any of them are idiots on the DBPro team. They are proably better programmers then 99% of the people at this form.

Lets put it this way. If you bought a car because the adds said it was a great car, it was fast, smooth, pleasing to look at and pured like a kitten, but the dashboard would blink, the radio changed station randomly, head lights didn't work and there was several buttons on the dash board that where not documented. You would take it in to get fix, if not completely return it for a lemon. Now add to the fact that everytime you took it in, the Mechanic would fix some of the problems, but not all of them, and the car would sometimes come back with problems it never had before. A year later your car still had major problems even though it ran great and was fast. Would you be mad?
DMXtra
23
Years of Service
User Offline
Joined: 28th Aug 2002
Location: United States
Posted: 18th Sep 2003 11:40
Well as long as I can drive it and I get free updates I am in like flynn.

You can't really compare cars and software. Many people try to compare Microsoft software with the anology that you posted, but they just end up looking dumbfounded instead.

There is no denying that DBPro still has some bugs, but look at it this way, its the most advanced system of others in its class, it also only has two programmers and then have to deal with system incompatiblities of different hardware (DirectX 8-9 can react differently on different hardware because of driver issues). They don't have thousands of machines like Microsoft and don't have the relaxed standards of a DirectX 5 that works on every system, they update to the latest standards, verses not release anything or any new features.

Upgrade 6 will be huge for many things, from getting every bug fixed possible as the first priority, then the second priority is to add in features.

Do I expect Upgrade 6 to be perfect? Of course not, but I do think its a big step into providing the stability you are looking for. Probably upgrade 7 will finish the job of making things really stable (Although there still will be a few bugs, things will be strong enough to really rock).

According to Rich, documentation is on the way, all of this stuff takes time. We only have 24 hours in a day and none of this stuff happens over night.

Dark Basic Pro - The Bedroom Coder's Language of choice for the 21st Century.
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 18th Sep 2003 12:25
unless Guy.S dll doesnt work anymore, I cant see the problem.

http://www.lunarpixel.com
It's already tomorrow in Australia
mR n
23
Years of Service
User Offline
Joined: 25th Jun 2003
Location:
Posted: 20th Sep 2003 07:20
hey (question from a random guy): what is a decent guess at how long it'll take for upgrade 6 to come out?
zzabb
23
Years of Service
User Offline
Joined: 25th Apr 2003
Location: Seattle, USA
Posted: 20th Sep 2003 08:04 Edited at: 20th Sep 2003 08:24
well after reading all of these posts, i find myself wondering if it could ever be good enough, with enough features, for some people???

go get DBreg its stable and has very few bugs, but it doesn't have.... waaa waaa waaa 'sniffle' 'sniffle' waaaaaaa all the features...

i'm not necessarily sticking up for the DB team, but i don't see all these problems that some have
it seems nearly all problems can be worked around i mean basically isn't that what programming really is?
if your telling me that the only reason you aren’t or haven't written the next best greatest game is because of the few bugs that can't be worked around then i'd tell you your full of crap

so on to the car analogy
the one thing left out of the whole equation is the price
i don't know about most of the people on this board, but if they are like me they have several thousand in software and short of word, windows and explorer i've used DB more over the last 10 months(when i bought it) than pretty much any other program, so i've got my moneys worth, bugs and all. if you haven't then that’s on you, not the program makers

and one other thing
writing a language is infinitely harder than writing a game or application because by nature games and applications have a beginning and an ending , point ‘a’ to point ‘b’ and your done, but a language has no beginning or ending so it is infinite or at least only limited by the skill and imagination of those who write and use it

My advice is free -
unfortunately you get what you pay for (-:

Login to post a reply

Server time is: 2026-07-25 08:29:22
Your offset time is: 2026-07-25 08:29:22