1. Mark Jones
  2. PowerBuilder
  3. Tuesday, 18 February 2020 19:57 PM UTC

We use computed fields with the bitmap() function to dynamically display pictures on datawindows.   We have also found that when displaying some smaller bitmaps in bitmap controls in datawindows ,setting the transparency to 1 smooths out rough edges and makes them look a lot better.   However, there does not appear to be a way to apply transapency to a computed field displaying a bitmap.  Any ideas?

In the attached image the same bitmap xg.bmp is placed on the datawindow as a computed field and as a bitmap with a 1% transparency.  You can see that the bitmap version is much smoother due to the transparency.

 

Mark

Attachments (1)
Mark Jones Accepted Answer Pending Moderation
  1. Tuesday, 25 February 2020 14:09 PM UTC
  2. PowerBuilder
  3. # 1

I have reported this as a bug/enhancement request #4168. 

 

Mark

Comment
There are no comments made yet.
Mark Jones Accepted Answer Pending Moderation
  1. Tuesday, 18 February 2020 20:15 PM UTC
  2. PowerBuilder
  3. # 2

Yes Chris,  the problem is that the images are pretty low resolution,  we have found that setting the transparency to 1 softens the edges so they a look a lot better,  but we cannot use this trick when we use the bitmap() inside a compute.

 

Mark

Comment
  1. Michael Kramer
  2. Tuesday, 18 February 2020 23:15 PM UTC
1% transparency to smooth edges is a pretty neat trick; - Thank you for sharing!

Transparency may have been ignored for Bitmap( ) function when transparency was added. Sadly.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 18 February 2020 20:07 PM UTC
  2. PowerBuilder
  3. # 3

Hi Mark;

  Are the Image DWO Columns all marked with the "Original Size" property ON?

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.