Jump to content

TUniImage Problem


Recommended Posts

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?



  • Upvote 1
Link to comment
Share on other sites

I have finally found where the problem is, after months of pain.




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:




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.



  • Upvote 1
Link to comment
Share on other sites

  • 2 years later...
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...