How to map physical memory with mmap?

How does a bit map graphic represented in memory?

  • How does a bit map graphic represented in memory?

  • Answer:

    The wikipedia article on raster, or bitmap, graphics can be found at the link. A bitmap graphic is typically a 2-dimensional array of data with each unit of data representing the colour of the pixel that is in that position. As this information is uniform and easily stored you will usually find that the bitmap image is mapped almost identically directly in memory. For example, a red pixel would be represented by the numbers 255, 0, 0 with 255 being the maximum value for red and 0 for both green and blue. This would be represented in memory as the sequence 255, 0, 0. Information is stored from left to right, top to bottom. Information about the bitmap, such as it's size and type may be stored before the actual image data.

C.a.r.l.... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.