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:30:45 05/09/00 Tue
Author: Ted Slusser
Subject: Re: Creating a TIFF file from a TBitmap
In reply to: Michel 's message, "Re: Creating a TIFF file from a TBitmap" on 07:13:25 05/09/00 Tue

Hi, everything works well now. Thanks! I have one more question, though. I have a scanning application that saves images in TIFF CCIT Group4 Compression. They are monochrome 200 dpi. I can greate a TTiffGraphic with the same dimensions but the number of "Rows per Strip" does not match. I need these images to be as similar as possible because I have to write a tiff2pcl program so they will print from Unix.

Also the Tiff Directory is reported at offset 0x1c0 in the image created by envision but at 0x8 with the Kofax scanning software.

Are these things changeable with the source code?

Thanks in advance.

>
> Dear Ted,
>
> This should work in the evaluation version, although
> there has been some correction in
> AssignFromBitmapHandle with images with a palette. It
> may just be that an internal exception is raised, and
> the IDE is looking for the source code. What you can
> try is in your Debugger options, turn off "break on
> exceptions". This should prevent the IDE from
> requesting the source code file.
>
> The alternative,
>
> TiffGraphic.Canvas.Draw(0, 0, Bitmap)
>
> will also work. You first need to set the size of
> TiffGraphic to the same size as the bitmap, when
> calling the NewImage method.
>
> Best regards,
>
> Michel
>
> > Hi, I am trying to create a TIFF image from a
> TBitmap.
> > When I try to use
> > Image.Graphic.AssignFromBitmapHandle
> (MyBitmap.Handle)
> > it tries to find the source file EnDiGrph.pas but I
> > don't have that file. Is this function not in the
> dcu
> > evaluation? Can I access the Canvas of the
> > Image.Graphic directly and paint to it?
> >
> > Thanks,
> > Ted Slusser
> > Memphis, TN

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


Replies:


[ 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.