The following example images show the effect of a Ripple filter applied to a picture with different settings.
[C#]
void function() {
using (Doc doc = new Doc()) {
AddImagePage(doc, img3); // original image
doc.Rendering.Save("EffectRipple.jpg");
using (ImageLayer layer = AddImagePage(doc, img3)) {
using (EffectOperation effect = new EffectOperation("Ripple")) {
effect.Apply(layer.PixMap);
}
}
doc.Rendering.Save("EffectRippleDefault.jpg");
using (ImageLayer layer = AddImagePage(doc, img3)) {
using (EffectOperation effect = new EffectOperation("Ripple")) {
effect.Parameters["Height"].Value = 15;
effect.Apply(layer.PixMap);
}
}
doc.Rendering.Save("EffectRippleHeight15.jpg");
using (ImageLayer layer = AddImagePage(doc, img3)) {
using (EffectOperation effect = new EffectOperation("Ripple")) {
effect.Parameters["Length"].Value = 10;
effect.Apply(layer.PixMap);
}
}
doc.Rendering.Save("EffectRippleLength10.jpg");
}
}
[Visual Basic]
Sub ...
Using doc As New Doc()
AddImagePage(doc, img3)
' original image
doc.Rendering.Save("EffectRipple.jpg")
Using layer As ImageLayer = AddImagePage(doc, img3)
Using effect As New EffectOperation("Ripple")
effect.Apply(layer.PixMap)
End Using
End Using
doc.Rendering.Save("EffectRippleDefault.jpg")
Using layer As ImageLayer = AddImagePage(doc, img3)
Using effect As New EffectOperation("Ripple")
effect.Parameters("Height").Value = 15
effect.Apply(layer.PixMap)
End Using
End Using
doc.Rendering.Save("EffectRippleHeight15.jpg")
Using layer As ImageLayer = AddImagePage(doc, img3)
Using effect As New EffectOperation("Ripple")
effect.Parameters("Length").Value = 10
effect.Apply(layer.PixMap)
End Using
End Using
doc.Rendering.Save("EffectRippleLength10.jpg")
End Using
End Sub
Original Image before Ripple
After Ripple with default settings
Height = 15
Length = 10
|