Android changes color of pixels while decoding an Image -
i have .png image ant load app. shape colored in specific color, every pixel has same rgb-value. difference alpha value, decreases @ edges of shape.
my problem is, if load image bitmapfactory.decoderesource()
pixels on edge rgb-value. it's not big change, it's -+4 red/green/blue value, me big change, because pixels have exact color.
i want mask them out , replace them color. specific color indicator, find pixels want change. if change color edge still colored differently , thats annoying.
is there way load drawables without them being changed?
you should try using variant:
decoderesource(resources res, int id, bitmapfactory.options opts)
with configured opts. play params inpreferredcolorspace,outcolorspace , inpreferredconfig,outconfig
Comments
Post a Comment