Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
»
BGRABitmap and LazPaint
»
How to make semi-transparent BGRABitmap?
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
authentiacte through goog...
by
Packs
[
Today
at 08:52:36 pm]
FPC Unleashed (async/awai...
by
Fibonacci
[
Today
at 08:26:50 pm]
Windows 2026_7 update and...
by
Martin_fr
[
Today
at 08:09:13 pm]
I have made some progress...
by
onionmixer
[
Today
at 08:08:34 pm]
Slow app start on M5 MacB...
by
Martin_fr
[
Today
at 07:54:04 pm]
TPeriodicTable
by
CM630
[
Today
at 07:49:27 pm]
How to connect to MariaDb...
by
jcmontherock
[
Today
at 06:23:38 pm]
Lazarus Main not building...
by
Thaddy
[
Today
at 05:48:52 pm]
This week in OPM!
by
Tomxe
[
Today
at 05:47:11 pm]
Accessing VRAM memory wit...
by
LemonParty
[
Today
at 04:45:30 pm]
KOL4 Beta available.
by
Thaddy
[
Today
at 04:45:13 pm]
docking IDE
by
Martin_fr
[
Today
at 02:13:28 pm]
Putting a new file on a w...
by
J-G
[
Today
at 01:04:26 pm]
Engineering Software from...
by
jamie
[
Today
at 12:51:57 pm]
GTK3 is now the default w...
by
bonmario
[
Today
at 12:50:59 pm]
FastCGI vs. CGI
by
korba812
[
Today
at 12:48:06 pm]
[SOLVED] BitBtn Oddity
by
Petrus Vorster
[
Today
at 09:05:55 am]
Difference between @ and ...
by
paule32
[
Today
at 08:18:43 am]
Lazarus Bugfix Release 4....
by
papillon33
[
Today
at 08:15:45 am]
Many recent books on Laza...
by
Khrys
[
Today
at 06:35:48 am]
Isn’t this funny?
by
n7800
[July 16, 2026, 11:57:09 pm]
Error when opening a proj...
by
Tomu
[July 16, 2026, 09:11:54 pm]
Is this safe, changing fr...
by
mas steindorff
[July 16, 2026, 08:46:31 pm]
try/except error
by
toby
[July 16, 2026, 06:55:42 pm]
Computers sure have come ...
by
Zvoni
[July 16, 2026, 03:36:38 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to make semi-transparent BGRABitmap? (Read 1264 times)
hedgehog
Full Member
Posts: 130
How to make semi-transparent BGRABitmap?
«
on:
May 10, 2024, 03:55:53 pm »
Hi.
I want the TBGRASVG to be drawn semi-transparent in some cases.
Is there an easy way?
Logged
lainz
Hero Member
Posts: 4743
Web, Desktop & Android developer
Re: How to make semi-transparent BGRABitmap?
«
Reply #1 on:
May 10, 2024, 06:01:29 pm »
Create a temporary bitmap, draw the SVG into it. Then draw the temporary bitmap in the target bitmap with transparency-
You can use PutImage
Logged
https://lainz.github.io/
circular
Hero Member
Posts: 4471
Re: How to make semi-transparent BGRABitmap?
«
Reply #2 on:
May 11, 2024, 10:29:14 pm »
Otherwise you can set the globalAlpha property (from 0 to 1) of the Canvas2d before you draw on it. The result might be slightly different, but each element of the SVG will be drawn according to it.
Logged
Conscience is the debugger of the mind
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
»
BGRABitmap and LazPaint
»
How to make semi-transparent BGRABitmap?
TinyPortal
© 2005-2018