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

  • Home
  • SEARCH
  • 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 9177243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:16:46+00:00 2026-06-17T17:16:46+00:00

In my application, I use drawBitmap() to display a low res bitmap while I’m

  • 0

In my application, I use drawBitmap() to display a low res bitmap while I’m zooming it out. I tested it on several devices (Galaxy Tab, Kindle Fire, Moto Xoom and Nexus 7). In all of them I get the same rendering quality, except in Nexus 7. You can see on the attached screen shots the difference. The outer region is the one I’m using drawBitmap, something like this:

mSrcRectF.set(src_x1, src_y1, src_x2, src_y2);
mDesRectF.set(view_x1, view_y1, view_x2, view_y2);
mMatrix.setRectToRect(mSrcRectF, mDesRectF, Matrix.ScaleToFit.CENTER);
canvas.drawBitmap(bmp, mMatrix, mPagePaint);

If I try using the other variant drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) without the matrix I get the same results.

I believe this issue/difference may be related to the hardware acceleration. If I turn it off (in manifest file), I get the same results for all devices. If I turn it on, the rendering improves for all of them except Nexus, which still shows a more ‘pixelated’ bitmap. I have read that some routines are not supported in HA, but even so, I can’t understand what is happening in this case. In a recent post of Romain Guy in his blog he comments:

Note that alpha bitmaps only work with shaders when invoking the “simple” version of drawBitmap(). The variants that take a Matrix or a source and destination rectangle are not supported with hardware acceleration at the moment.

Can someone shed some light on this?

Nexus 7: Nexus 7 screen shot

Xoom (or Galaxy Tab, Kindle Fire): Xoom screen shot

  • 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-17T17:16:47+00:00Added an answer on June 17, 2026 at 5:16 pm

    You may be able to selectively turn off hardware acceleration for your Canvas following the instructions in this Stack Overflow article

    It’s not an ideal solution, but it could allow the rest of your app to get the benefits of hardware acceleration until all options to drawBitmap() are support with hardware acceleration.

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

Sidebar

Related Questions

I'm using Visual Studio to create my installation package. My application use some bitmap
In my application I use a UIAlertView to display to the user a message
My application use a ListView which display different items in the cell. it must
Several forms from my application use the same open file dialog. I need to
I am running a remote application and use x11 forwarding to display it on
Can the application use set same char in the XON and XOFF? If yes,
Somebody said that when your PHP code and application use global variables then it
I use application property to count number of online users: Application[OnlineUsers] = (int)Application[OnlineUsers] +
An application I use, Mozy Backup , adds its own drive to Windows Explorer
Our PHP application makes use of json_encode($myObject) a lot, in conjunction with the mustache

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.