' The StructLayout attribute allows fields to overlap in memory. _ Public Structure Rgb _ Public Rgb As Integer _ Public B As Byte _ Public G As Byte _ Public R As Byte Public Sub New(ByVal r As Byte, ByVal g As Byte, ByVal b As Byte) Me.R = r Me.G = g Me.B = b End Sub End Structure