GxMotdet: ImageUpdate

ImageUpdate

Occurs when the image of the ActiveX control is updated



 Event ImageUpdate(
	  ByVal status As Long,
	  ByVal found_x1 As Long,
	  ByVal found_y1 As Long,
	  ByVal found_x2 As Long,
	  ByVal found_y2 As Long,
	  ByVal min_diff As Long,
	  ByVal max_diff As Long )

Parameters

status
The status of the motion detection. It is 0 if no motion, 1 if motion occured.
found_x1
The left upper horizontal coordinate of the founded area if motion occured otherwise is -1.
found_y1
The left upper vertical coordinate of the founded area if motion occured otherwise is -1.
found_x2
The right lower horizontal coordinate of the founded area if motion occured otherwise is -1.
found_y2
The right lower vertical coordinate of the founded area if motion occured otherwise is -1.
min_diff
The minimum of the blocks pixel difference inside of the area if motion occured otherwise is -1.
max_diff
The right lower vertical coordinate of the founded area if motion occured otherwise is -1.

Languages

[Visual Basic] Event ImageUpdate(ByVal status As Long, ByVal found_x1 As Long, ByVal found_y1 As Long, ByVal found_x2 As Long, ByVal found_y2 As Long, ByVal min_diff As Long, ByVal max_diff As Long)

[Delphi] procedure ImageUpdate(Sender: TObject; status : Integer; found_x1 : Integer; found_y1 : Integer; found_x2 : Integer; found_y2 : Integer; min_diff : Integer; max_diff : Integer);

[C++] void OnImageUpdate(long status, long found_x1, long found_y1, long found_x2, long found_y2, long min_diff, long max_diff);

Remarks

[Delphi] The Sender parameter indicates which component received the event and therefore called the handler.

See Also

Class GxMotdet Overview GxMotdet Properties GxMotdet Methods GetSourceHandle ImgSrcParam