Previous Document Next Document

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


CorelScript.ApplyExtrude

Function ApplyExtrude(ExtrudeType As Long, VPProperties As Long, CopyObjectID As Long, Depth As Long, VPHorizPos As Long, VPVertPos As Long, PageOrigin As Boolean, Light1Pos As Long, Light1Intensity As Long, Light2Pos As Long, Light2Intensity As Long, Light3Pos As Long, Light3Intensity As Long, FillType As Long, DrapeFill As Boolean) As Long

Description

Member of CorelScript

The ApplyExtrude method extrudes the selected object.

Parameter
Description
ExtrudeType
Specifies the extrusion type:
 
0 = Small Back
 
1 = Small Front
 
2 = Big Back
 
3 = Big Front
 
4 = Back Parallel
 
5 = Front Parallel
VPProperties
Specifies the properties of the vanishing point:
 
0 = locked to object
 
1 = locked to page
 
2 = copied from object
 
3 = shared
CopyObjectID
Specifies the object ID of the source object, for using a copied or shared vanishing point. To determine the ID of an object, use the CorelScript.GetObjectsCDRStaticID method.
Depth
Specifies the depth of the extrusion
VPHorizPos
Specifies the x-coordinate of the vanishing point, in tenths of a micron and relative to the center of the page or the object (depending on PageOrigin)
VPVertPos
Specifies the y-coordinate of the vanishing point, in tenths of a micron and relative to the center of the page or the object (depending on PageOrigin)
PageOrigin
Specifies the position of the vanishing point. True (-1) positions the vanishing point by using absolute page coordinates, while False (0) positions the vanishing point relative to the object’s position.
Light1Pos
Specifies the position of the light source. Valid values range from 0 to 16.
Light1Intensity
Specifies the intensity of the light source. Valid values range from 0 to 100.
Light2Pos
Specifies the position of the light source. Valid values range from 0 to 16.
Light2Intensity
Specifies the intensity of the light source. Valid values range from 0 to 100.
Light3Pos
Specifies the position of the light source. Valid values range from 0 to 16.
Light3Intensity
Specifies the intensity of the light source. Valid values range from 0 to 100.
FillType
Specifies the fill type:
 
0 = object fill
 
1 = solid fill
 
2 = shade
DrapeFill
Specifies whether to drape the fill over the object. True drapes the fill over the object.

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.