Dotnet-api-docs: "// Set every third value to 255. A 24bpp bitmap will look red." ?

Created on 17 Aug 2018  Â·  5Comments  Â·  Source: dotnet/dotnet-api-docs

If it's R-G-B, and you set every third value to 255, woudn't the image look Blue instead since you're maximizing the B component?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Not Triaged Pri2 area-System.Drawing dotnet-approd

All 5 comments

What I discovered is the order of bits is actually the opposite for Format32bppArgb - BGRA. So I suspect the same goes for 32bpp, it will be BGR, not RGB.

I think this issue can be now closed.

Okay, I will take your word that the byte order is reversed, but I'd like to see this documented explicitly to avoid future confusion.

Reopening so we can investigate whether to document this or not.

Was this page helpful?
0 / 5 - 0 ratings