|
-
August 25th, 2001, 03:36 AM
#1
New File Format??
Hi there! I wanna create my own custom file format which em-beds and
holds a bitmap image and some text within the file.(let's call it .dip)
When the user serializes(saves) the file, I wanna store the data bits
and information about the bitmap in member variables, so that when the
file is saved, the file size will be much much lighter, cos' the bitmap
isn't physically saved to disk, just the information about the bitmap,
so that when the user clicks the Open menu item, the bitmap bits and
information are read and united into a bitmap at run-time.
Hope u can reply and give me your views! Thanks! :-D
-
August 25th, 2001, 07:24 AM
#2
Re: New File Format??
Er-hem!(clears my throat) :-)
[b]............[b]
"Hell is calling for you!" - Rufus, from Valkyrie Profile 2 : Silmeria
"I'm getting tired of you devils.....finishing strike......Final Blast!" - Arngrim, from Valkyrie Profile 2 : Silmeria
-
August 27th, 2001, 08:16 AM
#3
Re: New File Format??
what do you mean by this? Then what is the point of saving the file?
Do you intend to close your program after saving a file in that manner, and expect to read in the bitmap you 'saved' again the next time?
-
August 27th, 2001, 09:10 AM
#4
Re: New File Format??
uncompressed bitmap file formats do what you are suggesting. infact they are a bit better than that. for example you may want to save every pixel value and its x, y coordinates in your image description file. but what if you have a stream and save pixels in order and avoid the x, y coordinates. and describe the image in rows and columns. well now you got an uncompressed image file format. the next step is compression. there are great book on this subject. some of them are so much fun to get into. not only from a technical point of view, but rather the genious behind them. I mean even the run length is pretty clever. I would recommend you to read some.
Good luck in your questioning as a method of learning. there is nothing wrong with reinventing the wheel imho.
Yalcin Yanikoglu
IoFlex Inc.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|