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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:24:56+00:00 2026-05-20T06:24:56+00:00

If I have a large bitmap file that would normally generate an Out of

  • 0

If I have a large bitmap file that would normally generate an “Out of memory” exception, how can I load it as tiles? e.g. I have a 10,000×10,000 image, I want to split it up into a 10×10 grid of 1,000×1,000 pixel tiles.

I’ve seen the function Bitmap.createBitmap(sourceBitmap, x, y, width, height) but it requires my large image as the source input.

How can I get a tile from my input image, without fully loading the input image?

  • 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-20T06:24:56+00:00Added an answer on May 20, 2026 at 6:24 am

    Answer from Romain Guy in Is it possible to chop a bitmap to small pieces without loading the entire thing into memory?:

    Android 2.3.3 has a new API called
    android.graphics.BitmapRegionDecoder
    that lets you do exactly what you
    want.

    You would for instance do the
    following:

    BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(myStream, false);  
    Bitmap region = decoder.decodeRegion(new Rect(10, 10, 50, 50), null);
    

    Easy 🙂

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

Sidebar

Related Questions

I have a large database and would like to select table names that have
I have a large bitmap (say 3888x2592) in a file. Now, I want to
I have a large directed acyclic graph that I would like to visualize in
Say I have a somewhat large (i.e. not fit in most phones' memory) bitmap
I have large batches of XHTML files that are manually updated. During the review
I'm developing a website in PHP and I have large JS files that I
I have a large codebase that targetted Flash 7, with a lot of AS2
I have a large CSV file and I want to execute a stored procedure
I have large main file contains about 7,000 lines of C code. If I
I have large number of files with .gif extension. I would like to move

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.