A customized image format, theories?

Everything else that doesn't fall into one of the other PB categories.
Hydrate
Enthusiast
Enthusiast
Posts: 436
Joined: Mon May 16, 2005 9:37 pm
Contact:

A customized image format, theories?

Post 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?
.::Image::.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Why invent yet another image format when there are dozens on them everywhere?
Hydrate
Enthusiast
Enthusiast
Posts: 436
Joined: Mon May 16, 2005 9:37 pm
Contact:

Post 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.
.::Image::.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Are you storing the numbers as ascii in the file? Like 10 for 10 red?
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

Hydrate wrote:something to do in your spare time
What's that?
Image Image
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post 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.
Hydrate
Enthusiast
Enthusiast
Posts: 436
Joined: Mon May 16, 2005 9:37 pm
Contact:

Post 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).
.::Image::.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Well, you should them as bytes, that would be faster.
Post Reply