BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 7065
Left = 1035
LinkTopic = "Form1"
ScaleHeight = 6660
ScaleWidth = 5490
Top = 1125
Width = 5610
Begin VB.TextBox txtUserDef
Appearance = 0 'Flat
Height = 315
Left = 2940
TabIndex = 21
Top = 5640
Width = 2055
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "WHITENESS"
ForeColor = &H80000008&
Height = 315
Index = 14
Left = 1980
TabIndex = 20
Top = 5220
Width = 1815
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "BLACKNESS"
ForeColor = &H80000008&
Height = 315
Index = 13
Left = 1980
TabIndex = 19
Top = 4860
Width = 1815
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "DSTINVERT"
ForeColor = &H80000008&
Height = 315
Index = 12
Left = 1980
TabIndex = 18
Top = 4500
Width = 1815
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "PATINVERT"
ForeColor = &H80000008&
Height = 315
Index = 11
Left = 1980
TabIndex = 17
Top = 4140
Width = 1815
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "PATPAINT"
ForeColor = &H80000008&
Height = 315
Index = 10
Left = 1980
TabIndex = 16
Top = 3780
Width = 1815
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "PATCOPY"
ForeColor = &H80000008&
Height = 315
Index = 9
Left = 1980
TabIndex = 15
Top = 3420
Width = 1815
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "MERGEPAINT"
ForeColor = &H80000008&
Height = 315
Index = 8
Left = 1980
TabIndex = 14
Top = 3060
Width = 1815
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "MERGECOPY"
ForeColor = &H80000008&
Height = 315
Index = 7
Left = 1980
TabIndex = 13
Top = 2700
Width = 1815
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "NOTSRCERASE"
ForeColor = &H80000008&
Height = 315
Index = 6
Left = 1980
TabIndex = 12
Top = 2340
Width = 1815
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "NOTSRCCOPY"
ForeColor = &H80000008&
Height = 315
Index = 5
Left = 1980
TabIndex = 11
Top = 1980
Width = 1815
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "SRCERASE"
ForeColor = &H80000008&
Height = 315
Index = 4
Left = 1980
TabIndex = 10
Top = 1620
Width = 1815
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "SRCINVERT"
ForeColor = &H80000008&
Height = 315
Index = 3
Left = 1980
TabIndex = 9
Top = 1260
Width = 1815
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "SRCAND"
ForeColor = &H80000008&
Height = 315
Index = 2
Left = 1980
TabIndex = 8
Top = 900
Width = 1815
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "SRCPAINT"
ForeColor = &H80000008&
Height = 315
Index = 1
Left = 1980
TabIndex = 7
Top = 540
Width = 1815
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "SRCCOPY"
ForeColor = &H80000008&
Height = 315
Index = 0
Left = 1980
TabIndex = 6
Top = 180
Value = -1 'True
Width = 1815
End
Begin VB.CommandButton cmdPatBlt
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "PatBlt"
Height = 435
Left = 2640
TabIndex = 5
Top = 6060
Width = 1095
End
Begin VB.PictureBox picBrush
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 495
Left = 1500
ScaleHeight = 465
ScaleWidth = 945
TabIndex = 3
Top = 6060
Width = 975
End
Begin VB.CommandButton cmdBitBlt
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "BitBlt"
Height = 435
Left = 3960
TabIndex = 2
Top = 6060
Width = 1215
End
Begin VB.PictureBox picDest
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 5355
Left = 4140
ScaleHeight = 355
ScaleMode = 3 'Pixel
ScaleWidth = 59
TabIndex = 1
Top = 180
Width = 915
End
Begin VB.PictureBox picSource
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 5355
Left = 600
ScaleHeight = 355
ScaleMode = 3 'Pixel
ScaleWidth = 59
TabIndex = 0
Top = 180
Width = 915
End
Begin VB.Label labRes
Appearance = 0 'Flat
BackColor = &H80000005&
BackStyle = 0 'Transparent
ForeColor = &H80000008&
Height = 255
Left = 180
TabIndex = 23
Top = 5640
Width = 375
End
Begin VB.Label Label2
Alignment = 1 'Right Justify
Appearance = 0 'Flat
BackColor = &H80000005&
BackStyle = 0 'Transparent
Caption = "User Defined:"
ForeColor = &H80000008&
Height = 255
Left = 960
TabIndex = 22
Top = 5640
Width = 1815
End
Begin VB.Label Label1
Appearance = 0 'Flat
BackColor = &H80000005&
BackStyle = 0 'Transparent
Caption = "Current Brush:"
ForeColor = &H80000008&
Height = 315
Left = 120
TabIndex = 4
Top = 6120
Width = 1275
End
Attribute VB_Name = "frmROPTest"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
' Copyright
1997 by Desaware Inc. All Rights Reserved
' Globals
Dim CellHeight& ' Height in pixels of one color cell
Dim CurrentMouseY& ' Current Y location
Dim CurrentBrush& ' Current brush to use
Dim CurrentOption%
' API calls
Private Declare Function DeleteObject& Lib "gdi32" (ByVal hObject As Long)
Private Declare Function CreateSolidBrush& Lib "gdi32" (ByVal crColor As Long)
Private Declare Function PatBlt& Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal dwRop As Long)
Private Declare Function BitBlt& Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long)
Private Declare Function SelectObject& Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long)
' The most common raster operations
Dim RasterOps&(15)
Const SRCCOPY = &HCC0020 ' (DWORD) dest = source
Const SRCPAINT = &HEE0086 ' (DWORD) dest = source OR dest
Const SRCAND = &H8800C6 ' (DWORD) dest = source AND dest
Const SRCINVERT = &H660046 ' (DWORD) dest = source XOR dest
Const SRCERASE = &H440328 ' (DWORD) dest = source AND (NOT dest )
Const NOTSRCCOPY = &H330008 ' (DWORD) dest = (NOT source)
Const NOTSRCERASE = &H1100A6 ' (DWORD) dest = (NOT src) AND (NOT dest)
Const MERGECOPY = &HC000CA ' (DWORD) dest = (source AND pattern)
Const MERGEPAINT = &HBB0226 ' (DWORD) dest = (NOT source) OR dest
Const PATCOPY = &HF00021 ' (DWORD) dest = pattern
Const PATPAINT = &HFB0A09 ' (DWORD) dest = (Not source) or pattern or dest
Const PATINVERT = &H5A0049 ' (DWORD) dest = pattern XOR dest
Const DSTINVERT = &H550009 ' (DWORD) dest = (NOT dest)