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 restrictions on the values that can be set using the SetTrimmingParams function also apply to this function.
To use this function, you must first enable trimming with the nn::camera::CTR::SetTrimming function.
This function does not set any value if it is called during image capture (while the nn::camera::CTR::IsBusy function returns true). If you wish to change the setting, do not call this function until you have used the nn::camera::CTR::StopCapture function to stop capturing and then waited for the nn::camera::CTR::IsBusy function's return value to change to false.
CONFIDENTIAL