Unibrain API-810 User Manual Page 55

  • Download
  • Add to my manuals
  • Print
  • Page
    / 97
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 54
55
C++ syntax
BSTR Description;
HRESULT hr = pIUserDefined->get_Description(&Description);
SetROI method
Prototype
Boolean SetROI(
IN Integer Left,
IN Integer Top,
IN Integer Width
IN Integer Height
)
Comments
This method is used to set the desired coordinates and size of the Region of Interest for the
FireiXUserDefinedStreamFormat.
The Left and Top values must be greater than or equal to 0 and less than or equal to the MaxWidth and
MaxHeight properties respectively. They must also be perfectly divisible by HorizontalPositionUnit
and VerticalPositionUnit respectively.
The Width and Height values must be greater than or equal to WidthUnit and HeightUnit respectively
and less than or equal to MaxWidth and MaxHeight respectively. They must also be perfectly divisible by
WidthUnit and HeightUnit respectively. Additionally, they must not be greater than the available rectangle
as set by the Left and Top values (i.e., the sum of Width and Left must not be greater than MaxWidth and
the sum of Height and Top must not be greater than MaxHeight).
The method will return True or False, depending on whether the above conditions are met. It will not query
the camera for validity; any checks are made inside the SDK, according to the reported parameters of the
camera.
Visual Basic 6.0 syntax
Dim Result As Boolean
Result = UserDefined.SetROI(0, 0, 160, 120)
C++ syntax
VARIANT_BOOL bResult;
HRESULT hr = pIUserDefined->SetROI(0, 0, 160, 120, &bResult);
IsValid method
Prototype
Boolean IsValid()
Comments
This method will return True if the currently set properties of the FireiXUserDefinedStreamFormat are
acceptable by the camera.
Page view 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 96 97

Comments to this Manuals

No comments