WINDMAKE (Statement)


Specify an area for image processing.


WINDMAKE <window shape>,<window number>,<parameter 1>,<parameter 2>,...
Line window (2 point specification):
WINDMAKE P,<window number>,<start point X coordinate>,
<start point Y coordinate>,<end point X coordinate>,
<end point Y coordinate>
Line window (Length and angle specification):
WINDMAKE L,<window number>,<length>[,<angle>]
Circle window:
WINDMAKE C,<window number>,<radius>
Ellipse window:
WINDMAKE E,<window number>,<width>,<height>
Sector window:
WINDMAKE S,<window number>,<outer diameter>,<inner diameter>,
<start angle>,<end angle>,<partition angle>[,<mode>]
Rectangle window:
WINDMAKE R,<window number>,<width>,<height>[,<angle>[,<mode>]]


<window shape>
Specifies the window shape.
P: Line window -- Point to Point (2 point specification)
L: Line window -- Line (Length and angle specification)
C: Circle window -- Circle
E: Ellipse window -- Ellipse
S: Sector window -- Section
R: Rectangle window -- Rectangle
<window number>
Specifies the window number (0 to 511).
<parameter>
Specifies the value to set each window shape.
Line window (2 point specification):
<start point X coordinate>
Specifies the line start point X coordinate (0 to 511).
<start point Y coordinate>
Specifies the line start point Y coordinate (0 to 479).
<end point X coordinate>
Specifies the line end point X coordinate (0 to 511).
<end point Y coordinate>
Specifies the line start point Y coordinate (0 to 479).
Line window (Length and angle specification):
<length>
Specifies the line length (1 to 512).
<angle>
Specifies the angle of the line. If this is omitted, 0 degrees is set as the default.
Circle window:
<radius>
Specifies the radius of a circle (1 to 240).
Ellipse window:
<width>
Specifies the width of an ellipse (1 to 256).
<height>
Specifies the height of an ellipse (1 to 240).
Sector window:
<outer diameter>
Specifies the outer diameter of a sector (outer diameter > inner diameter) (1 to 9999).
<inner diameter>
Specifies the inner diameter of a sector (outer diameter > inner diameter) (1 to 9999).
<start angle>
Specifies the start angle of a sector (-720 to 720).
<end angle>
Specifies the end angle of a sector (-720 to 720).
<partition angle>
Specifies the resolution for processing (0.1 to 360).
<mode>
Specifies the mode to draw (0 to 2).
0:
Specifies the VISPROJ and VISEDGE scanning direction to the meridian.
1:
Specifies the VISPROJ and VISEDGE scanning direction to the periphery of a circle.
2:
Does not specify the VISPROJ and VISEDGE scanning direction. If this is omitted, 2 is set as the default.

Rectangle window:
<width>
Specifies the width of a rectangle (1 to 512).
<height>
Specifies the height of a rectangle (1 to 480).
<angle>
Specifies the angle of the line. If this is omitted, 0 degrees is set as the default (-720 to 720).
<mode>
Specifies the mode to draw (0 to 2).
0:
Specifies the VISPROJ and VISEDGE scanning direction to the width direction.
1:
Specifies the VISPROJ and VISEDGE scanning direction to the height direction.
2:
Does not specify the VISPROJ and VISEDGE scanning direction. If this is omitted, 0 is set as the default.

  • This statement does not change the initial setting. When restarting the system after powering OFF, the initial setting values are restored.
  • If it is necessary to permanently change the setting, edit the data with the WINCAPSIII.
  • To execute this statement, a µVision board (option) is required.



VISSCREEN 1, 0, 1
'
VISCLS 0
'
VISCAMOUT 1
'
CAMIN 1
'
VISPLNOUT 0
'
WINDMAKE P, 1, 50, 100, 100, 150
'Create a line window (2 point specification)
WINDMAKE L, 2, 100, 45
'Create a line window (Length and angle
'specification)
WINDMAKE C, 3, 50
'Create a circle window
WINDMAKE E, 4, 50, 100
'Create an ellipse window
WINDMAKE S, 5, 100, 80, 90, 300, 1, 2
'Create a sector window
WINDMAKE R, 6, 100, 50, 45, 2
'Create a rectangle window
VISMEASURE 1, 100, 100, 1, 1, 128
'
WINDDISP 1
'
VISMEASURE 2, 150, 150, 1, 1, 128
'
WINDDISP 2
'
VISMEASURE 3,.200,.200,.1,.1,.128
'
WINDDISP 3
'
VISMEASURE 4,.250,.250,.1,.1,.128
'
WINDDISP 4
'
VISMEASURE 5,.300,.300,.1,.1,.128
'
WINDDISP 5
'
VISMEASURE 6,.350,.350,.1,.1,.128
'
WINDDISP 6
'


Top