> For photographs you could probably go as low as 25%, but for computer
> generated images, you might want to use 75%. Experiment, and you will find a
> suitable default for your needs. Additionally, you can always adapt the
> function to take quality as a parameter.
>
Or consider using libpn
Linda,
Re.
>
> int jpeg_quality = 100;
>
> If you've left it at that default, you might want to do some
> experiments lowering it.
>
> Basically with JPEGs you want to try to set the quality as low
> as possible, without making the image all ugly with jpeg artifacts.
>
Yes
Linda wrote:
> I found out the .jpg file’s size is relatively large.
> For example, an output result_0.jpg file is about 30KB.
> I open it with Windows ‘Paint’ accessory and save it
> as another result_1.jpg file. The new result_1.jpg file
> is only 10KB. Is there anyway to improve D. Zimmerâ
Thank you, Greg Ercolano.
The problem IS 'file not found'. I put the image files in the âdebugâ
directory. But the default VC2005 directory is something different.
Another question is about using libjpeg.lib to save images as .jpg files. I use
D. Zimmerâs code.
http://www.fltk.org/news
Linda wrote:
> Fl_BMP_Image *bmp = new Fl_BMP_Image("tiny.bmp");
> count() returns 1; d() returns 3; h() returns 0; w() returns 0.
Sounds like a 'file not found' or 'permission denied' situation.
Try supplying the absolute path to the images, eg:
Fl_BMP_Image *bmp = new Fl_BMP_Ima
Hello, everybody.
I am using fltk 1.1.7, Microsoft Visual 2005, and Windows Vista Home Basic. I
added the flowing libs:
wsock32.lib comctl32.lib fltk.lib fltkimages.lib fltkjpeg.lib fltkpng.lib
fltkz.lib
I also added the following header files:
#include
#include
#include
I used below code