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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:35:36+00:00 2026-05-29T06:35:36+00:00

I am creating a game for android and I would like the sprites to

  • 0

I am creating a game for android and I would like the sprites to have the look of an old NES game. I have some 12×12 pixel images and would like them to keep their pixelated look as they are scaled up.

Please view the following link
https://i.stack.imgur.com/kPQPn.jpg

One image is a screenshot of the image as it looks in an editor. This is how I would like it to look in game. The other image is what it actually looks like blown up in game (blurry).

The image is imported as a Drawable and I’m calling Drawable.draw(Canvas canvas) on it.

I’ve read up on the problem and found some info here (Android: drawable resolutions). I believe it’s either that anti aliasing or some kind of interpolation needs to be disabled but I cannot figure out how to do this with a Drawable.

I did however find out that it is possible with Bitmaps but my game requires lots of sprite re-scaling and, although I found this Resize Bitmap in Android I do not think re-scaling bitmaps is a good idea.

I am new Android and no where near a professional programmer so please shed some light on me.

  • 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-29T06:35:38+00:00Added an answer on May 29, 2026 at 6:35 am

    In my app I had to do the exact same thing!

    Paint paint = new Paint();
    paint.setDither(false);
    paint.setAntiAlias(false);
    

    And I used pixel-sized images to save space, and a Matrix to handle rotation and scaling (though that’s your choice).

    Hope this helps, good luck!

    EDIT:
    also if you’re using the createScaledBitmap, or any similar functions, make sure you pass false for any filtering parameters.

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

Sidebar

Related Questions

I am creating a game. I have some UI with text. Recently we wanted
I am creating a game which have similar concept like Tap Tap Ant .
I am creating game which involves some billiard-like balls to bounce on the screen.
I am creating a game in cocos2d-android. all the images i use in Sprite
I am creating a matching game for Android, and when the user gets a
I'm creating a game with points for doing little things, so I have a
I'm creating a game where a lot of images are being used in Actionscript
I have started creating a game, and I added a second project, it's the
Im currently creating a tile-based game for android. Using java via dalvik JVM. im
I'm creating game mario like in win32 GDI . I've implemented the new loop

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.