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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:12:53+00:00 2026-05-12T20:12:53+00:00

How should Java’s drawImage() be used? I do not find the JDK documentation very

  • 0

How should Java’s drawImage() be used? I do not find the JDK documentation very forthcoming. For example all drawImage signatures require an ImageObserver but the documentation for this is not very helpful for new users.

  • 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-12T20:12:54+00:00Added an answer on May 12, 2026 at 8:12 pm

    You can get away with Graphics.drawImage(img, x, y, null) [or similar]. The ImageObserver parameter is a callback to inform you of the progress of the draw operation; and is really only useful if you’re fetching the Image parameter asynchronously.

    To be clearer, if you call drawImage with an incompletely loaded Image it will:

    1. return false (immediately)
    2. draw as much of the Image as possible (all that is loaded)
    3. and, at some future point, call into the ImageObserver when more of the Image is available

    Basically, if you’re working with in memory Images (either loaded from the file system, or constructed by your program) don’t worry about the ImageObserver parameter. If you’re loading Images across the network and not explicitly waiting for them to load, you’ll need to employ an ImageObserver to make sure “completely” draw an Image.

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

Sidebar

Related Questions

It is very common to hear that C++ or Java should be used on
Dcoumentation everywhere I can find suggests that jetty 6.1.x should still run with java
Possible Duplicate: When should one use final? When should Java programmers prefer to use
I am writing a CSV exporter in Java that should respect the user's custom
My java application has a button which should open a user selected Excel file
Should I implement named parameters in Java using Hash tables? I saw this entry:
Should today's patterns be seen as defects or missing features in Java and C++
How should I write a statement in Java to produce JavaScript in a page
What XSLT processor should I use for Java transformation? There are SAXON, Xalan and
What should be the content of the .gitignore file for a java project in

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.