VoyForums

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,

var
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,

Michel

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