Comments (4)
Why would you want to colour the mask?
Could you provide an image of the result you are trying to achieve?
I'm not sure what the end goal is.
from android_maskable_layout.
To change the color of the image.
Sure:
Having this image:
and this mask:
result:
I can accomplish this on Affinity Designer by adding color to the mask but I have to do it programatically because the masks and the colors change.
from android_maskable_layout.
I think in order for this to work you have to color your mask.
Give the color pixels an alpha of 255 and the transparent ones an alpha of 0.
Then it should be properly masked.
I really think you need to color your mask.
Is there a sample project where I can test this to ?
from android_maskable_layout.
@christophesmet no, I don't have a sample project. I'm gonna try painting the mask before.
from android_maskable_layout.
Related Issues (20)
- Out of memory issue HOT 2
- Repo not found or no access token provided HOT 4
- General code improvements HOT 1
- Mask works on Android emulator only
- Problem with implementation HOT 2
- Set PorterDuffXferMode programmatically HOT 1
- support for Vector Drawable HOT 3
- Elevation shadow missing HOT 2
- MaskableFrameLayout.dispatchDraw java.lang.RuntimeException: HOT 3
- Masking GLSurfaceView HOT 1
- Missing break HOT 4
- Out of memory on a 9193040-byte allocation. HOT 1
- Setting the mask programmatically seems to not work HOT 7
- Fix rate for mask? HOT 1
- Cropping map fragment removes more than needed HOT 3
- Flickering with animation of Constraint Set HOT 1
- Masking disappears HOT 1
- Transparent Issue
- how to disable with code?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android_maskable_layout.