Camera Module - LostShadowGD/lpp-3ds-docs GitHub Wiki

Camera.init

void Camera.init(screen_id screen, cam_id camera, photo_id photo_mode, [bool is3D])

Initialize camera.

Sample usage:

Camera.init(TOP_SCREEN, OUTER_CAM, PHOTO_MODE_NORMAL, false)

Camera.getOutput

void Camera.getOutput(void)

Print camera output on screen.

Sample usage:

Camera.getOutput()

Camera.takePhoto

void Camera.takePhoto(string filename, res_value resolution, [bool jpg_compression])

Take a photo with the camera.

Sample usage:

Camera.takePhoto("/file.jpg", VGA_RES, true)

Camera.takeImage

u32 Camera.takeImage()

Take an image with the camera.

Sample usage:

my_img = Camera.takeImage()

Camera.term

void Camera.term()

Terminate camera.

Sample usage:

Camera.term()