VoyForums

VoyUser Login optional ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 123[4]5678910 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 15:00:38 04/15/03 Tue
Author: dave bracken
Subject: Can't Save JPEG or BMP in color?????

I have a scanning app, that pulls images in as a dib.
My users need the option to save these images as Tif, Jpeg, or BMP. I have a color scanner, i set the Mode to 24-bit color, and set my file extension and filename with .jpg.

The code after scan looks like the following:

aa := Scan1.hDib;
ImageScrollBox.Graphic.AssignFromDIBHandle(aa);
GlobalFree(aa);
ImageScrollBox.Redraw(true);
ImageScrollBox.SaveToFile(flename);

It always gets an error here that says the jpeg must be grayscale.
Why?
It is not coming in as grayscale, it is set to color. So will it not save(or display for that matter) in color?
I looked again and again at your sample app Demo.dpr, but to no avail. Your sample app does not show specifics on saving as jpeg in color vs tif in black and white, etc...

Please help!!!!
Thanks in advance,
Dave

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Replies:


[ Contact Forum Admin ]


Forum timezone: GMT-5
VF Version: 2.94, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2008 Voyager Info-Systems. All Rights Reserved.