Skip to content

Commit

Permalink
Added COLORREF.ctor that sets all values
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hall committed Nov 16, 2024
1 parent 0f10d6b commit d4e03ab
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions PInvoke/Shared/WinDef/COLORREF.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ public COLORREF(byte r, byte g, byte b)
B = b;
}

/// <summary>Initializes a new instance of the <see cref="COLORREF" /> struct.</summary>
/// <param name="r">The intensity of the red color.</param>
/// <param name="g">The intensity of the green color.</param>
/// <param name="b">The intensity of the blue color.</param>
/// <param name="a">The transparency.</param>
public COLORREF(byte r, byte g, byte b, byte a)
{
A = a;
R = r;
G = g;
B = b;
}

/// <summary>Initializes a new instance of the <see cref="COLORREF"/> struct.</summary>
/// <param name="value">The packed DWORD value.</param>
public COLORREF(uint value)
Expand Down

0 comments on commit d4e03ab

Please sign in to comment.