Forelayer & transparency

Oxygene

New Member
Licensed User
Hello,

First, you have to know that i'm a beginner in Basic4ppc and also not so good in english....

i have some problems to understand how works the transparency and i would like to have an exemple of code. I think that the help file in B4ppc is a little bit short...

Thank you for :sign0085:

O
 

Oxygene

New Member
Licensed User
thanks

Many thanks for your so fast response. It helps me a lot . I have undertood that i have made a confusion using line instead of Fline .

My purpose is to draw map for RPG on a background like old paper.

I have still 2 questions :

1 what is the interest of choosing a specific color in settransparentcolor()?

2 how can i upload a file if i what to give you my exe file ?

O
 

klaus

Expert
Licensed User
Longtime User
1) To use transparency you must specify the color that will be used for it, that means every pixel with the transparent color takes the value of the color of the same pixel in the background image. The transparency color can be any color, often used colors are white or black.
I use sometimes RGB(250,250,250) which is almost white but not really white to allow the display of true white. The choice may depend on your application, what kind of graphic you display.

2) When you post a message you have a button 'Manage attachments'.
When you click on it a new window opens that allows you to select a file, then you must upload it and you can select another file or quit this window.

If you have questions about code or even share code I would suggest that you post the source code rather than the exe file.

Best regards.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…