|
|
[C#]
static void Ripple(Bitmap bitmap, double height, double length, double phase, Nullable<double> speed);
[Visual Basic]
Shared Sub Ripple(bitmap As Bitmap, height As Double, length As Double, phase As Double, speed As Nullable(Of Double))
|
|
|
|
[C#]
using (Bitmap bm = (Bitmap)Bitmap.FromFile(Server.MapPath("rez/ming-jun-tan-o6ICDlt5_2k-unsplash.jpg"))) {
Effects.Ripple(bm, 10, 30, 0, 6);
bm.Save(Server.MapPath("IG8_Effects_Ripple1.jpg"));
}
using (Bitmap bm = (Bitmap)Bitmap.FromFile(Server.MapPath("rez/ming-jun-tan-o6ICDlt5_2k-unsplash.jpg"))) {
Effects.Ripple(bm, 15, 30, 0, 6);
bm.Save(Server.MapPath("IG8_Effects_Ripple2.jpg"));
}
using (Bitmap bm = (Bitmap)Bitmap.FromFile(Server.MapPath("rez/ming-jun-tan-o6ICDlt5_2k-unsplash.jpg"))) {
Effects.Ripple(bm, 10, 10, 0, 6);
bm.Save(Server.MapPath("IG8_Effects_Ripple3.jpg"));
}
Here we apply a Ripple edge detection filter using different
radii. Ouput files are shown below.
ming-jun-tan-o6ICDlt5_2k-unsplash.jpg
IG8_Effects_Ripple1.jpg
IG8_Effects_Ripple2.jpg
IG8_Effects_Ripple3.jpg
|