FZ_PanDAForm.GetImageWindow
Gets information about the Image Display window setting
Public Shared Function GetImageWindow( _
ByVal windowNo As Integer, _
ByRef locationX As Integer, _
ByRef locationY As Integer, _
ByRef width As Integer, _
ByRef height As Integer, _
ByRef unitNo As Integer, _
ByRef subNo As Integer, _
ByRef magnification As Double, _
ByRef originX As Integer, _
ByRef originY As Integer, _
ByRef update As Integer, _
ByRef visible As Integer _
) As Integer
Parameters
windowNo
|
Window number to be gotten
|
Input
|
locationX
|
Upper left X coordinate value of the window
|
Output
|
locationY
|
Upper left Y coordinate value of the window
|
Output
|
width
|
Window width
|
Output
|
Height
|
Window height
|
Output
|
unitNo
|
Processing unit number to be displayed
|
Output
|
subNo
|
Sub number to be displayed
|
Output
|
magnification
|
Display magnification
|
Output
|
originX
|
Upper left X coordinate of a display image relative to the window upper left coordinate
|
Output
|
originY
|
Upper left Y coordinate of a display image relative to the window upper left coordinate
|
Output
|
update
|
Update timing
0: Every measurement
1: Only when an overall judgement result is NG at the time of measurement
2: Only when a target processing unit is NG at the time of measurement
3: Always updated (through display)
|
Output
|
visible
|
Display
0: Window invisible
1: Window visible
|
Output
|
Return Value
Returns 0 when the setting information of the Image Display window is successfully obtained.
Otherwise returns a non-zero value.
Description
Gets setting information about the specified window number.
Example
Private Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim locationX As Integer
Dim locationY As Integer
Dim width As Integer
Dim height As Integer
Dim unitNo As Integer
Dim subNo As Integer
Dim magnification As Double
Dim originX As Integer
Dim originY As Integer
Dim update As Integer
Dim visible As Integer
' Gets setting information about the window number 0
GetImageWindow(0,
locationX, locationY,
width, height,
unitNo, subNo,
magnification,
originX, originY,
update,
visible)
End Sub