Previous Document Next Document

Object Model Reference : Classes : B : Bitmap : Methods : Bitmap.ApplyBitmapEffect


Bitmap.ApplyBitmapEffect

Sub ApplyBitmapEffect(UndoString As String, Command As String)

Description

Member of Bitmap

The ApplyBitmapEffect method applies the specified bitmap effect.

Parameter
Description
UndoString
Specifies the name in the Undo list
Command
Specifies the effect to apply

VBA example

The following VBA example applies the Whirlpool effect to all bitmaps on the active page.

Sub ApplyBitmapEffect()
Dim s As Shape
For Each s In ActivePage.Shapes
If s.Type = cdrBitmapShape Then
If s.Bitmap.Mode <> cdrRGBColorImage Then
s.Bitmap.ConvertTo cdrRGBColorImage
End If
s.Bitmap.ApplyBitmapEffect "Whirlpool", "WhirlpoolEffect WhirpoolSpacing=20,WhirlpoolSmear=9,WhirlpoolTwist=70,WhirlpoolStreak=60,WhirpoolWarp=1,WhirlpoolRandomSeed=0"
End If
Next s
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.