CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 1999
    Posts
    134

    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


  2. #2
    Xeon's Avatar
    Xeon is offline Elite Member Power Poster
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    4,195

    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

  3. #3
    Join Date
    Mar 2001
    Location
    Singapore
    Posts
    57

    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?


  4. #4
    Join Date
    Mar 1999
    Location
    ann arbor, Michigan, USA
    Posts
    106

    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
  •  





Click Here to Expand Forum to Full Width

Featured