|
|
[C#]
static void Wave(Bitmap bitmap, int number, double lengthMin, double lengthMax, double heightMin, double heightMax, Nullable<double> speed);
[Visual Basic]
Shared Sub Wave(bitmap As Bitmap, number As Integer, lengthMin As Double, lengthMax As Double, heightMin As Double, heightMax As Double, speed As Nullable(Of Double))
|
|
|
|
[C#]
using (Bitmap bm = (Bitmap)Bitmap.FromFile(Server.MapPath("rez/laurentiu-iordache-qstGMhWuORE-unsplash.jpg"))) {
Effects.Wave(bm, 3, 40, 60, 5, 15, null);
bm.Save(Server.MapPath("IG8_Effects_Wave1.jpg"));
}
using (Bitmap bm = (Bitmap)Bitmap.FromFile(Server.MapPath("rez/laurentiu-iordache-qstGMhWuORE-unsplash.jpg"))) {
Effects.Wave(bm, 3, 15, 30, 5, 15, null);
bm.Save(Server.MapPath("IG8_Effects_Wave2.jpg"));
}
using (Bitmap bm = (Bitmap)Bitmap.FromFile(Server.MapPath("rez/laurentiu-iordache-qstGMhWuORE-unsplash.jpg"))) {
Effects.Wave(bm, 3, 40, 60, 0, 5, null);
bm.Save(Server.MapPath("IG8_Effects_Wave3.jpg"));
}
The following example shows the basic effect of the Wave effect
and how the parameters can change the effect produced. Ouput files
are shown below.
laurentiu-iordache-qstGMhWuORE-unsplash.jpg
IG8_Effects_Wave1.jpg
IG8_Effects_Wave2.jpg
IG8_Effects_Wave3.jpg
|