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

The Archive Base Latest Questions

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

Hi all I am calculating a fractal and drawing a bufferedImage based on the

  • 0

Hi all I am calculating a fractal and drawing a bufferedImage based on the number of completedIterations. For the sake of simplicity lets I am coloring the bufferdImage using the completedIterations in this way:

g.setColor(Color.getHSBColor((float) (colorValue - completedIterations), 1F, 1F));

Where colourValue is constant while the image is being generated, lets say in this case it’s 0.2.

I have a slider on a JPanel, which when used, changes the colorValue, in the range of 0 to 1.
When the colorValue is changed I want to update the BufferedImage in real time, but I don’t want to recalculate all the image points as this causes a massive overhead – I just want to recolor the BufferedImage based on the new colorValue.

Can this be done, and if so how would I go about implementing it?

Kind regards

Greg

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

    You can set individual pixels using setRGB(), as shown here; or adjust multiple pixels using RescaleOp, as shown here.

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

Sidebar

Related Questions

I've tried all the time calculating examples I found on this site but somehow
Hey all i am trying to figure out how to go about calculating this
I'm parsing some text and calculating the weight based on some rules. All the
All, I am using the following PHP function to salt & hash user passwords
I am writing a small utility for calculating a complicated mathematical formula (using commons-math
Somebody have idea how to use all cores for calculating integration? I need to
How would I go about calculating the average of all the values in a
I am calculating the inverse of a matrix using the adjoint method. first i
Here i am using two different functions for calculating CRC16 for any type of
I'm looking all over the Internet for information in regards to calculating the frame

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.