C# Class Pinta.ImageManipulation.Effects.CloudsEffect

Inheritance: BaseEffect
Afficher le fichier Open project: PintaProject/Pinta.ImageManipulation

Méthodes publiques

Méthode Description
CloudsEffect ( int scale = 250, int power = 50, int seed, ColorBgra fromColor = newColorBgra(), ColorBgra toColor = newColorBgra(), BlendMode blendMode = BlendMode.Normal ) : System

Creates a new effect that will render clouds onto an image.

Méthodes protégées

Méthode Description
RenderLine ( ISurface src, ISurface dst, Rectangle roi ) : void

Private Methods

Méthode Description
CloudsEffect ( ) : System
Fade ( double t ) : double
Grad ( int hash, double x, double y ) : double
Noise ( byte ix, byte iy, double x, double y, byte seed ) : double
RenderClouds ( ISurface surface, Rectangle rect, int scale, byte seed, double power, ColorBgra colorFrom, ColorBgra colorTo ) : void

Method Details

CloudsEffect() public méthode

Creates a new effect that will render clouds onto an image.
public CloudsEffect ( int scale = 250, int power = 50, int seed, ColorBgra fromColor = newColorBgra(), ColorBgra toColor = newColorBgra(), BlendMode blendMode = BlendMode.Normal ) : System
scale int The relative size of the clouds. Valid range is 2 - 1000.
power int The power of the clouds. Valid range is 0 - 100.
seed int Seed value for random generator.
fromColor ColorBgra Initial cloud color.
toColor ColorBgra Final cloud color.
blendMode BlendMode Blend mode to use when applying clouds.
Résultat System

RenderLine() protected méthode

protected RenderLine ( ISurface src, ISurface dst, Rectangle roi ) : void
src ISurface
dst ISurface
roi Rectangle
Résultat void