compute.header.palette.colors: Compute the colors for the CGA/EGA palette from the header.

Description Usage Arguments Value

View source: R/read_pcx.R

Description

Compute the colors for the CGA/EGA palette from the header.

Usage

1
2
3
4
5
compute.header.palette.colors(
  pcxheader,
  gfx_mode = "AUTO",
  raw_image_data = NULL
)

Arguments

pcxheader

a PCX header instance

gfx_mode

the graphics mode, one of 'CGA', 'EGA', or 'AUTO' to guess the mode from the data.

raw_image_data

the raw image data as stored in the file, decoded (extracted from the RLE) but without further modification like application of a palette, optional. Can be used to check the validity of the computed palette if given.

Value

integer matrix, the palette colors.


dfsp-spirit/pcx documentation built on Nov. 24, 2021, 5:29 p.m.