Ignore:
Timestamp:
Mar 13, 2007, 11:55:49 AM (17 years ago)
Author:
イグトランス (egtra)
Message:

GetHashCodeを実装

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/Classes/System/Drawing/Color.ab

    r104 r166  
    7575    Sub SetFromCOLORREF(rgb As COLORREF)
    7676        If (rgb And &hff000000) = &h01000000 Then
    77             Exit Sub ' インデックス指定は無効
     77            Exit Sub ' パレットインデックス指定は無効
    7878        Else
    7979            argb = Color_MakeARGB(255, GetRValue(rgb), GetGValue(rgb), GetBValue(rgb))
     
    107107        Dim c As Color(a, r, g, b)
    108108        Return c
     109    End Function
     110
     111    Override Function GetHashCode() As Long
     112        Return argb As Long
    109113    End Function
    110114
Note: See TracChangeset for help on using the changeset viewer.