![]() |
![]() |
Palettes.Create
Function Create(Name As String, [FileName As String], [Overwrite As Boolean = False]) As Palette
Member of Palettes
The Create method creates a new empty custom color palette.
The following code example creates a new palette and adds colors with different shades of cyan varying by steps of 5%:
Sub Test() Dim pal As Palette Dim lvl As Long Dim c As New Color Set pal = Palettes.Create("Shades of Cyan", Application.UserDataPath & _ "Palettes\CyanShades.cpl", True) For lvl = 0 To 100 Step 5 c.CMYKAssign lvl, 0, 0, 0 pal.AddColor c Next lvl pal.Save End Sub
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.