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
Does not go out of functi...
by
440bx
[
Today
at 08:49:08 am]
Frustrating Error When us...
by
TYDQ
[
Today
at 08:36:20 am]
Questions from a Windows ...
by
Boleeman
[
Today
at 08:28:58 am]
Reporting a Bug? in Strin...
by
Zvoni
[
Today
at 08:26:17 am]
[Solved] Help needed comp...
by
Zvoni
[
Today
at 08:08:04 am]
LazSerial not found
by
CM630
[
Today
at 07:53:48 am]
; after then
by
valdir.marcos
[
Today
at 07:49:22 am]
The Future of FPC
by
valdir.marcos
[
Today
at 07:04:26 am]
CPU-View
by
valdir.marcos
[
Today
at 06:45:25 am]
Reflection and Review in ...
by
valdir.marcos
[
Today
at 06:32:24 am]
We are starting to use La...
by
LV
[
Today
at 06:23:50 am]
AI to port DBDesigner For...
by
valdir.marcos
[
Today
at 06:17:58 am]
Delphi Magazine issues 1-...
by
valdir.marcos
[
Today
at 06:08:16 am]
BAScript - Simple scripti...
by
valdir.marcos
[
Today
at 05:48:03 am]
X11Libre, finally and for...
by
Graeme
[
Today
at 02:21:31 am]
[AGGPas] Usage of scale m...
by
Graeme
[
Today
at 02:04:23 am]
Status of FPC 3.4.0 or FP...
by
dbannon
[
Today
at 12:43:03 am]
How to determine the unkn...
by
Roland57
[February 15, 2026, 07:47:42 pm]
Taking 'Common' parts out...
by
J-G
[February 15, 2026, 07:01:17 pm]
[ANN] fpGUI Toolkit v2.0....
by
Graeme
[February 15, 2026, 06:33:58 pm]
New front end for solitai...
by
TBMan
[February 15, 2026, 06:23:47 pm]
it2play - IT/S3M module r...
by
Lulu
[February 15, 2026, 06:09:46 pm]
Duplicated icon in the Wi...
by
CM630
[February 15, 2026, 04:28:20 pm]
[SOLVED] LazReport
by
1HuntnMan
[February 15, 2026, 03:50:38 pm]
QuestionDlg does strange ...
by
SA.Blackmon
[February 15, 2026, 03:41:21 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to make semi-transparent BGRABitmap? (Read 1161 times)
hedgehog
Jr. Member
Posts: 87
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: 4741
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: 4467
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