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 6801323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:05:10+00:00 2026-05-26T19:05:10+00:00

I have an RGB565 byte array which I display on my Canvas like this:

  • 0

I have an RGB565 byte array which I display on my Canvas like this:

    Bitmap bmp = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565);
    ByteBuffer buf = ByteBuffer.wrap(data); // data is my array
    bmp.copyPixelsFromBuffer(buf);
    // then I display the bitmap on my SurfaceView

I can see this procedure is rather slow on my phone. Can I do faster than that, I just need to display this byte RGB565 array on my canvas. My phone doesn’t have graphic acelerator so openGL probably won’t help..

  • 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-05-26T19:05:11+00:00Added an answer on May 26, 2026 at 7:05 pm

    This isn’t a detailed answer, but if you need serious performance with the bitmaps, I’d look at doing it in the NDK. I’ve dabbled with this a bit and its pretty good.

    http://developer.android.com/sdk/ndk/overview.html

    Look at the plasma example. We basically started with that and built our solution.

    Beyond that, I’d suggest not creating a new bitmap on each run.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code void drawText2(Canvas c) { DisplayMetrics metrics = new DisplayMetrics(); Display
I have file Image_RGB565.raw which contains image buffer in RGB565 format. I want this
I am trying to display a bitmap image pixel by pixel (which explicitly means
I have a problem when compiling my app, which is inspired from bitmap-plasma. I
have such zend query: $select = $this->_table ->select() ->where('title LIKE ?', '%'.$searchWord.'%') ->where('description LIKE
Have just started using Visual Studio Professional's built-in unit testing features, which as I
Have you managed to get Aptana Studio debugging to work? I tried following this,
I current have some code that takes a screenshot and saves this to the
**Have it working now. I forgot to populate the Array List. How embarrassing. I'm
Have converted devise new session from erb to Haml but doens't work, this is

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.