Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2026-06

Lazarus - new feature - SetDCOpacity(); GetDCOpacity()

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

zeljko

Hi all,

Today I've commited implementation of those methods which can be used to draw with opacity with regular TCanvas. I've commited implementations for gtk3, qt, qt5 and qt6, cocoa implementation is in progress. win32 is planned but I'll honor anyone's patches for win32 in this regard. gtk2 is bit problematic since it need heavy rework because it must be fully covered by cairo in this case.
Also, I've commited simple example project
(lazarus/examples/paintwithopacity) , so you can see how it works for implemented widgetsets.
Attached image contains screenshoot of paintwithopacity form under gtk3 ws.

zeljko

-------------- next part --------------
A non-text attachment was scrubbed...
Name: setdcopacity.png
Type: image/png
Size: 95610 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20260629/531e2fc4/attachment-0001.png>

Reply by email

Mattias Gaertner
to zeljko: Today I've commited implementation of those methods which can be used to draw with…

A long awaited feature! :)

zeljko wrote 9 lines
Today I've commited implementation of those methods which can be used to draw with opacity with regular TCanvas. I've commited implementations for gtk3, qt, qt5 and qt6, cocoa implementation is in progress. win32 is planned but I'll honor anyone's patches for win32 in this regard. gtk2 is bit problematic since it need heavy rework because it must be fully covered by cairo in this case. Also, I've commited simple example project (lazarus/examples/ paintwithopacity) , so you can see how it works for implemented widgetsets. Attached image contains screenshoot of paintwithopacity form under gtk3 ws.

Reply by email