colour_depth: Set colour depth to either 8 or 24 bit

Description Usage Arguments Value Examples

Description

Set colour depth to either 8 or 24 bit

Usage

1

Arguments

img_df

A tidy data frame - output from img_df()

depth

Numeric, describing colour depth - either 8 or 24 (bit)

Value

A tidy data frame with colour depth adjusted

Examples

1
2
3
4
img_path <- system.file("extdata/images", "seurat.png", package = "pointillist")

png_df <- img_df(img_path)
png_df_8bit <- colour_depth(png_df, 8)

alexwhan/pointillist documentation built on May 10, 2019, 8:58 a.m.