XPM
Description
Type Tags
None
Object Value
Objects of type XPM have no value, and it is an error to try to get or set this value.
XPM.new()
Description
Prototype
XPM
.new
(
XPM
,
string me
,
string filename
,
integer name
,
integer maxcolors
)
charsperpixel
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | XPM | |
filename | None | string | |
name | None | string | |
maxcolors | 16777215 | integer | |
charsperpixel | 1 | integer |
Properties
Property | Type | Description |
---|---|---|
backcolor | integer | |
charsperpixel | integer | |
colors | integer | |
data | blob | |
filename | string | |
getdefbackcolor | function | |
height | integer | |
id | blob | |
name | string | |
palette | colorpalette | |
readfromfile | function | |
rereadpalette | function | |
type | type | |
width | integer | |
writetofile | function |
Methods
getdefbackcolor()
Description
Prototype
XPMvar
.getdefbackcolor
(
XPM
)
me
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | XPM |
readfromfile()
Description
Prototype
XPMvar
.readfromfile
(
XPM
,
string me
,
string filename
,
XPMcolorlist xpmstr
,
integer x11colors
,
integer backgroundcolor
)
error
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | XPM | |
filename | None | string | |
xpmstr | None | string | |
x11colors | None | XPMcolorlist | |
backgroundcolor | 12632256 | integer | |
error | None | integer |
rereadpalette()
Description
Prototype
XPMvar
.rereadpalette
(
XPM
,
boolean me
,
integer buildstrindx
)
error
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | XPM | |
buildstrindx | .true | boolean | |
error | None | integer |
writetofile()
Description
Prototype
XPMvar
.writetofile
(
XPM
,
string me
,
XPMcolorlist filename
,
integer colorlist
)
error
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | XPM | |
filename | None | string | |
colorlist | None | XPMcolorlist | |
error | None | integer |