![]() added project files for Delphi 10 Seattle Performance optimized version of GrayscaleRGB by Christian Budde Fixed uninitialzed local variable Offset in TPngBitBtnStyleHook.DrawButton Copy-Paste of a disabled TPngSpeedButton tried to draw the png before it was fully loaded added style support for TPngBitBtn (thanks André Püschel) Fixed display error with images > 255 high Added IFDEF for compilation with Delphi 2007 and below Implemented a hack to make the TActionList editor of XE3 work with TPngImageList Reworked the InsertPng method so that it does what the name implies. Fixed a bug that made the IDE crash when leaving. It is not recommended to mess around with the instance behind the PngImage property. As a workaround, load the image into another TPngImage instance and assign that to the PngImage property of TPngSpeedButton. Any problems with Invalid Graphic Format is most likely caused by TPngImage.Ģ) The current implementation of TPngImage doesn't call Changed when someting changed (f.i during LoadFromResourceName), so there is no notification to the control. Two notes on problems with loading PNG images:ġ) The loading is done inside TPngImage which is part of Delphi and not PngComponents. Don't bother if you already use at least one of PngComponents. For this to work you have to install the package in the IDE and use PngFunctions somewhere in your project. ![]() I also added a fix that properly loads DFMs made with older Delphi versions, which contain PNG images in TImage components. The sources should be compatible downto Delphi 7. So if you want to use it with an earlier version of Delphi, you have to get hands on the original package first. The original Png units from Gustavo Daud are no longer part of the package (mostly because I'm not sure if I may distribute them). ![]() The project is currently hosted on Bitbucket: This is an adaption for Delphi 2009 - Delphi 10.2 Tokyo of the PngComponents created by Martijn Saly (which makes use of the new built-in PngImage support. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |