Dim RightBottomX As Single, RightBottomY As Single
Dim IsLeftTopOn As Boolean
Dim IsRightTopOn As Boolean
Dim IsLeftBottomOn As Boolean
Dim IsRightBottomOn As Boolean
Dim cLeftTopX, cLeftBottomX, cRightTopX, cRightBottomX
Dim cLeftTopY, cLeftBottomY, cRightTopY, cRightBottomY
Private Declare Function SetStretchBltMode Lib "gdi32" (ByVal hdc As Long, ByVal nStretchMode As Long) As Long
Private Declare Function StretchBlt Lib "gdi32" (ByVal hdc 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 nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long