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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:26:20+00:00 2026-05-20T00:26:20+00:00

I have many base images that I need to combine to construct larger images

  • 0

I have many base images that I need to combine to construct larger images to draw on Sprite objects. I understand that the beginBitmapFill() method of the Graphics class renders a bitmap on a Sprite’s graphics object. So I figure that I need to manipulate the BitmapData object, adding the base images to produce a composite image that I can then draw on my Sprite.

My question is: Is there any clean and relatively hassle free way of doing this? Is there a way to draw Bitmaps to certain locations in a Sprites graphics context? Could you copy a Graphics object onto another at certain coordinates and build it that way?

  • 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-20T00:26:20+00:00Added an answer on May 20, 2026 at 12:26 am

    How large are these large images you intend to construct? Flash 10 is limited to creating a bitmap of 8191x8191px (Flash 9 is limited to 2880x2880px). You can read more about it in the docs.

    Assuming you’re okay on the dimensions of your large image I would recommend you take the first approach you mentioned: copy the pixel data from the smaller bitmaps into one larger bitmap and then draw that into your Sprite’s Graphics object.

    I would do this by first creating a new BitmapData object at the large size and then looping over each of the smaller images and using BitmapData.copyPixels() to copy the pixels from each small bitmap into the large one. Once the large image is constructed you can use Graphics.beginBitmapFill() and Graphics.drawRect() to draw the large BitmapData into the Sprite.

    The reason for going this route is that BitmapData.copyPixels() is going to be faster than Graphics.beginBitmapFill() and Graphics.drawRect(). It’s also a lot cleaner looking since you’d have to do beginBitmapFill() for each new bitmap if you went that way.

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

Sidebar

Related Questions

I have a abstract base class that I have many inherited classes coming off
I have two models, Landscape: class Landscape < ActiveRecord::Base has_many :images, :as => :imageable
I have a class which is derived from a base class, and have many
MY base table have two colums assume col1,col2. col1 have id, col2 have many
I have an iPad application that has a base image UIImageView (in this case
I have to import a large amount of image crops off of many images
I have a page that loads a dynamic number (however many in the database
I have a method that converts a URL entered/pasted into a micropost form by
I have 2 models (Book & Image) class Book < ActiveRecord::Base has_many :images accepts_nested_attributes_for
After many cases of trial and error, I have concluded that the only solution

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.