MyImage Module

Types

Type Description

MyImage

Encapsulates an image, which includes both the byte pixel data and its associated attributes.

Functions and values

Function or value Description

load filePath

Full Usage: load filePath

Parameters:
    filePath : string - The path where the image is located. The image name and extension are required

Returns: MyImage

Loads the image located at the specified file path

filePath : string

The path where the image is located. The image name and extension are required

Returns: MyImage

save image filePath

Full Usage: save image filePath

Parameters:
    image : MyImage - Saved image
    filePath : string - Path to the directory where the image will be saved

Saves the image to the specified directory in the same extension as the input

image : MyImage

Saved image

filePath : string

Path to the directory where the image will be saved