[Lazarus] Strange issue with TImage and lazarus 2.2.2
Luca Olivetti
luca at wetron.es
Thu Jun 30 14:47:25 CEST 2022
El 30/6/22 a les 13:45, Luca Olivetti via lazarus ha escrit:
> I'm puzzled: now I removed the vampyre lib from the ide, in a form I
> need ImagingComponent and ImagingClassed.
> I drop a TPicture with a png image and it is blank at runtime.
> This time it is streamed as TPortableNetworkGraphic *but* FindClassName
> cannot find it.
> How is that possible?
AAAAAAAGH Because the Vampyre library explicitly deletes it
{$IFDEF COMPONENT_SET_LCL}
// Unregister Lazarus´ default PNG loader which crashes on some PNG
files
TPicture.UnregisterGraphicClass(TPortableNetworkGraphic);
{$ENDIF}
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