leone ruggiero
leone ruggiero

Reputation: 251

System.Drawing.Imaging BitmapData color components order

From the docs:

...The format also defines the order of the color components within a single pixel of data.

Where is the order documented? I know that, for example,locking the bitmap with format 24bppRgb gives me a region in memory filled with pixel data in the form:

  1. B(first byte)- G(second) - R(third)
  2. Each row has an alignment of 4 byte

I found "2" in the documentation, however I didn't manage to find anything about "1" (color component order). Could you help me find that info somewhere in the documentation?

Upvotes: 4

Views: 65

Answers (0)

Related Questions