dotnet / dotnet/dotnet-api-docs

"// Set every third value to 255. A 24bpp bitmap will look red." ?

Open
#840 5 comments 1 reaction 0 assignees View on GitHub
area-System.Drawing dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

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.*

* ID: db2910e8-eec8-8481-4e6c-5b6ae92b4ec2
* Version Independent ID: 86aadb11-92ea-2fbe-c511-c310b68a24c0
* Content: [Bitmap.LockBits Method (System.Drawing)](https://docs.microsoft.com/en-us/dotnet/api/system.drawing.bitmap.lockbits?redirectedfrom=MSDN&view=netframework-4.7.2#overloads)
* Content Source: [xml/System.Drawing/Bitmap.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Drawing/Bitmap.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.