This method provides the ripple effect on the image, as if it is looked at through a relief glass.
Syntax
'Declaration
Public Shared Sub RippleTexture( _
ByVal As ImGearRasterPage, _
ByVal As ImGearRasterPage, _
ByVal As Single, _
ByVal As Single, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Single, _
ByVal As Boolean _
)
'Usage
Dim page As ImGearRasterPage
Dim texture As ImGearRasterPage
Dim depth As Single
Dim scale As Single
Dim offsetX As Integer
Dim offsetY As Integer
Dim smoothness As Single
Dim invert As Boolean
ImGearEffects.RippleTexture(page, texture, depth, scale, offsetX, offsetY, smoothness, invert)
public static void RippleTexture(
ImGearRasterPage ,
ImGearRasterPage ,
float ,
float ,
int ,
int ,
float ,
bool
)
Parameters
- page
- Page to apply the effect to.
- texture
- Page to use as the ripple pattern.
- depth
- Strength of the ripple effect.
- scale
- Specifies the scaling factor for pattern image.
- offsetX
- Horizontal offset at which the upper left corner of the ripple texture shall be placed.
- offsetY
- Vertical offset at which the upper left corner of the ripple texture shall be placed.
- smoothness
- Specifies how much the ripple pattern should be smoothed before applying.
- invert
- Inverts the ripple pattern, effectively swapping 'convex' and 'concave' areas.
See Also