dotnet / dotnet/winforms

Inline Documentation for GraphicsUnit.Display is incorrect.

Open
#13,619 2 comments 0 reactions 0 assignees View on GitHub
area-System.Drawing
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

The documentation site has the correct value:

>Specifies the unit of measure of the display device. Typically pixels for video displays, and 1/100 inch for printers.

https://learn.microsoft.com/en-us/dotnet/api/system.drawing.graphicsunit?view=windowsdesktop-9.0

However the linked source has the following, incorrect value:

>Specifies 1/75 inch as the unit of measure.

https://github.com/dotnet/winforms/blob/ece6f6dbbacdcd43c32e1d33eed39ee3afe8934c/src/System.Drawing.Common/src/System/Drawing/GraphicsUnit.cs#L22

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.