Results 1 to 2 of 2

Thread: Combining multiple JPEGs into one file...

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    Israel
    Posts
    23

    Unhappy

    I need to make a program that will show basically a slide show of JPEGS from files that will distributed separately. Each file would have a varying amount of pictures in it. But the point is it needs to be one file.
    What I mean is, ther user will load this one file in the program and then he will be able to browse through the 30 or 50 or whatever number of pictures that are inside this file.

    My question is, how would I go about stringing 30 jpeg files together into one file that I could then use in my program? How could the program look at this one file and then show the separate jpegs contained in it? And how could I add extra information to the file that the program would use (the number of pictures in the file, the artist of each photograph... like an ID3 tag)?

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Having a UDT primary header for file amount and a secondary header for file offset and size and Tag data that is followed by the jpg's themself.
    You need to open your file binary, use get and put statements to read and write your udt structures to your file, the secondary header being dynamic in amount has to be redimmed after getting it from the primary header.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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