Im using few libraries that unregister previous TPicture loading in TImages in design-time. It looks like it is using TPicture.RegisterFileFormat
and TPicture.UnregisterGraphicClass
.
This is not a problem in general, but now I want to load some images for my app in design-time using TPNGImage from acPNG from AlphaControls as it works much better for rendering PNGs than Vampyre Imaginig, which is great and I need it - but it can't properly render PNG on form.
My question is: how to select one of working handlers of TImage.Picture in design-time editor. So I've been using AlphaSkins or some other libraries and they work, but they get overwritten in time when installing another libraries. So this is general question, not connected with any 3rd party library.
What I've already tried:
- Putting acPNG in uses and removing ImgagingComponents (this is the only one with registers/unregisters, but even if I remove all of Imaging* units it doesn't work);
- Trying to set globally, in unit etc directive
DONT_LINK_PNG
, undefinigCOMPONENT_SET_VCL
- it doesnt work for me, probably it would work if I just reinstall all of the Imaging components with those flags (or am I missing something?); - Selecting from list Portable Network Graphics (.png) (AlphaSkins)*, but it seems this is ignored when loading.
Thanks in advance, greetings, JK.