CAMERA_SetTrimmingParams

Syntax

#include <twl/camera.h>

void CAMERA_SetTrimmingParams(u16 x1, u16 y1, u16 x2, u16 y2);

Arguments

x1 Start position for trimming (in pixels)
y1 Start position for trimming (in pixels)
x2 End position for trimming (in pixels)
y2 End position for trimming (in pixels)

Return Values

None.

Description

Specifies the positions to use for trimming. Trimming includes the (x1, y1) pixel. Trimming does not include the (x2, y2) pixel.

To use this function, trimming must first be enabled by the CAMERA_SetTrimming function.

The start position (y1) and end position (y2) in the image specified with this function must be an even number.


The following behavior will result if the trimming range is not specified properly with this function.

See Also

CAMERA_SetTrimming, CAMERA_SetTrimmingParamsCenter

Revision History

2007/11/15 Added an explanation of behavior for illegal trimming ranges.
2007/10/23 Added descriptions.
2007/10/02 Initial version.


CONFIDENTIAL