hi, and thanks for answers!
So, since I'm making a kinda image viewer, my many big jpg's will turn
into a gazillion bytes in memory once loaded into an array of images?
Furthermore, loading a jpg and saving it again as a jpg will hence
result in loss of data, even without any changes made? This is
presumably because the jpg is translated into a bitmap (lossless),
which is then translated into a jpg (lossy)?
Finally, whan preserving image data to a stream and reading it back
again, why do I need to set the size? Isn't this included ing what's
read in Image.FromStream()?
Thanks!
- Peder -
"James Curran" <JamesCurran@mvps.org> wrote in message news:<OpVMF7KpEHA.1460@TK2MSFTNGP12.phx.gbl>...[color=blue]
> An Image, as is *everything* displayed on the screen in Windows, is a
> bitmap -- when in memory.
>
> Formats are just way of compressing it for storage on disk.
>
> Converting *to* a bitmap should never lose information (assuming the
> bitmap has a suitable large color depth). However, convert a bitmap to some
> other formats (notably JPEG) can result in the loss of information. (The
> idea behind JPEG is that it allows great compression of photos, by removing
> information that, in theory, your eye can't discern anyway)
>
> --
> Truth,
> James Curran
> Home:
www.noveltheory.com Work:
www.njtheater.com
> Blog:
www.honestillusion.com Day Job:
www.partsearch.com
> (note new day job!)
> "Peder Y" <pyda001@ec.auckland.ac.nz> wrote in message
> news:10b28c6c.0409270754.628af13e@posting.google.c om...[color=green]
> > Surely, anyone can read it's attributes and methods...
> >
> > Now, how does Image store the image data? How does it discern between
> > e.g. jpg, gif and bmp. Does it know it's own size, or does one need to
> > save it to a stream to fetch the image size?
> >
> > I'm trying to save images of different formats to one single file.
> > When I do someImage.FromStream(), will it know all the data as before,
> > or will some be lost in some conversion process?
> >
> > If one loops through the image _properties_, RawFormat pops up as e.g.
> > jpg and some long code. Can the format be retrieved from this?
> >
> > Thanks!
> >
> >
> > - Peder -[/color][/color]