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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:43:36+00:00 2026-06-10T03:43:36+00:00

I was trying to implement Hill Cipher algorithm on an image by grabbing its

  • 0

I was trying to implement Hill Cipher algorithm on an image by grabbing its pixels. And it turns out that small images were loading fine.

But with bigger images (8MP or 12MP), the loading is slow; and as a result writing the image is slow too.

I was grabbing each pixel using bufferedImage.getRGB(x,y), modifying it using the algorithm, and writing the pixels simultaneously using bufferedImage.setRGB(x,y,rgb).

Now, I need some suggestions to make the loading/writing faster. I was wondering if PixelGrabber would be any better?

  • 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-06-10T03:43:37+00:00Added an answer on June 10, 2026 at 3:43 am

    getRGB/setRGB are very slow, because they do a lot of colorspace-checking and color-converting every time you call them. Definitely not the way to to any image-manipulation, considering the number of pixels in a typical image.

    Getting the raw image data into arrays via the old PixelGrabber or via BufferedImage.getRaster() is harder (you have to understand a few concepts) but runs much faster.

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

Sidebar

Related Questions

Trying to implement some nested loops that are spitting out good old nested html
Trying to implement LoaderManager + CursorLoader. In onFinish method adapter should swap its cursor
Ok well I'm trying implement something similar to the 'undo' function in many image
I am trying implement Unblock me Puzzle. i want to change image position from
Trying to implement a function that will return a list of ints the represent
SetFocus I'm trying implement the above Se Focus code in a Class Library that
I have this weird kind of error. I am trying implement basic Euclidean algorithm
Trying to implement a MSMQ-backed WCF PubSub. I understand that net.msmq is one-way; however
When trying to implement a simple OpenGL application, I was surprised that while it
I am currently trying implement a QThread that contains a socket connection. The socket

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.