C# Класс Fusion.Build.ImageUtils.Image

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

Address() публичный Метод

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
Результат int

Clamp() публичный статический Метод

public static Clamp ( int x, int min, int max ) : int
x int
min int
max int
Результат int

ComputeGradient() публичный Метод

ComputeGradient
public ComputeGradient ( ) : Image
Результат Image

Copy() публичный Метод

public Copy ( int offsetX, int offsetY, Image img ) : void
offsetX int
offsetY int
img Image
Результат void

CosLerp() публичный статический Метод

public static CosLerp ( Color4 a, Color4 b, float x ) : Color4
a Color4
b Color4
x float
Результат Color4

CosLerp() публичный статический Метод

public static CosLerp ( float a, float b, float x ) : float
a float
b float
x float
Результат float

Desaturate() публичный статический Метод

public static Desaturate ( Color4 color ) : Color4
color Color4
Результат Color4

Fill() публичный Метод

Fills image with
public Fill ( Color4 color ) : void
color Color4
Результат void

FillUniformNoise() публичный Метод

Fills image with
public FillUniformNoise ( bool monochrome ) : void
monochrome bool
Результат void

Frac() публичный статический Метод

public static Frac ( float x ) : float
x float
Результат float

Gamma() публичный Метод

public Gamma ( float gamma ) : void
gamma float
Результат void

GeneratePerlinNoise() статический публичный Метод

Generate perline noise
static public GeneratePerlinNoise ( int kernelSize, int numHarmonics, float persistence = 0.5f ) : Image
kernelSize int
numHarmonics int
persistence float
Результат Image

GradientDistortion() публичный Метод

public GradientDistortion ( float amount ) : Image
amount float
Результат Image

Image() публичный Метод

Constructor
public Image ( int width, int height ) : System
width int Image width
height int Image height
Результат System

Image() публичный Метод

Constructor
public Image ( int width, int height, Color4 fillColor ) : System
width int Image width
height int Image height
fillColor Color4 Color to fill image
Результат System

Lerp() публичный статический Метод

public static Lerp ( float a, float b, float x ) : float
a float
b float
x float
Результат float

LoadTga() публичный статический Метод

public static LoadTga ( string path ) : Image
path string
Результат Image

Luminance() публичный статический Метод

public static Luminance ( Color4 color ) : float
color Color4
Результат float

Normalize() публичный Метод

public Normalize ( ) : void
Результат void

ParticleDeposition() публичный статический Метод

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
Результат Image

PerpixelProcessing() публичный Метод

Does perpixel processing with given function
public PerpixelProcessing ( Color4>.Func procFunc, float amount = 1 ) : void
procFunc Color4>.Func
amount float
Результат void

PerpixelProcessing() публичный Метод

Does perpixel processing with given function
public PerpixelProcessing ( Func procFunc ) : void
procFunc Func
Результат void

Quantize() публичный Метод

public Quantize ( int numLevels, float amount = 1 ) : void
numLevels int
amount float
Результат void

QuantizeValue() публичный статический Метод

public static QuantizeValue ( float value, int levels ) : float
value float
levels int
Результат float

Sample() публичный Метод

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
Результат Color4

Sample() публичный Метод

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
Результат Color4

Saturate() публичный Метод

public Saturate ( float saturation ) : void
saturation float
Результат void

SaveTga() публичный статический Метод

public static SaveTga ( Image image, string path ) : void
image Image
path string
Результат void

Wrap() публичный статический Метод

public static Wrap ( int x, int wrapSize ) : int
x int
wrapSize int
Результат int

Write() публичный Метод

Writes pixel to image
public Write ( int u, int v, Color4 value, bool wrap = true ) : void
u int
v int
value Color4
wrap bool
Результат void