Skip to content

Commit

Permalink
create wraning message about empty html color code
Browse files Browse the repository at this point in the history
  • Loading branch information
xieguigang committed Nov 25, 2024
1 parent 6432423 commit 3e4311d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Microsoft.VisualBasic.Core/src/Drawing/Colors/HexColor.vb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Namespace Imaging
HexColor = HexColor.Trim("#"c)

If HexColor = "" Then
Call "the given html color code is empty, black color value will be returned.".Warning
Return Color.Black
End If

Expand Down

0 comments on commit 3e4311d

Please sign in to comment.