nn::camera::CTR::SetTrimmingParams Function
void SetTrimmingParams(
Port port,
s16 xStart,
s16 yStart,
s16 xEnd,
s16 yEnd
);
| 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 valid 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 SetTrimming function.
No values are set if this function is called during image capture (while the IsBusy function returns true). To change settings, first call the StopCapture function to stop capturing, then wait for the IsBusy function's return value to change to false, and finally call this function.
CONFIDENTIAL