Property VLMotionDetect.TVLMotionDetect.Items

From Mitov Wiki Doc
Jump to: navigation, search

This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.

Class: TVLMotionDetect

Contents

Syntax

Delphi:

property Items[ X : Cardinal, Y : Cardinal ] : Integer;

C++ Builder:

__property int Items[ unsigned int X ][ unsigned int Y ] = { };

Summary

Allows access to the values for the motion activity detected in each cell of the motion grid.

Description

Use this property to access the values for the motion activity detected in each cell of the motion grid.


Delphi Example:

var
  X, Y : Integer;

begin
  StringGrid.ColCount := VLMotionDetect1.MotionGrid.Cols;
  StringGrid.RowCount := VLMotionDetect1.MotionGrid.Rows;

  for X := 0 to StringGrid.ColCount - 1 do
    for Y := 0 to StringGrid.RowCount - 1 do
      begin
      StringGrid.Cells[ X, Y ] := IntToStr( VLMotionDetect1.Items[ X, Y ] );
      end;

end;

C++ Builder Example:

{
  StringGrid->ColCount = VLMotionDetect1->MotionGrid->Cols;
  StringGrid->RowCount = VLMotionDetect1->MotionGrid->Rows;

  for( int x = 0; x < StringGrid->ColCount; x ++ )
    for( int y = 0; y < StringGrid->RowCount; y ++ )
      StringGrid->Cells[ x ][ y ] = VLMotionDetect1->Items[ x ] [ y ];

}

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox