Page 1 of 1

A customized image format, theories?

Posted: Mon Jul 17, 2006 10:12 pm
by Hydrate
Well, i have been attempting to design my own image format, and first off, i started to wonder, vector, bitmap, or a combination? I decided to go for a combination.

Heres what i have come up with:

FGI,ImageName,390,390,91,132,225
e,0,0,10,10,118,158,126
b,15,17,90,22,69,69,69
t,18,16,222,100,69,Hello Mates!,Arial Narrow,14
p,10,10,100,100,69

Format,ImageName,width,height,backgroundr,backgroundg,backgroundb
eclipse,x,y,width,height,r,g,b
box,x,y,width,height,r,g,b
text,x,y,r,g,b,text,font,height
plot,x,y,r,g,b

And so on, it loads this into the memory, and then draws it.

Is there a more efficient way to do this, also, doing this in memory and decoding each image format including your own, is that the fastest way, or would you guys reccomend the pb image commands over it? Is there a faster way to save the information?

Basically, can i do this any faster, if so, how so?

Posted: Mon Jul 17, 2006 10:40 pm
by Trond
Why invent yet another image format when there are dozens on them everywhere?

Posted: Mon Jul 17, 2006 10:49 pm
by Hydrate
Trond wrote:Why invent yet another image format when there are dozens on them everywhere?
Simple really, for fun, enjoyment, something to do in your spare time. To customize it as YOU want it etc, to make things easier for you. Theres loads of reasons, me, im just doing it for the sheer fun of it, and to see if i can pull if off.

Posted: Mon Jul 17, 2006 10:54 pm
by Trond
Are you storing the numbers as ascii in the file? Like 10 for 10 red?

Posted: Tue Jul 18, 2006 3:16 am
by Straker
Hydrate wrote:something to do in your spare time
What's that?

Posted: Tue Jul 18, 2006 3:56 am
by Shannara
Straker wrote:
Hydrate wrote:something to do in your spare time
What's that?
Peeps w/o family have spare time :) I donno, I lost all my spare time in 2001.

Posted: Tue Jul 18, 2006 5:15 am
by Hydrate
Trond wrote:Are you storing the numbers as ascii in the file? Like 10 for 10 red?
At the moment yes, thats exactly what im doing, and since im doing my A levels and need to use the computer alot anyway, i have plenty of free time, as well as teh fact, i have my own, and that i live 4 1/2 miles from y school (takes so long to walk, i stay in most evenings).

Posted: Thu Jul 27, 2006 6:11 pm
by Trond
Well, you should them as bytes, that would be faster.