nn::camera::CTR::SetTrimmingParams Function| Name | Description | |
|---|---|---|
| in | port | Specifies which port to change settings for. |
| in | xStart | Starting position for trimming (x-coordinate) |
| in | yStart | Starting position for trimming (y-coordinate) |
| in | xEnd | Ending position for trimming (x-coordinate) |
| in | yEnd | Ending position for trimming (y-coordinate) |
Sets the positions to which to trim.
The following restrictions apply to the values that can be set:
• The trimming range is from (xStart, yStart) to (xEnd-1, yEnd-1).
• The values of (xEnd - xStart) and (yEnd - yStart) must both be even numbers.
• The values of xStart and yStart must also be even numbers.
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