Learn R Programming

fastpng (version 0.1.7)

raw_spec: 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)

Value

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

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.

Examples

Run this code
raw_spec(100, 20, 3, 8)

Run the code above in your browser using DataLab