Help.
I need to add a button with image to a toolbar.
The image is a bmp, how can i make its bacgroung colour to be transparent on the toolbart button ?
Thank's
Dominique[/img]
Transparency in button ?
-
DominiqueB
- Enthusiast

- Posts: 103
- Joined: Fri Apr 25, 2003 4:00 pm
- Location: France
Transparency in button ?
Dominique
Windows 10 64bits. Pure basic 32bits
Windows 10 64bits. Pure basic 32bits
You could change the backgroundcolor of your image into the color of a toolbarbutton
Look here (by Danilo; German Forum)
http://www.robsite.de/php/pureboard/viewtopic.php?t=718
Look here (by Danilo; German Forum)
http://www.robsite.de/php/pureboard/viewtopic.php?t=718
Give Up everything but trying!
-
DominiqueB
- Enthusiast

- Posts: 103
- Joined: Fri Apr 25, 2003 4:00 pm
- Location: France
Thnak's a lot !
It work's great!
A litle tip:
by adding this:
Result = SaveImage(1, "test2.bmp")
just after the line:
ImageGadget(0,0,0,ImageWidth(),ImageHeight(),image1)
you save the result and then can use it in your app.
Thank's.
Dominique.
A litle tip:
by adding this:
Result = SaveImage(1, "test2.bmp")
just after the line:
ImageGadget(0,0,0,ImageWidth(),ImageHeight(),image1)
you save the result and then can use it in your app.
Thank's.
Dominique.
Dominique
Windows 10 64bits. Pure basic 32bits
Windows 10 64bits. Pure basic 32bits
> it would be a better idea to use .ico instead of .bmp. Because Icons
> saves a transperancy.
Bitmaps can have transparency too, and are not restricted to 32x32 pixels
like an icon. See here: viewtopic.php?t=7230
> saves a transperancy.
Bitmaps can have transparency too, and are not restricted to 32x32 pixels
like an icon. See here: viewtopic.php?t=7230
>Bitmaps can have transparency too, and are not restricted to 32x32 pixels
>ike an icon.
Icons are definitly not restricted to 32x32. I created much bigger one. (The logo in japbe is a icon, also the PB-Logo in jaPBe.) And at the moment icons are the only format that PB support with direct transparancys.
>See here: viewtopic.php?t=7230
That are not realy transparencys. This function only change one color to a other.
>ike an icon.
Icons are definitly not restricted to 32x32. I created much bigger one. (The logo in japbe is a icon, also the PB-Logo in jaPBe.) And at the moment icons are the only format that PB support with direct transparancys.
>See here: viewtopic.php?t=7230
That are not realy transparencys. This function only change one color to a other.
> Icons are definitly not restricted to 32x32. I created much bigger one.
> (The logo in japbe is a icon, also the PB-Logo in jaPBe.)
Okay, I was not aware of that. Thanks for the clarification.
> See here: viewtopic.php?t=7230
> That are not realy transparencys. This function only change one color
> to a other.
Fair enough, but the tip there gives the effect of transparency with bitmaps,
which is all that matters in the end.
Besides, I don't have an icon editor.
> (The logo in japbe is a icon, also the PB-Logo in jaPBe.)
Okay, I was not aware of that. Thanks for the clarification.
> See here: viewtopic.php?t=7230
> That are not realy transparencys. This function only change one color
> to a other.
Fair enough, but the tip there gives the effect of transparency with bitmaps,
which is all that matters in the end.


