write.image: Write Images

View source: R/write.image.R

write.imageR Documentation

Write Images

Description

Save image files using the Bio-Formats library. A list of supported formats can be found on the Bio-Formats website.

Usage

write.image(x, file, force = FALSE, pixelType, littleEndian)

Arguments

x

an Image or AnnotatedImage object

file

character, file name

force

logical(1), if TRUE overwrite existing file

pixelType

character(1), data type to store pixel values

littleEndian

boolean(1), pixel data endianness

Value

File path to file is returned invisibly.

Author(s)

Andrzej OleÅ› <andrzej.oles@gmail.com>, 2014-2023

See Also

read.image for reading images.

Examples

f = mockFile(sizeX = 256, sizeY = 256)
img = read.image(f)

tempfile = tempfile("", , ".png")
write.image(img, tempfile)

aoles/RBioFormats documentation built on May 3, 2024, 7:46 a.m.