Changeset 370 for trunk/Include/Classes/System/Drawing
- Timestamp:
- Nov 3, 2007, 5:18:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/Drawing/Color.ab
r335 r370 131 131 Dim max = System.Math.Max(System.Math.Max(r, g), b) As Long 132 132 Dim min = System.Math.Min(System.Math.Min(r, g), b) As Long 133 Return ( max - min) / max133 Return ( (max - min) / max ) As Single 134 134 End Function 135 135 … … 139 139 Dim b = B 140 140 Dim max = System.Math.Max(System.Math.Max(r, g), b) 141 Return max * (1 / 255)141 Return ( max * (1 / 255) ) As Single 142 142 End Function 143 143
Note:
See TracChangeset
for help on using the changeset viewer.