Skip to contents

Drop an image's runtime pixel handle, calling the backend's close_fn when it declares one.

Usage

at_close_image(x)

Arguments

x

An annot_image or annot_project.

Value

The image or project with its runtime handle released; assign the result. Later tile requests reopen the image from its source. Releasing a retained pixel snapshot loses those pixels when the source has changed or cannot be reopened. Built-in window readers open a connection per read and hold no persistent connection.

Examples

cube <- at_close_image(at_example_image("cube"))
dim(at_tile(cube, xrange = c(1, 4), yrange = c(1, 4), bands = 1))
#> [1] 4 4 1