raw_spec: Create a specification for how raw bytes should be...

View source: R/write-png.R

raw_specR Documentation

Create a specification for how raw bytes should be interpreted when passed to write_png()

Description

Create a specification for how raw bytes should be interpreted when passed to write_png()

Usage

raw_spec(width, height, depth, bits)

Arguments

width, height

image dimensions

depth

number of colour channels. Integer value in range [1, 4]

bits

number of bits for each colour channel. Either 8 or 16.

Value

named list to pass to the write_png(..., raw_spec = )

Examples

raw_spec(100, 20, 3, 8)

fastpng documentation built on April 3, 2025, 10:01 p.m.