Previous Document Next Document

Object Model Reference : Classes : E : EffectLens : Properties : EffectLens.RemoveFace


EffectLens.RemoveFace

Property RemoveFace As Boolean

Description

Member of EffectLens

The RemoveFace property returns or specifies whether to show the lens face or the effect of a lens. If this property is set to True, the lens displays its effects only where it covers the object.

The RemoveFace option is available for color-altering lenses only and is not available for Fish eye and Magnify lenses.

VBA example

The following VBA example creates two Heat map lenses, one with and one without the RemoveFace option.

Sub Test()
 Dim s1 As Shape, s2 As Shape
 Set s1 = ActiveLayer.CreateRectangle2(0, 2, 3, 2)
 s1.Fill.ApplyFountainFill
 Set s2 = ActiveLayer.CreateEllipse2(1.5, 4.5, 1.5)
 s2.CreateLens(cdrLensHeatMap, 20).Lens.RemoveFace = True
 Set s2 = ActiveLayer.CreateEllipse2(1.5, 1.5, 1.5)
 s2.CreateLens(cdrLensHeatMap, 20).Lens.RemoveFace = False
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.