CRload_image: Loads image-file.

View source: R/CRload_image.R

CRload_imageR Documentation

Loads image-file.

Description

Loads an image file specified in imagefile, can be of type .bmp, .jpg, .jpeg, .png, .tif.

Usage

CRload_image(image_list, imagefile, status = NULL)

Arguments

image_list

List of images previously loaded (possibly empty), to which the loaded image is added.

imagefile

File of image (full path, filename, extension) of image to be loaded.

status

Optional list status with elements value and message to retrieve warnings and error messages.

Value

Returns updated image_list with loaded image added. If everything worked fine, returned image_list has an integer valid set to 1.

Examples

    imgl <- list()
    imgl <- CRload_image(imgl, "C:/Documents/picture_1.png")
    imgl <- CRload_image(imgl, "C:/Documents/picture_2.png")
    imgl <- CRload_image(imgl, "C:/Documents/picture_3.png")

lorweiuk/CREx documentation built on March 16, 2024, 3:04 a.m.