开发者

Android Image png color not true

开发者 https://www.devze.com 2023-02-19 14:14 出处:网络
I\'m using pngs created from Photoshop (ie gradients, buttons etc...) . They are blue in color but show up in Android with more purple tint to them. I trie开发者_C百科d putting the images in the raw f

I'm using pngs created from Photoshop (ie gradients, buttons etc...) . They are blue in color but show up in Android with more purple tint to them. I trie开发者_C百科d putting the images in the raw folder no no avail & I tried:

@Override
    public void onAttachedToWindow() 
    {
        super.onAttachedToWindow();
        Window window = getWindow();
        // Eliminates color banding
        window.setFormat(PixelFormat.RGBA_8888);

        window.setDither(true);
     }

This gets rid of banding in the gradients, but still does not show the true color of what I created on Photoshop. Is there any way to get it close?


Just a thought, but is it possible your desktop monitor isn't correctly calibrated? It seems much more likely that color calibration on Android is accurate given that the device makers have control over their screens.

0

精彩评论

暂无评论...
验证码 换一张
取 消