Recent

Author Topic: ApplyGlobalOpacity (Ubuntu)  (Read 3843 times)

fenix

  • New Member
  • *
  • Posts: 10
ApplyGlobalOpacity (Ubuntu)
« on: November 28, 2012, 02:00:45 pm »
Hi,

ApplyGlobalOpacity doesn't work correctly on Ubuntu (12.04 GTK). While on Windows it changes opacity of TBGRABitmap object smoothly but in GTK it have just 2 gradations: visible or not visible.

Circular, could you please investigate the problem?

circular

  • Hero Member
  • *****
  • Posts: 4471
    • Personal webpage
Re: ApplyGlobalOpacity (Ubuntu)
« Reply #1 on: December 02, 2012, 08:05:22 pm »
Maybe it is related to the way the image is drawn.
Do you draw it directly on the window? In this case, maybe the problem would not happen if you PutImage it on a temporary bitmap first that is filled with the wanted background color.
Conscience is the debugger of the mind

fenix

  • New Member
  • *
  • Posts: 10
Re: ApplyGlobalOpacity (Ubuntu)
« Reply #2 on: December 03, 2012, 07:09:34 am »
circular, thanks for answer.
I used TImage to create my own button control. I assign BGRA images to TImage bitmap:

Picture.Bitmap.Assign(FBGRAImage.Bitmap);

May be the reason is there.

circular

  • Hero Member
  • *****
  • Posts: 4471
    • Personal webpage
Re: ApplyGlobalOpacity (Ubuntu)
« Reply #3 on: December 05, 2012, 10:16:34 am »
Yes. Use TBGRAVirtualScreen or TBGRAGraphicControl instead from BGRAControl package.

TBGRAVirtualScreen is not a transparent control, so you will need to fill with a background color, and TBGRAGraphicControl is transparent, so it can be over something else.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018