nknj
nknj

Reputation: 2486

Coloring parts of an image

I have a png image of a floor plan and I want to overlay certain regions of it with different transparencies of the color red.

Some Complexities:

Questions

Thanks!

Upvotes: 0

Views: 91

Answers (2)

nknj
nknj

Reputation: 2486

Since I did not need my layers to have the robustness mentioned by @pskink, I ended up using the layerlist drawable to overlay images to "shade" certain parts.

Upvotes: 0

pskink
pskink

Reputation: 24730

see my LayeredImageView How to maintain multi layers of ImageViews and keep their aspect ratio based on the largest one?

it's a ImageView that lets you add some Drawables as layers, so you can create your custom Drawable that draws your red regions by overriding draw() method

Upvotes: 1

Related Questions