decrease size of jpeg file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i can't load jpeg files in picturebox due to its size (300+ kb), outofmemory exception appear
is there a way to decrease quality or size in a jpeg file with CF? exception don't appear with small file
thanks in advance
 
don't forget a JPG is already compressed.
so the JPG file might be only 300k, but the in memory picture could as well
be 4Mb

--
ihookdb
Get your data mobile
http://www.ihookdb.com


Jesus said:
i can't load jpeg files in picturebox due to its size (300+ kb), outofmemory exception appears
is there a way to decrease quality or size in a jpeg file with CF?
exception don't appear with small files
 
Thanks Lloyd, is there a way to show a JPG in picturebox? (300 kb file)
 
The point Lloyd is making is that most likely it's image dimensions, that
are too large, and not the compressed file size. Consider that a single
color file (all white) sized 2000x3000 px will probably compress to 2 - 3
KB. This does not mean that it'll load - the uncomressed image (in 24bit
color) will be 18 MB - way more than PPC can handle
 
Hi, I have the same problem when using big files from 3000x2000
What I didn't understand is that I could display the file without any problems using a eVC sample who is working with imgdecmp.dl
Would it be possible in c# to call a function who return a resized image. Whe never need to display the 3000x2000 pixels, just according to the siez of the picturebox, so it would take less memory space
Th
Stdu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top