[Lazarus] Strange issue with TImage and lazarus 2.2.2
Luca Olivetti
luca at wetron.es
Fri Jun 24 09:48:05 CEST 2022
El 24/6/22 a les 0:19, Mattias Gaertner via lazarus ha escrit:
>> but why did it find the class for writing and not for reading it back?
>> Also, once solved that, if it streams it using a class provided by a
>> package, shouldn't the project have a dependency automatically added
>> on that package?
>
> Both should read+write valid png files, otherwise there is a bug.
I was stepping though the method TPicture.ReadData(Stream: TStream) and
I saw that GraphicClassName was "TImagingPNG" but the line
GraphicClass := GetPicFileFormats.FindClassName(GraphicClassName)
returned nil
> Are you sure, that the VampyreImaging lib is supposed to be installed
> in the IDE and to replace the default png TPicture?
Actually I'm not, since it works fine for what I need without installing
it, but in its options IDE Integration is marked as "Designtime and
runtime".
Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007
More information about the lazarus
mailing list