wal.export.to.png: Export wal instance to PNG format image file.

View source: R/export.R

wal.export.to.pngR Documentation

Export wal instance to PNG format image file.

Description

Export wal instance to PNG format image file.

Usage

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

Arguments

wal

a wal instance, as returned by read.wal

filepath

character string, path to the PNG 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 png::writePNG.

Examples

## Not run: 
   walf = '~/data/q2_pak0_extracted/textures/e1u2/basic1_7.wal';
   wal = read.wal(walf);
   wal.export.to.png(wal, "~/basic1_7.png");

## End(Not run)


dfsp-spirit/wal documentation built on Feb. 5, 2024, 1:59 p.m.