This method provides the ripple effect on the image, as if it is looked at through a relief glass.
Syntax
'Declaration
Public Shared Sub Ripple( _
ByVal As ImGearRasterPage, _
ByVal As Single, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As ImGearRipplePattern, _
ByVal As Single, _
ByVal As Boolean _
)
'Usage
Dim page As ImGearRasterPage
Dim depth As Single
Dim periodX As Integer
Dim periodY As Integer
Dim pattern As ImGearRipplePattern
Dim smoothness As Single
Dim invert As Boolean
ImGearEffects.Ripple(page, depth, periodX, periodY, pattern, smoothness, invert)
Parameters
- page
- Page to apply the effect to.
- depth
- Strength of the ripple effect.
- periodX
- X period of the ripple pattern in pixels.
- periodY
- Y period of the ripple pattern in pixels.
- pattern
- Identifies a predefined ripple pattern.
- smoothness
- Specifies how much the ripple pattern should be smoothed before applying.
- invert
- Inverts the ripple pattern, effectifely swapping 'convex' and 'concave' areas.
See Also