Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,014 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
transparent panel - image #308022
02/01/10 11:07
02/01/10 11:07
Joined: Jan 2010
Posts: 44
Galati, Romania
CItrok Offline OP
Newbie
CItrok  Offline OP
Newbie

Joined: Jan 2010
Posts: 44
Galati, Romania
How I can put a panel with an image display that is transparent in some areas.

I want to make a cockpit like in the link. Any ideas?

http://i55.photobucket.com/albums/g157/micksaf/p51duw2.jpg

Re: transparent panel - image [Re: CItrok] #308028
02/01/10 11:22
02/01/10 11:22
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
My favorite is:
Create a panel with a Bitmap with a alpa - cannel. (Example: *.TGA) You can create this Bitmap with Paint.Net or Gimp. Both Programms are free.

The other way:
Set all what should transparent to black(color 0,0,0) and set the OVERLAY flag from the Panel.

For this is an Example at the Workshop 4.

Re: transparent panel - image [Re: Widi] #308098
02/01/10 16:04
02/01/10 16:04
Joined: Jan 2010
Posts: 44
Galati, Romania
CItrok Offline OP
Newbie
CItrok  Offline OP
Newbie

Joined: Jan 2010
Posts: 44
Galati, Romania
Widi. Thanks a lot! The answer was so simple...yet so complicated for a beginner.

So the sollution was to set the flags as bellow. Show or overlay

PANEL* first_pan =
{
pos_x = 200;
pos_y = 300;
layer = 1;
bmap = first_pcx;
flags = OVERLAY | SHOW;
}

Re: transparent panel - image [Re: CItrok] #308791
02/05/10 02:55
02/05/10 02:55
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
well but i must say this is a double post!
Anyway, PNG files i like better, because it makes the alpha channel auto, depending on the back layer.. if using photoshop...


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1