savePal
|
|
Image
|
|
An integer between 1 and 116 specifying the frame number of the image whose palette must be saved. Values in the range of 100-116 correspond to hidden frames.
|
|
File
|
|
A string containing the name of an ImageWarp palette file.
|
|
ERR_OK
|
|
The flag set if successful.
|
|
ERR_FAILED
|
|
The flag set if failed.
|
|
ERR_BADFILE
|
|
The flag set if the file could not be open.
|
|
ERR_NOSPACE
|
|
The flag set if there is not enough space to write the file.
|
|
This set of statements loads a sample image, converts it into a 256-color palettized image and saves its palette to a file.
|
|
setCurDir("samples")
|
loadIm (1,"sample14.iwd")
|
savePal(1,"C:\test.pal")
|
|
This function cannot be applied to a true color image.
|