VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 123456789[10] ]


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

Date Posted: 11:57:15 04/08/00 Sat
Author: Michel
Subject: Re: Capturing Images from Digital Camera and Thumbnails
In reply to: John Newell 's message, "Capturing Images from Digital Camera" on 06:18:21 04/08/00 Sat


Hi John,

If your camera has a twain driver it should be fine. I've tested the library with a Kodak DC215 with and without the twain driver's user interface.

For thumbnails, you'll need to do a bit of work with the TResizeTransform, but it is quite simple. Here is a code snippet to generate thumbnails:

var
SmallJpg : TJpegGraphic;
BigJpg : TJpegGraphic;
ResizeTransform : TResizeTranform;

begin
SmallJpg := TJpegGraphic.Create;
BigJpg := TJpegGraphic.Create;
ResizeTranform := TResizeTransform.Create;

for each jpeg file { replace with your loop }
begin
BigJpg.LoadFromFile(FileName);

ResizeTransform.Width := 80;
ResizeTransform.Height := 80;
ResizeTransform.ApplyOnDest( BigJpg, SmallJpg );
SmallJpg.SaveToFile( ... );
end;

ResizeTransform.Free;
BigJpg.Free;
SmallJpg.Free;
end;

You may also want to use the Interpolated property of the TResizeTransform for better quality thumbnails.

Best regards,

Michel

> I am just starting a project where I need to capture
> photogrpahic images from a digital camera directly
> into my application. I need TWAIN support, image
> viewing, the ability to automatically convert captured
> images into thumbnails for easy viewing and browsing,
> simple image manipulation and touchup. It looks like
> Envision will do most of this. In your list of
> features you state TWAIN scanning...I am assuming this
> will handle from a digital camera as well? How about
> auto converting images to thumbnails?
> Thank you. John.

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

[ Contact Forum Admin ]


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