Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
(Moderator:
Ask
) »
Saving a TImage with a transparent background
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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
THashedStringList - do we...
by
cdbc
[
Today
at 07:22:41 pm]
Managing linked list as i...
by
Nicole
[
Today
at 07:20:39 pm]
2d "platform" game sugges...
by
TBMan
[
Today
at 07:11:24 pm]
Best way to exchange data...
by
cdbc
[
Today
at 06:58:08 pm]
FPC 3.2.2 Call Through do...
by
Thaddy
[
Today
at 06:52:23 pm]
Unneeded copy of string
by
Martin_fr
[
Today
at 06:50:40 pm]
Virtual Tree View blurs t...
by
anse
[
Today
at 05:54:55 pm]
Amoeba Animated: Not that...
by
Fred vS
[
Today
at 04:01:50 pm]
Rain Simulator
by
Boleeman
[
Today
at 03:56:43 pm]
SetDefaultLang with a fil...
by
wp
[
Today
at 03:38:49 pm]
Ying Yang: Various ways t...
by
Boleeman
[
Today
at 02:14:07 pm]
Default Component Size mi...
by
wp
[
Today
at 12:41:25 pm]
Slowly Rotating Nested Sq...
by
Boleeman
[
Today
at 11:48:54 am]
Forum slow for others as ...
by
cdbc
[
Today
at 11:15:21 am]
Fpcupdeluxe
by
Philippe1
[
Today
at 10:45:54 am]
[Solved] Defining multipl...
by
nikel
[
Today
at 10:35:53 am]
Handle double click on a ...
by
Hansaplast
[
Today
at 09:39:42 am]
[Solved] Argon2id and AES
by
Swirl
[
Today
at 09:03:51 am]
[SOLVED] How to use "Reso...
by
Hansaplast
[
Today
at 08:58:48 am]
LINED FERRIS Wheel: Rotat...
by
Boleeman
[
Today
at 07:18:21 am]
[Solved] Adding String to...
by
nikel
[
Today
at 03:04:16 am]
Tipp: Howto use the Help ...
by
avra
[
Today
at 01:53:41 am]
If you are looking for Wi...
by
avra
[
Today
at 01:52:31 am]
Peter de Jong Attractor: ...
by
Boleeman
[
Today
at 01:44:08 am]
Lectura puerto serie
by
JASO
[
Today
at 01:09:38 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Saving a TImage with a transparent background (Read 431 times)
EganSolo
Sr. Member
Posts: 297
Saving a TImage with a transparent background
«
on:
March 25, 2025, 03:05:03 am »
This should be easy... call me dumb ...
I've got a TImage control with transparent set to true.
Calling
Picture.SaveTofile('test.png')
saves the image with a white background.
What am I missing?
Logged
aoiraven90
Newbie
Posts: 3
Re: Saving a TImage with a transparent background
«
Reply #1 on:
April 09, 2025, 08:38:37 am »
Transparent property of TImage: TImage.Transparent := True applies that the image is visible when shared, but not when saved.
Try using BGRA Bitmap.
Logged
Dzandaa
Sr. Member
Posts: 419
From C# to Lazarus
Re: Saving a TImage with a transparent background
«
Reply #2 on:
April 09, 2025, 11:47:11 am »
Hi,
Yes it works with a TBGRABitmap.
B->
Logged
Regards,
Dzandaa
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
(Moderator:
Ask
) »
Saving a TImage with a transparent background
TinyPortal
© 2005-2018