wal.export.to.jpeg: Export wal instance to JPEG format image file.

Description Usage Arguments Examples

View source: R/export.R

Description

Export wal instance to JPEG format image file.

Usage

1
wal.export.to.jpeg(wal, filepath, apply_palette = wal::pal_q2(), ...)

Arguments

wal

a wal instance, as returned by read.wal

filepath

character string, path to the JPEG file to write, including the file extension.

apply_palette

optional 256 x 3 integer matrix, the palette. Must contain values in range 0..255. Pass NULL if you do not want to apply any palette. The resulting wal object will not have an 'image' entry then.

...

extra parameters passed to jpeg::writeJPEG. Can be used to set JPEG quality.

Examples

1
2
3
4
5
6
## Not run: 
   walf = '~/data/q2_pak0_extracted/textures/e1u2/basic1_7.wal';
   wal = read.wal(walf);
   wal.export.to.jpeg(wal, "~/basic1_7.jpg");

## End(Not run)

wal documentation built on Jan. 17, 2021, 5:10 p.m.