[ 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: 17:28:52 09/06/00 Wed
Author: Michel
Subject: Re: making tiff smaller results in Small Black Rectangle (SBR)
In reply to: tobias 's message, "Re: making tiff smaller results in Small Black Rectangle (SBR)" on 06:34:09 09/05/00 Tue

Hi Tobias,

Even if the variable is of type TDibGraphic, you can first check to see if it was created with a TTiffGraphic by using run-time type information. For example,

Graphic : TDibGraphic;


if Graphic is TTiffGraphic then
TTiffGraphic(Graphic).RowsPerStrip := ...

I have corrected the problem in the 1.1 Aug 30 release. Your simplest solution is just to download the latest version.

Best regards,


> thanks a lot so far,
> but the code i provided was not the whole truth... in
> my program, i have a polymorph tdibgraphic variable i
> create as a tiff or as a jpeg depending on the picture
> file found on the drive. the tdibgraphic instanciated
> as ttiffgraphic has no RowsPerStrip property, so what
> can i do ? i want to make use of the polymorphism,
> because i don't want to add another similar method for
> each pic format i want to add.
> thanks tobias

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