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
--
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to