Hi,
The idea is that I want to display a list of 6 or so images with differing
levels of compression. I then want the user to select the one with the
lowest file size that is good enough quality. I could write all the files to
a temp folder on the hard drive and then just point to those but I would
rather do it in memory.
Is there any way to count the number of bits/bytes in an image object?
If it HAS to be done using the file system...how do you do it?
Thanks in advance,
Stu
"Kevin Spencer" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> You want to get the file size without using the file system? If you want
to
> get the FILE size, you're going to have to look at the FILE.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> http://www.takempis.com
> Big things are made up of
> lots of little things.
>
> "Stu" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi,
> >
> > I have opened an image using the code below. I can read the physical
> > dimesions of the image but I need to get the file size.
> >
> > Dim img As System.Drawing.Image
> > img = System.Drawing.Image.FromFile("C:\MyImage.jpg")
> >
> > I need to do it without looking at the file system as I am going to be
> doing
> > some basic compression on the fly, and allowing the user to select the
one
> > with the lowest file size that looks OK.
> >
> > Thanks in advance.
> >
> > Stu
> >
> >
>
>