User`s manual
AW00049313000 Acquisition Control
Basler runner 73
Setting the Frame Parameters
You can set the X Offset, Width, and Height parameter values from within your application software
by using the pylon API. The following code snippets illustrate using the API to get the maximum
allowed settings and the increments for the Width and Height parameters. They also illustrate
setting the X Offset, Width, and Height parameter values
int64_t widthMax = Camera.Width.GetMax( );
int64_t widthInc = Camera.Width.GetInc( );
Camera.Width.SetValue( 200 );
Camera.OffsetX.SetValue( 100 );
int64_t heightMax = Camera.Height.GetMax( );
int64_t heightInc = Camera.Height.GetInc( );
Camera.Height.SetValue( 200 );
For detailed information about using the pylon API, refer to the Basler pylon Programmer’s Guide
and API Reference.
You can also use the Basler pylon Viewer application to easily set the parameters.
For more information about the pylon Viewer, see Section 3.1 on page 17.
Note
The Width and Height parameters cannot be changed while the camera is in
the process of acquiring frames. If the camera receives commands to change
the Width or Height parameter values while it is in the process of acquiring
frames:
If the camera is set for single frame mode, the parameters will not change
until the current frame is complete or you issue an acquisition stop
command.
If the camera is set for continuous frame mode, the parameters will not
change until you issue an acquisition stop command.










