Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
23
Task/Bitmap/Visual-Basic-.NET/bitmap-1.vb
Normal file
23
Task/Bitmap/Visual-Basic-.NET/bitmap-1.vb
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
' The StructLayout attribute allows fields to overlap in memory.
|
||||
<System.Runtime.InteropServices.StructLayout(LayoutKind.Explicit)> _
|
||||
Public Structure Rgb
|
||||
|
||||
<FieldOffset(0)> _
|
||||
Public Rgb As Integer
|
||||
|
||||
<FieldOffset(0)> _
|
||||
Public B As Byte
|
||||
|
||||
<FieldOffset(1)> _
|
||||
Public G As Byte
|
||||
|
||||
<FieldOffset(2)> _
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue