rawToAmigaIcon: Coerce raw data into an AmigaIcon class object

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/workbench_icon.r

Description

AmigaIcon objects are comprehensive representations of binary Amiga Workbench icon files (*.info). Use this function to convert raw data from such a file to an AmigaIcon object.

Usage

1

Arguments

x

A vector of raw data that needs to be converted into an S3 AmigaIcon class object.

palette

Provide a palette (vector of colours) for the icon bitmap image. When set to NULL (default) the standard Amiga Workbench palette will be used.

Details

Icons files (*.info) were used as a graphical representations of files and directories on the Commodore Amiga. This function will convert the raw data from such files into a more comprehensive names list (see AmigaIcon). Use as.raw to achieve the inverse.

Value

Returns an AmigaIcon class object based on x.

Author(s)

Pepijn de Vries

See Also

Other AmigaIcon.operations: AmigaIcon, read.AmigaIcon(), simpleAmigaIcon(), write.AmigaIcon()

Other raw.operations: as.AmigaBasic(), as.raw.AmigaBasic(), colourToAmigaRaw(), packBitmap(), rawToAmigaBasicBMAP(), rawToAmigaBasicShape(), rawToAmigaBasic(), rawToAmigaBitmapFontSet(), rawToAmigaBitmapFont(), rawToHWSprite(), rawToIFFChunk(), rawToSysConfig(), simpleAmigaIcon()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
## generate a simple AmigaIcon object:
icon <- simpleAmigaIcon()

## convert it into raw data:
icon.raw <- as.raw(icon)

## convert the raw data back into an icon:
icon.restored <- rawToAmigaIcon(icon.raw)

## End(Not run)

AmigaFFH documentation built on Sept. 5, 2021, 5:22 p.m.