Description
Saves a ramp color palette with current popup windows color cells.
Syntax
Ctlname.SavePalette (String lpszFileName)
Return Type
Boolean
Remarks
Use this method to save current dropped down color popup window existent or generated color and ramp node type to a file, this file extend name is PAL, file size is 1KB, and it can be reload anytime.
SavePalette method saves full dimensions, cc16x16, 256 color cells value and specified ramp nodes type information.
About generate palette function, refer to GeneratePalette method.
After loaded a standard ramp palette file or when generated a ramp palette, the ColorCell(0,0) and ColorCell(x, y) ramp node type must be True. x, y determines by ColorBoxDimension.
Samples
Refer to GeneratePalette method sample.