Interpret an IFFChunk object
IFFChunk
s represent the structure of the Interchange File Format well,
but the iformation is stored as raw
data. This method tries to interpret and
translate the information into a more comprehensive format.
## S4 method for signature 'IFFChunk' interpretIFFChunk(x, ...)
x |
An |
... |
Currently ignored. |
Interchange File Format chunks can hold any kind of information (images, audio,
(formatted) text, etc.). This method will try to convert this information into
something useful. Information may get lost in the translation, so be careful when
converting back to an IFFChunk-class
object using
IFFChunk-method
.
An error is thrown when the IFFChunk
object is currently not
interpretable by this package. See IFFChunk-method
for an overview
of currently supported IFF chunks. This list may increase while this package
matures.
Pepijn de Vries
Other iff.operations: IFFChunk-class
,
WaveToIFF
, as.raster
,
getIFFChunk
, rasterToIFF
,
rawToIFFChunk
, read.iff
,
write.iff
## Not run: ## load an IFF file example.iff <- read.iff(system.file("ilbm8lores.iff", package = "AmigaFFH")) ## in this case, the file is a FORM container with a bitmap image, and a ## list with a raster object is returned when interpreted: example.itpt <- interpretIFFChunk(example.iff) class(example.itpt) typeof(example.itpt) class(example.itpt[[1]]) ## Let's extraxt the bitmap header from the main chunk: bmhd <- getIFFChunk(example.iff, c("ILBM", "BMHD")) ## When interpreted, a named list is returned with (meta-)information ## on the bitmap image: bmhd.itpt <- interpretIFFChunk(bmhd) class(bmhd.itpt) typeof(bmhd.itpt) print(bmhd.itpt) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.