eelias Posted January 30, 2014 Posted January 30, 2014 This is not the fist time I post this, however I am in an urgent on this. I am using 0.93 with XE2 White PNG Images does not show in black backgrounds on ISAPI deploymens. However, a black PNG image does show always. If i turn off the transparent property, the image get all white. ServerModule is set to PNG as default. But changing it to JPG makes no difference. The same white image works as PNG on Standalone Server. Black Images need to be as TBitmap. If I use as PNG it does not show even on design mode. So what is wrong? Eduardo 1 Quote
eelias Posted January 30, 2014 Author Posted January 30, 2014 I have finally found where the problem is, after months of pain. http://www.devexpress.com/Support/Center/Question/Details/B143725 I use Dev Express componentes for other projects. It register a property editor called TdxPNGImage for handling PNG Images. It is based on the file extension, and as it is the last registered it is the default on my delphi installation. For any image stored internally on TUniImage.Picture it uses the TdxPNGImage to handle the PNG image and it is not compatible with uniGUI at webmode. Since I know many uses DevExpress I am posting here the solution for this problem. The workaround is described on the link above, however the easiest way is at the moment of loading the image that will be streamed in side the TUniIMage to select the CORRECT handler: http://www.devexpress.com/Support/Center/Attachment/GetAttachment?fileOid=7b2b28d8-5135-44d5-8560-70ec32fd0b6f&fileName=LoadPictureDialog.jpg You will see there is more than on PNG option on the list. UniGUI uses the "Portable Network Graphics (PNG)" option listed on the combobox. Selecting it will handle correctly. Eduardo 1 Quote
fiorilli Posted October 17, 2016 Posted October 17, 2016 http://forums.unigui.com/index.php?/topic/1029-assigning-png-image-to-tuniimage-build-860/?p=37415 Quote
roneydourados Posted November 24, 2017 Posted November 24, 2017 To disable our TdxPNGImage class registration in RAD Studio 2009, XE,XE2...Tokyo and later, and allow the IDE to load .PNG images using a built-in functionality, do the following:- Comment out {$DEFINE DXREGISTERPNGIMAGE} in the dxGDIPlusClasses unit.- Run our Product Setup in Recompile mode. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.