nn::camera::CTR::SetTrimmingParamsCenter Function
void SetTrimmingParamsCenter(
Port port,
s16 trimWidth,
s16 trimHeight,
s16 camWidth,
s16 camHeight
);
| Name | Description | |
|---|---|---|
| in | port | Specifies which port to change settings for. |
| in | trimWidth | Trim width |
| in | trimHeight | Trim height |
| in | camWidth | Width (horizontal resolution) of images captured by the camera |
| in | camHeight | Height (vertical resolution) of images captured by the camera |
Sets the trimming positions relative to the center of the camera image.
The same restrictions on the values that can be set by the SetTrimmingParams function also apply to this function.
To use this function, you must first enable trimming with the nn::camera::CTR::SetTrimming function.
No values are set if this function is called while images are being captured (while the nn::camera::CTR::IsBusy function returns true). To change settings, first call the nn::camera::CTR::StopCapture function to stop capturing, then wait for the nn::camera::CTR::IsBusy function's return value to change to false, and finally call this function.
CONFIDENTIAL