Where should I post this C# gdi+ question?

Jon Jacobs 86 Reputation points
2021-03-22T17:21:11.35+00:00

In C# I have this code:
private void DrawPageSeparator(int i, int Offset, Bitmap b)
{
if (i < 1) return;
Color Sep = Color.Black;
Pen pen = new Pen(Sep, 2);

        g.DrawLine(pen, 0, Offset, b.Width-1, Offset);
    }

Instead of Black the image gets a light gray line. If I use Color.Red, I still get the same light gray line.
Why?

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,280 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.