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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:46:22+00:00 2026-05-27T16:46:22+00:00

i have a 1D array. I copied the data onto a 8 bit color

  • 0

i have a 1D array. I copied the data onto a 8 bit color bitmap object. And i saved it. I opened the bitmap in hex editor and found the original array data but to my surprise i saw a lot of information before the array data. I think this section belongs to the header right ?

I have attached a screenshot of the hex view enter image description here

  • 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-27T16:46:22+00:00Added an answer on May 27, 2026 at 4:46 pm

    OK, let’s take a look at the Bitmap format:

    http://en.wikipedia.org/wiki/BMP_file_format#Bitmap_file_header

    If you follow this, the first thing you will learn is that your data is 0x436 (1078) bytes away… right around where you are saying it is.

    The file header is 14 bytes long. In this case, the information header is the next 40 bytes long. 1078 - 14 - 40 = 1024. That means there is 1K between the headers and the data itself. The spec states that the next section is the color table. At 4 bytes per color, this table contains 256 colors.

    After that, you get your image.

    So, most of that bloat that you are seeing is the default 256 color table that .Net is putting in there.

    In the header, it is using 1 byte per pixel, which means that the lookup table needs to be 2^8 bytes long, which is 256 colors, which is 1024 bytes.

    Not all header formats require the color table to be completely filled, but it can be easily extrapolated why the bitmap producer (.Net) would decide to fill the color table in completely… at least for the first 256 colors.

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

Sidebar

Related Questions

I have an array of a few million numbers. double* const data = new
I'm looking for a kind of array data-type that can easily have items added,
I have to parse out color information from HTML data. The colors can either
I have array of select tag. <select id='uniqueID' name=status> <option value=1>Present</option> <option value=2>Absent</option> </select>
I have array like this: $path = array ( [0] => site\projects\terrace_and_balcony\mexico.jpg [1] =>
if i have array array[0] = jack; array[1] = jill; array[2] = lisa; array[2]
An array is defined of assumed elements like I have array like String[] strArray
Let's say I have array of bytes: byte[] arr = new byte[] { 0,
VISUAL C++ Question Hi, I have array of 3 elements and I want to
Have an array of chars like char members[255]. How can I empty it completely

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.