How to make a custom BlendMode?

140 Views Asked by At

I type an A in to my custom view on top of it's canvas background which is currently a bitmap and want to, programmatically, get the info of the pixels of the Destination canvas underneath where the A will be. Then do some custom editing to the pixel colors of destination and source in relation to each other just like the BlendModes seem to do, and have the A drawn with the colors postfilter.

I found BlendModes but they are all prebuilt and no idea how to make a custom one.

i looked around and could not find an answer to this

edit: I am making my text beautiful and relational to the background so every character is colored to be harmonic with both background and underlying patterns of change. I would LIKE to be manipulating individual pixel data ~both getting every pixel below the letter ~and setting ~thru custom code ~every pixel ~yet in a nonhorribly laggy way ~like how the BlendModes seem to do.

the nearest way I found was to draw each letter to a blank canvas, have an alpha background, then detect which pixels aren't alpha0, etc etc. But didn't work and I KNOW it would be cost intensive anyway. What I really seek is what the blendmodes are built on. Not the blendmodes themselves ~but how they, without lagging, filter pixel data. Where they get it and where they send it ~so I can place my own custom thing where they are and be getting this pixel info, filtering it, and having my letter paint affected by it ~without lagging. exampleimg

0

There are 0 best solutions below