Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transparent fill #222

Open
Abdullah211w opened this issue Aug 21, 2022 · 1 comment
Open

Transparent fill #222

Abdullah211w opened this issue Aug 21, 2022 · 1 comment

Comments

@Abdullah211w
Copy link

I want to draw a circle or a polygon with color fill of 50% opacity.
Can you help please?

@sweco-sedahd
Copy link
Contributor

On the ShapeDrawingOptions object you are setting the drawing style you only need to set FillTransparency to make the fill be transparent. From documentation: Ranges from 0 (transparent) to 255 (opaque).
So to get 50 % you need to set it to half of 255 (128).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants