nn::camera::CTR::SetTrimmingParamsCenter Function

Syntax

void SetTrimmingParamsCenter(
     Port port,
     s16 trimWidth,
     s16 trimHeight,
     s16 camWidth,
     s16 camHeight
);

Arguments

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

Return Values

None.

Description

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 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.

Revision History

2010/06/18
Explained that settings cannot be applied while capturing.
2010/04/09
Added description text.
2010/01/07
Initial version.

CONFIDENTIAL