Previous Document Next Document

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


CorelScript.ApplyFountainFill

Function ApplyFountainFill(Type As Long, CenterX As Long, CenterY As Long, Angle As Long, Steps As Long, Padding As Long, Blend As Long, Rate As Long) As Long

Description

Member of CorelScript

The ApplyFountainFill method applies a fountain fill to the selected object. If the existing fill is not fountain, the start color is CMYK black and the end color CMYK white.

Parameter
Description
Type
Specifies the type of fountain fill to apply:
 
0 = Linear (default)
 
1 = Radial
 
2 = Conical
 
3 = Square
CenterX
Specifies the horizontal offset of the center of the fill. Valid values range from -100 to 100 percent; a value of -50% places the center on the left edge of the object, while a value of 50% places it on the right edge.
For linear (Type = 0) fills, this parameter is ignored and can be set to 0.
CenterY
Specifies the vertical offset of the center of the fill. Valid values range from -100 to 100 percent; a value of -50% places the center on the bottom edge of the object, while a value of 50% places it on the top edge.
For linear (Type = 0) fills, this parameter is ignored and can be set to 0.
Angle
Specifies the angle at which the fill is applied, in tenths of a degree. Positive values rotate the fill counterclockwise, while negative values rotate it clockwise. To determine angle measurements, use the CorelScriptTools.AngleConvert method.
For radial (Type = 1) fills, this parameter is ignored and can be set to 0.
Steps
Specifies the desired number of steps. Lower values produce coarser fountains on screen, which take less time to redraw.
Padding
Specifies the amount of padding to apply to the fill. Valid values range from 0 to 45 percent.
For conical (Type = 2) fills, this parameter is ignored and can be set to 0.
Blend
Specifies the blending type:
 
0 = Direct (default)
 
1 = Rainbow clockwise
 
2 = Rainbow counterclocwise
 
3 = Custom
For custom-blend objects, all intermediate colors are lost unless the Blend parameter is set to Custom.
Rate
Specifies the mid-point used to apply the fill. Valid values range from 1 to 99.

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.