Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7887673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:38:30+00:00 2026-06-03T05:38:30+00:00

When rendering my live wallpaper I have some banding gradient artifacts. This article perfectly

  • 0

When rendering my live wallpaper I have some banding gradient artifacts. This article perfectly explains the reason behind this: to eliminate most of them and improve efficiency I can draw 32 bit bitmaps on top of 32 bit bitmaps 🙂

So I asked myself a question: how to do this for live wallpaper? And din’t find an answer 🙂
In live wallpapers we have a surface created for us by android framework. And it happens so that it is a RGB_565 surface, because:

// code inside my WallpaperService.Engine subclass
public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height)
{
   Log.d("test", "format is: "+format); // => prints 4, which is PixelFormat.RGB_565
}

And it seems there’s no way I can ask Android framework to change this to be ARGB_8888. Or is there?

P.S. Of course I know I can do other stuff described in the above article like applying dithering etc, so please do not bother pointing me this. I’d like to find an answer exactly to the question I asked 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T05:38:31+00:00Added an answer on June 3, 2026 at 5:38 am

    Set the PixelFormat inside onCreate()

    holder.setFormat(PixelFormat.RGBA_8888);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While rendering the view page, based on some condition in the controller action I
Getting a rendering error for this form: 'NoneType' object has no attribute 'widget' http://dpaste.com/88585/
Does IE8 have rendering bugs like IE6 or IE7? If I make my site
Hello I live in Poland so I have to deal with letters like łóźć
$(#shout_field).live('keydown', function (event) { if (event.keyCode === $.ui.keyCode.TAB && $(this).data(autocomplete).menu.active) { event.preventDefault(); } }).autocomplete({
I am creating a Live Wallpaper and I'm painting to the canvas on every
I have the following Hello World code to try out TeX rendering with matplotlib
I have the following line in my url file url(r'^confirm/$', 'confirm', {'status':'live'}, name=confirm), As
What underlying rendering system does the Qt GUI toolkit use on Windows? (I'm assuming
MRT allows for rendering to multiple texture targets in the pixel shader, but I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.