C# Class Fusion.Build.ImageUtils.Image

Afficher le fichier Open project: demiurghg/FusionEngine

Méthodes publiques

Méthode Description
Address ( int x, int y, bool wrap = true ) : int

Returns address of pixel with given coordinates and adressing mode

Clamp ( int x, int min, int max ) : int
ComputeGradient ( ) : Image

ComputeGradient

Copy ( int offsetX, int offsetY, Image img ) : void

CosLerp ( Color4 a, Color4 b, float x ) : Color4
CosLerp ( float a, float b, float x ) : float
Desaturate ( Color4 color ) : Color4
Fill ( Color4 color ) : void

Fills image with

FillUniformNoise ( bool monochrome ) : void

Fills image with

Frac ( float x ) : float
Gamma ( float gamma ) : void
GeneratePerlinNoise ( int kernelSize, int numHarmonics, float persistence = 0.5f ) : Image

Generate perline noise

GradientDistortion ( float amount ) : Image

Image ( int width, int height ) : System

Constructor

Image ( int width, int height, Color4 fillColor ) : System

Constructor

Lerp ( float a, float b, float x ) : float
LoadTga ( string path ) : Image
Luminance ( Color4 color ) : float
Normalize ( ) : void
ParticleDeposition ( int sizeX, int sizeY, int iterations, float displace ) : Image

http://www.lighthouse3d.com/opengl/terrain/index.php3?particle

PerpixelProcessing ( Color4>.Func procFunc, float amount = 1 ) : void

Does perpixel processing with given function

PerpixelProcessing ( Func procFunc ) : void

Does perpixel processing with given function

Quantize ( int numLevels, float amount = 1 ) : void
QuantizeValue ( float value, int levels ) : float
Sample ( float x, float y, bool wrap = true, bool useCosineInterpolation = false ) : Color4

Sample with filtering

Sample ( int x, int y, bool wrap = true ) : Color4

Samples image at given coordinates with wraping addressing mode

Saturate ( float saturation ) : void
SaveTga ( Image image, string path ) : void
Wrap ( int x, int wrapSize ) : int
Write ( int u, int v, Color4 value, bool wrap = true ) : void

Writes pixel to image

Method Details

Address() public méthode

Returns address of pixel with given coordinates and adressing mode
public Address ( int x, int y, bool wrap = true ) : int
x int
y int
wrap bool
Résultat int

Clamp() public static méthode

public static Clamp ( int x, int min, int max ) : int
x int
min int
max int
Résultat int

ComputeGradient() public méthode

ComputeGradient
public ComputeGradient ( ) : Image
Résultat Image

Copy() public méthode

public Copy ( int offsetX, int offsetY, Image img ) : void
offsetX int
offsetY int
img Image
Résultat void

CosLerp() public static méthode

public static CosLerp ( Color4 a, Color4 b, float x ) : Color4
a Color4
b Color4
x float
Résultat Color4

CosLerp() public static méthode

public static CosLerp ( float a, float b, float x ) : float
a float
b float
x float
Résultat float

Desaturate() public static méthode

public static Desaturate ( Color4 color ) : Color4
color Color4
Résultat Color4

Fill() public méthode

Fills image with
public Fill ( Color4 color ) : void
color Color4
Résultat void

FillUniformNoise() public méthode

Fills image with
public FillUniformNoise ( bool monochrome ) : void
monochrome bool
Résultat void

Frac() public static méthode

public static Frac ( float x ) : float
x float
Résultat float

Gamma() public méthode

public Gamma ( float gamma ) : void
gamma float
Résultat void

GeneratePerlinNoise() static public méthode

Generate perline noise
static public GeneratePerlinNoise ( int kernelSize, int numHarmonics, float persistence = 0.5f ) : Image
kernelSize int
numHarmonics int
persistence float
Résultat Image

GradientDistortion() public méthode

public GradientDistortion ( float amount ) : Image
amount float
Résultat Image

Image() public méthode

Constructor
public Image ( int width, int height ) : System
width int Image width
height int Image height
Résultat System

Image() public méthode

Constructor
public Image ( int width, int height, Color4 fillColor ) : System
width int Image width
height int Image height
fillColor Color4 Color to fill image
Résultat System

Lerp() public static méthode

public static Lerp ( float a, float b, float x ) : float
a float
b float
x float
Résultat float

LoadTga() public static méthode

public static LoadTga ( string path ) : Image
path string
Résultat Image

Luminance() public static méthode

public static Luminance ( Color4 color ) : float
color Color4
Résultat float

Normalize() public méthode

public Normalize ( ) : void
Résultat void

ParticleDeposition() public static méthode

http://www.lighthouse3d.com/opengl/terrain/index.php3?particle
public static ParticleDeposition ( int sizeX, int sizeY, int iterations, float displace ) : Image
sizeX int
sizeY int
iterations int
displace float
Résultat Image

PerpixelProcessing() public méthode

Does perpixel processing with given function
public PerpixelProcessing ( Color4>.Func procFunc, float amount = 1 ) : void
procFunc Color4>.Func
amount float
Résultat void

PerpixelProcessing() public méthode

Does perpixel processing with given function
public PerpixelProcessing ( Func procFunc ) : void
procFunc Func
Résultat void

Quantize() public méthode

public Quantize ( int numLevels, float amount = 1 ) : void
numLevels int
amount float
Résultat void

QuantizeValue() public static méthode

public static QuantizeValue ( float value, int levels ) : float
value float
levels int
Résultat float

Sample() public méthode

Sample with filtering
public Sample ( float x, float y, bool wrap = true, bool useCosineInterpolation = false ) : Color4
x float value within range 0..1
y float value within range 0..1
wrap bool
useCosineInterpolation bool
Résultat Color4

Sample() public méthode

Samples image at given coordinates with wraping addressing mode
public Sample ( int x, int y, bool wrap = true ) : Color4
x int
y int
wrap bool
Résultat Color4

Saturate() public méthode

public Saturate ( float saturation ) : void
saturation float
Résultat void

SaveTga() public static méthode

public static SaveTga ( Image image, string path ) : void
image Image
path string
Résultat void

Wrap() public static méthode

public static Wrap ( int x, int wrapSize ) : int
x int
wrapSize int
Résultat int

Write() public méthode

Writes pixel to image
public Write ( int u, int v, Color4 value, bool wrap = true ) : void
u int
v int
value Color4
wrap bool
Résultat void