Package 'RFPNG'

Title: Very Fast PNG Image Reader/Writer for 24/32bpp Images
Description: Wraps 'fpng', a very fast C++ .PNG image reader/writer for 24/32bpp images
Authors: David Schoch [aut, cre]
Maintainer: David Schoch <[email protected]>
License: `use_mit_license()`, `use_gpl3_license()` or friends to pick a license
Version: 0.0.0.9000
Built: 2024-11-05 02:40:13 UTC
Source: https://github.com/schochastics/RFPNG

Help Index


Initialize fpng run one time on startup

Description

Initialize fpng run one time on startup

Usage

fpng_init()

convert png to be compatible with fpng

Description

convert png to be compatible with fpng

Usage

png2fpng(png_path, fpng_path)

Arguments

png_path

path to png file to be converted

fpng_path

path to output png file


Decode from file Reads an image from a PNG file into a raster array.

Description

Decode from file Reads an image from a PNG file into a raster array.

Usage

readFPNG(file_path)

Arguments

file_path

character. file to write to

Value

array representing the FPNG image


Reshape png array Reshape a png array that was read with png::readPNG to comply with fpng

Description

Reshape png array Reshape a png array that was read with png::readPNG to comply with fpng

Usage

reshape_to_fpng(x)

Arguments

x

array representing a png image


Encode to file Create a FPNG image from an array or matrix.

Description

Encode to file Create a FPNG image from an array or matrix.

Usage

writeFPNG(x, file_path)

Arguments

x

image represented by an integer matrix with values between 0 and 255. Either three (RGB) or four (RGB+alpha) planes.

file_path

character. file to write to

Value

bool