Features AW00123409000214 Basler ace USB 3.0int64_t i = camera.WidthMax.GetValue();camera.Width.SetValue(1294);camera.OffsetX.SetValue(0);int64_t i = camera.HeightMax.GetValue();camera.Height.SetValue(964);camera.OffsetY.SetValue(0);You can also use the Basler pylon Viewer application to easily set the parameters.For more information about the pylon API and the pylon Viewer, see Section 3.1 on page 61.7.6.1 Center X and Center YThe ROI feature also includes Center X and Center Y capabilities for horizontal and verticalcentering. When CenterX is enabled, the camera will automatically center the ROI along thesensor’s X axis. When CenterY is enabled, the camera automatically centers the ROI along thesensor’s Y axis.Enabling ROI CenteringYou can enable ROI centering from within your application software by using the Basler pylon API.The following code snippet illustrates using the API to enable automatic ROI centering:camera.CenterX.SetValue(true);camera.CenterY.SetValue(true);When CenterX is enabled, the OffsetX setting is adjusted accordingly andbecomes read only.Note: When CenterX is disabled, the original OffsetX setting that applied whenCenterX was enabled, is not automatically restored. If you want to return to theoriginal OffsetX setting, you have to do so "manually".The enabling of CenterY has an analogous effect on OffsetY settings.