SetRegion Statement:
Set region for painting
Object.SetRegion
Points, n
|
Parameters:
Points-array of x, y coordinate pairs in consecutive order
n- number of x and y coordinates
|
Sample:
Dim Points(7)
Points(0) = 0 ‘x1
Points(1) = 0 ‘y1
Points(2) = 10 ‘x2
Points(3) = 10 ‘y2
Points(4) = 10 ‘x3
Points(5) = 0 ‘y3
object.SetRegion
Points,6
This method sets a clipping region to draw. All pixels that fall outside the region are clipped. You can cancel the region by calling ClearRegion method.
See also
SetRegion,ClearRegion
More samples:
|