Changeset 77 for Include/Classes/System/Drawing/Color.ab
- Timestamp:
- Jan 27, 2007, 12:04:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/Drawing/Color.ab
r25 r77 50 50 51 51 Function A() As Byte 52 Return ( Argb >> Color_AlphaShift) As Byte52 Return (argb >> ALPHA_SHIFT) As Byte 53 53 End Function 54 54 55 55 Function R() As Byte 56 Return ( Argb >> Color_RedShift) As Byte56 Return (argb >> RED_SHIFT) As Byte 57 57 End Function 58 58 59 59 Function G() As Byte 60 Return ( Argb >> Color_GreenShift) As Byte60 Return (argb >> GREEN_SHIFT) As Byte 61 61 End Function 62 62 63 63 Function B() As Byte 64 GetBlue = (argb >> Color_BlueShift) As Byte64 Return (argb >> BLUE_SHIFT) As Byte 65 65 End Function 66 66 … … 306 306 */ 307 307 Static Function MakeARGB(a As Byte, r As Byte, g As Byte, b As Byte) As ARGB 308 MakeARGB = (((b As ARGB) << Color_BlueShift) Or _309 ((g As ARGB) << Color_GreenShift) Or _310 ((r As ARGB) << Color_RedShift) Or _311 ((a As ARGB) << Color_AlphaShift))308 MakeARGB = (((b As ARGB) << BLUE_SHIFT) Or _ 309 ((g As ARGB) << GREEN_SHIFT) Or _ 310 ((r As ARGB) << RED_SHIFT) Or _ 311 ((a As ARGB) << ALPHA_SHIFT)) 312 312 End Function 313 313
Note:
See TracChangeset
for help on using the changeset viewer.