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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:22:31+00:00 2026-05-16T17:22:31+00:00

I need to load a very big image on AS3 (currently sized at 8192×8192).

  • 0

I need to load a very big image on AS3 (currently sized at 8192×8192). I am aware that it does not fit any of the limits imposed by Flash regarding drawing to screen or creating a BitmapData of that size. I just want to load the image so I can copyPixels() some parts of it here and there.

The thing is, I’m loading the .jpg file of that size with no problems. The size is recognized correctly from my Loader object. I load it like this:

mImageLoader = new Loader();
var anImageURLRequest:URLRequest = new URLRequest("8192x8192.jpg");
mImageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
mImageLoader.load(anImageURLRequest);

Then, on the onComplete method, I try to do this:

Bitmap(mImageLoader.content).bitmapData.getPixel(1000, 1000);

But I am greeted with the #2015 “Invalid BitmapData” error usually reserved for BitmapDatas that are too big. The error also happens if I try to do a copyPixels(), which is what I need to do.

Is there any workaround I can use so I can get data from an image this big on AS3?

  • 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-16T17:22:31+00:00Added an answer on May 16, 2026 at 5:22 pm

    Unfortunately there’s no way to do this with AS3/FlashPlayer using the standard BitMap classes.

    However, you could try bytearray.org’s JPEG Decoder to read the file as a raw ByteArray and then determine the pixels you require like that. – I can’t guarantee that it’ll work with and 8192x8192px image, but it’s worth a try, since it’s not reliant on the Flash display system.

    • http://www.bytearray.org/?p=1089

    If you do use this method, remember that the pixels are stored in a single Vector so you’ll need to do something like:

    var pixel:int = pixels[ ( width * y ) + x ];
    

    To get the pixel you want.

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

Sidebar

Related Questions

I need to load an image from a web in a simple Java stand
Trying to load a file into python. It's a very big file (1.5Gb), but
I need to parse a very big XML file, with a filesize of 750Mo
I need to load very large ontology represented as N-triples file(1gb) to the openrdf
We have some part of our application that need to load a large set
I'm developing application for android. my application has very big size (APKfile) that is
I need to load a Model in a component to save the Data of
I need to Load RVM into a shell session as a function , so
I need to load a custom function from an extern file but without causing
I need to load data into my treestore. My ajax request give me XML

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.