[ 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: 12345678[9]10 ]

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

Date Posted: 07:20:20 08/24/00 Thu
Author: Michel
Subject: Re: Save bitmap as tiff with jpeg compression
In reply to: Peter Mikkelsen 's message, "Save bitmap as tiff with jpeg compression" on 05:46:09 08/23/00 Wed

Dear Peter,

Generally, to save from the TImageScrollBox, just call

ImageScrollBox.SaveToFile( 'newfile.jpg')

This won't set the compression to jpg though. To to that, you need to provide and event handler for the OnBeforeSave event. For example,

procedure TMainForm.ImageScrollBoxBeforeSave(
const Sender: TImageScrollBox;
const Graphic: TDibGraphic);
if Graphic is TTiffGraphic then
if Graphic.ImageFormat = ifTrueColor then
TTiffGraphic(Graphic).Compression := tcJPEG
else if Graphic.ImageFormat = ifBlackWhite then
TTiffGraphic(Graphic).Compression := tcGroup4

TTiffGraphic(Graphic).Compression := tcPackbits;

Best regards,


> How do I save a bitmap which has been loaded into a
> TImageScrollBox, as tiff with jpeg compression?

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


  • Re: Save bitmap as tiff & vice versa -- vishwanath, 05:32:45 12/13/00 Wed
  • Re: Save bitmap as tiff & vice versa -- Michel, 07:26:27 12/13/00 Wed
    [ 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.