raw_spec {fastpng} | R 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)
[Package fastpng version 0.1.5 Index]