Previous Document Next Document

Object Model Reference : Classes : C : CorelScript : Methods : CorelScript.StoreColor


CorelScript.StoreColor

Function StoreColor(ColorModel As Long, V1 As Long, V2 As Long, V3 As Long, V4 As Long, V5 As Long, V6 As Long, V7 As Long, Position As Long) As Long

Description

Member of CorelScript

The StoreColor method specifies the color to be applied to the selected object.

Parameter
Description
ColorModel
Specifies the numeric variable that is assigned to the desired color model. Valid values are as follows:
 
1 = Pantone
 
2 = CMYK100
 
3 = CMYK255
 
4 = CMY
 
5 = RGB
 
6 = HSB
 
7 = HLS
 
8 = BW
 
9 = Gray
 
11 = YIQ255
 
12 = LAB
 
13 = Index
 
14 = Pantone Hex
 
15 = Hexachrome
 
To use the color palette with the color model, multiply the associated palette value by 1000 and add it to the ColorModel value:
 
1 = TRUMATCH
 
2 = PANTONE PROCESS
 
3 = PANTONE SPOT
 
4 = IMAGE
 
5 = USER
 
6 = CUSTOMFIXED
 
7 = RGBSTANDARD
 
8 = FOCOLTONE
 
9 = DUPONT
 
10 = TOYO
 
11 = DIC
 
12 = PANTONE HEX
 
13 = LAB
 
14 = NETSCAPE
 
15 = EXPLORER
 
16 = USERINKS
V1
Specifies the numeric variable that is assigned to the first color component of the selected color model. Valid values vary with the color model.
V2
Specifies the numeric variable that is assigned to the second color component of the selected color model. Valid values vary with the color model. If this parameter is not available in the specified color model, its value can be set to 0.
V3
Specifies the numeric variable that is assigned to the third color component of the selected color model. Valid values vary with the color model. If this parameter is not available in the specified color model, its value can be set to 0.
V4
Specifies the numeric variable that is assigned to the fourth color component of the selected color model. Valid values vary with the color model. If this parameter is not available in the specified color model, its value can be set to 0.
V5
Specifies the numeric variable that is assigned to the fifth color component of the selected color model. Valid values vary with the color model. If this parameter is not available in the specified color model, its value can be set to 0.
V6
Specifies the numeric variable that is assigned to the sixth color component of the selected color model. Valid values vary with the color model. If this parameter is not available in the specified color model, its value can be set to 0.
V7
Specifies the numeric variable that is assigned to the seventh color component of the selected color model. Valid values vary with the color model. If this parameter is not available in the specified color model, its value can be set to 0.
Position
Specifies the position of the color to be applied. 0 and 100 are invalid values; for any other value, the color at that position is applied, if it exists.

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.