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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:33:19+00:00 2026-06-12T19:33:19+00:00

I was given a .jar file which generates a matrix of integer color codes

  • 0

I was given a .jar file which generates a matrix of integer color codes from an image.

I can tell that the black color value is -16777216, and white is -1. However, I have never seen such values used for color codes before.

I can’t see the code within the .jar file.

Could have asked this somewhere like Graphic Design SE, but I guess it is more possible that a coder here has worked with similar problems before.

The reason I want to find a reference “table/whatever” is because I would like to be able to get the color name based on such values.

EDIT: Here are some colors I got:

  • Black is -16777216
  • Red is -65536
  • Green is -16711936
  • Blue is -16776961
  • White is -1
  • 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-12T19:33:20+00:00Added an answer on June 12, 2026 at 7:33 pm

    Color values are more easily understood when given in hexadecimal format, specified with “0x” followed by 0-9 or A-F. Here, black is 0xFF000000, and white is 0xFFFFFFFF. The format is 0xAARRGGBB, where “AA” is two hexadecimal digits for the “alpha” component (00 is completely transparent, FF is completely opaque), “RR”, “GG”, and “BB” are the red/green/blue components, respectively.

    0xFF000000 happens to be -16777216, and 0xFFFFFFFF is -1.

    Edit: Fixed -16777216 value.

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

Sidebar

Related Questions

Given a compressed archive file such as application.tar.gz which has a folder application/x/y/z.jar among
I have a Maven project which generates a 413.06 KB jar file. I have
I have a php file which runs a '.jar' file. Code is given bellow
Given a class, org.eclipse.ui.views.navigator.ResourceNavigator for example, how do I find out which jar file
I am learning java with BlueJ, and recently I was given a .jar file
I am trying to read database scripts in a Jar file so that I
I want to read log4j.xml file which is outside the jar inside etc folder.
I have been given an application which uses a build.xml file for building purposes.
There is a class file TagAttributeInfo which is under two of my jar files.
I'm trying to download a single jar file from the maven repository, from the

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.