inspectPng | R Documentation |
Inspect a PNG file, returning parsed metadata relating to it.
inspectPng(file) ## S3 method for class 'lodermeta' print(x, ...)
file |
A character string giving the file name to read from. |
x |
An object of class |
... |
Additional arguments (which are ignored). |
The LodePNG library is used to parse the PNG file at the specified path.
The result is a string like the input, but of class "lodermeta"
and
with several attributes set describing the file's contents. There is a
print
method for these objects.
inspectPng
returns a character vector of class
"lodermeta"
. The print
method is called for its side-effect.
readPng
to read the pixel values.
path <- system.file("extdata", "pngsuite", package="loder") inspectPng(file.path(path, "basn6a08.png"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.