C# 클래스 Fusion.Pipeline.Utils.Image

파일 보기 프로젝트 열기: demiurghg/FusionEngine

공개 메소드들

메소드 설명
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