Changeset 473 for trunk/Include/Classes/System/Drawing/Color.ab
- Timestamp:
- Mar 12, 2008, 9:54:46 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/Drawing/Color.ab
r370 r473 4 4 #define __SYSTEM_DRAWING_COLOR_AB__ 5 5 6 '#include <Classes/System/Math.ab>7 6 #include <Classes/System/Drawing/Imaging/misc.ab> 8 7 … … 28 27 argb = newArgb 29 28 End Sub 30 /* 31 Sub Operator =(c As Color) 32 argb = c.argb 33 End Sub 34 */ 29 35 30 Function Operator ==(c As Color) As Boolean 36 31 Return Equals(c) … … 42 37 43 38 Function A() As Byte 44 Return(argb >> ALPHA_SHIFT) As Byte39 A = (argb >> ALPHA_SHIFT) As Byte 45 40 End Function 46 41 47 42 Function R() As Byte 48 R eturn(argb >> RED_SHIFT) As Byte43 R = (argb >> RED_SHIFT) As Byte 49 44 End Function 50 45 51 46 Function G() As Byte 52 Return(argb >> GREEN_SHIFT) As Byte47 G = (argb >> GREEN_SHIFT) As Byte 53 48 End Function 54 49 55 50 Function B() As Byte 56 Return(argb >> BLUE_SHIFT) As Byte51 B = (argb >> BLUE_SHIFT) As Byte 57 52 End Function 58 53 59 54 Function Value() As ARGB 60 Returnargb55 Value = argb 61 56 End Function 62 57
Note:
See TracChangeset
for help on using the changeset viewer.