C# Class Procedurality.Layer

Mostrar archivo Open project: N3X15/VoxelSim Class Usage Examples

Public Properties

Property Type Description
a Channel
b Channel
g Channel
r Channel

Public Methods

Method Description
Layer ( Channel r, Channel g, Channel b ) : System
Layer ( Channel r, Channel g, Channel b, Channel a ) : System
Layer ( Layer rgb, Channel a ) : System
Layer ( int width, int height ) : System
abs ( ) : Layer
add ( float add ) : Layer
add ( float r, float g, float b ) : Layer
addAlpha ( ) : void
addAlpha ( Channel alpha ) : void
addClip ( float r, float g, float b ) : Layer
addClip ( float r, float g, float b, float a ) : Layer
brightness ( float brightness ) : Layer
brightness ( float r, float g, float b ) : Layer
bump ( Channel bumpmap, float lx, float ly, float shadow, float light_r, float light_g, float light_b, float ambient_r, float ambient_g, float ambient_b ) : Layer
bumpFast ( Channel bumpmap, float lx, float light, float ambient ) : Layer
bumpSpecular ( Channel bumpmap, float lx, float ly, float lz, float shadow, float light_r, float light_g, float light_b, int specular ) : Layer
clip ( ) : Layer
contrast ( float contrast ) : Layer
contrast ( float r, float g, float b ) : Layer
convolution ( float filter, float divisor, float offset ) : Layer
copy ( ) : Layer
crop ( int x_lo, int y_lo, int x_hi, int y_hi ) : Layer
cropWrap ( int x_lo, int y_lo, int x_hi, int y_hi ) : Layer
fill ( float value ) : void
fill ( float r, float g, float b ) : void
fill ( float r, float g, float b, float a ) : void
findMax ( ) : float
findMin ( ) : float
flipH ( ) : Layer
flipV ( ) : Layer
gamma ( float gamma ) : Layer
gamma ( float r, float g, float b ) : Layer
gamma2 ( ) : Layer
gamma4 ( ) : Layer
gamma8 ( ) : Layer
getA ( ) : Channel
getB ( ) : Channel
getG ( ) : Channel
getHeight ( ) : int
getR ( ) : Channel
getWidth ( ) : int
grow ( float r, float g, float b, int radius ) : Layer
hue ( float hue ) : Layer
hueRotation ( float min, float max, float new_min, float new_max ) : Layer
invert ( ) : Layer
layerAdd ( Layer layer ) : Layer
layerAverage ( Layer layer ) : Layer
layerBlend ( Layer layer ) : Layer
layerBlend ( Layer rgb, Channel a ) : Layer
layerBlend ( Layer layer, float alpha ) : Layer
layerBrightest ( Layer layer ) : Layer
layerDarkest ( Layer layer ) : Layer
layerDifference ( Layer layer ) : Layer
layerMultiply ( Layer layer ) : Layer
layerSubtract ( Layer layer ) : Layer
lineart ( ) : Layer
multiply ( float factor ) : Layer
multiply ( float r, float g, float b ) : Layer
multiply ( float r, float g, float b, float a ) : Layer
normalize ( ) : Layer
normalize ( float new_min, float new_max ) : Layer
normalize ( float min, float max, float new_min, float new_max ) : Layer
offset ( int x_offset, int y_offset ) : Layer
place ( Layer sprite, int x_offset, int y_offset ) : Layer
putPixel ( int x, int y, float r, float g, float b ) : void
putPixel ( int x, int y, float r, float g, float b, float a ) : void
putPixelClip ( int x, int y, float r, float g, float b ) : void
putPixelClip ( int x, int y, float r, float g, float b, float a ) : void
putPixelWrap ( int x, int y, float r, float g, float b ) : void
putPixelWrap ( int x, int y, float r, float g, float b, float a ) : void
rotate ( int degrees ) : Layer
saturation ( float saturation ) : Layer
saveAsPNG ( String filename ) : void
scale ( int new_width, int new_height ) : Layer
scaleCubic ( int new_width, int new_height ) : Layer
scaleFast ( int new_width, int new_height ) : Layer
sharpen ( int radius ) : Layer
shear ( float offset ) : Layer
smooth ( int radius ) : Layer
threshold ( float start, float end ) : Layer
tile ( int new_width, int new_height ) : Layer
tileDouble ( ) : Layer
toHSV ( ) : Layer
toRGB ( ) : Layer

Method Details

Layer() public method

public Layer ( Channel r, Channel g, Channel b ) : System
r Channel
g Channel
b Channel
return System

Layer() public method

public Layer ( Channel r, Channel g, Channel b, Channel a ) : System
r Channel
g Channel
b Channel
a Channel
return System

Layer() public method

public Layer ( Layer rgb, Channel a ) : System
rgb Layer
a Channel
return System

Layer() public method

public Layer ( int width, int height ) : System
width int
height int
return System

abs() public method

public abs ( ) : Layer
return Layer

add() public method

public add ( float add ) : Layer
add float
return Layer

add() public method

public add ( float r, float g, float b ) : Layer
r float
g float
b float
return Layer

addAlpha() public method

public addAlpha ( ) : void
return void

addAlpha() public method

public addAlpha ( Channel alpha ) : void
alpha Channel
return void

addClip() public method

public addClip ( float r, float g, float b ) : Layer
r float
g float
b float
return Layer

addClip() public method

public addClip ( float r, float g, float b, float a ) : Layer
r float
g float
b float
a float
return Layer

brightness() public method

public brightness ( float brightness ) : Layer
brightness float
return Layer

brightness() public method

public brightness ( float r, float g, float b ) : Layer
r float
g float
b float
return Layer

bump() public method

public bump ( Channel bumpmap, float lx, float ly, float shadow, float light_r, float light_g, float light_b, float ambient_r, float ambient_g, float ambient_b ) : Layer
bumpmap Channel
lx float
ly float
shadow float
light_r float
light_g float
light_b float
ambient_r float
ambient_g float
ambient_b float
return Layer

bumpFast() public method

public bumpFast ( Channel bumpmap, float lx, float light, float ambient ) : Layer
bumpmap Channel
lx float
light float
ambient float
return Layer

bumpSpecular() public method

public bumpSpecular ( Channel bumpmap, float lx, float ly, float lz, float shadow, float light_r, float light_g, float light_b, int specular ) : Layer
bumpmap Channel
lx float
ly float
lz float
shadow float
light_r float
light_g float
light_b float
specular int
return Layer

clip() public method

public clip ( ) : Layer
return Layer

contrast() public method

public contrast ( float contrast ) : Layer
contrast float
return Layer

contrast() public method

public contrast ( float r, float g, float b ) : Layer
r float
g float
b float
return Layer

convolution() public method

public convolution ( float filter, float divisor, float offset ) : Layer
filter float
divisor float
offset float
return Layer

copy() public method

public copy ( ) : Layer
return Layer

crop() public method

public crop ( int x_lo, int y_lo, int x_hi, int y_hi ) : Layer
x_lo int
y_lo int
x_hi int
y_hi int
return Layer

cropWrap() public method

public cropWrap ( int x_lo, int y_lo, int x_hi, int y_hi ) : Layer
x_lo int
y_lo int
x_hi int
y_hi int
return Layer

fill() public method

public fill ( float value ) : void
value float
return void

fill() public method

public fill ( float r, float g, float b ) : void
r float
g float
b float
return void

fill() public method

public fill ( float r, float g, float b, float a ) : void
r float
g float
b float
a float
return void

findMax() public method

public findMax ( ) : float
return float

findMin() public method

public findMin ( ) : float
return float

flipH() public method

public flipH ( ) : Layer
return Layer

flipV() public method

public flipV ( ) : Layer
return Layer

gamma() public method

public gamma ( float gamma ) : Layer
gamma float
return Layer

gamma() public method

public gamma ( float r, float g, float b ) : Layer
r float
g float
b float
return Layer

gamma2() public method

public gamma2 ( ) : Layer
return Layer

gamma4() public method

public gamma4 ( ) : Layer
return Layer

gamma8() public method

public gamma8 ( ) : Layer
return Layer

getA() public method

public getA ( ) : Channel
return Channel

getB() public method

public getB ( ) : Channel
return Channel

getG() public method

public getG ( ) : Channel
return Channel

getHeight() public method

public getHeight ( ) : int
return int

getR() public method

public getR ( ) : Channel
return Channel

getWidth() public method

public getWidth ( ) : int
return int

grow() public method

public grow ( float r, float g, float b, int radius ) : Layer
r float
g float
b float
radius int
return Layer

hue() public method

public hue ( float hue ) : Layer
hue float
return Layer

hueRotation() public method

public hueRotation ( float min, float max, float new_min, float new_max ) : Layer
min float
max float
new_min float
new_max float
return Layer

invert() public method

public invert ( ) : Layer
return Layer

layerAdd() public method

public layerAdd ( Layer layer ) : Layer
layer Layer
return Layer

layerAverage() public method

public layerAverage ( Layer layer ) : Layer
layer Layer
return Layer

layerBlend() public method

public layerBlend ( Layer layer ) : Layer
layer Layer
return Layer

layerBlend() public method

public layerBlend ( Layer rgb, Channel a ) : Layer
rgb Layer
a Channel
return Layer

layerBlend() public method

public layerBlend ( Layer layer, float alpha ) : Layer
layer Layer
alpha float
return Layer

layerBrightest() public method

public layerBrightest ( Layer layer ) : Layer
layer Layer
return Layer

layerDarkest() public method

public layerDarkest ( Layer layer ) : Layer
layer Layer
return Layer

layerDifference() public method

public layerDifference ( Layer layer ) : Layer
layer Layer
return Layer

layerMultiply() public method

public layerMultiply ( Layer layer ) : Layer
layer Layer
return Layer

layerSubtract() public method

public layerSubtract ( Layer layer ) : Layer
layer Layer
return Layer

lineart() public method

public lineart ( ) : Layer
return Layer

multiply() public method

public multiply ( float factor ) : Layer
factor float
return Layer

multiply() public method

public multiply ( float r, float g, float b ) : Layer
r float
g float
b float
return Layer

multiply() public method

public multiply ( float r, float g, float b, float a ) : Layer
r float
g float
b float
a float
return Layer

normalize() public method

public normalize ( ) : Layer
return Layer

normalize() public method

public normalize ( float new_min, float new_max ) : Layer
new_min float
new_max float
return Layer

normalize() public method

public normalize ( float min, float max, float new_min, float new_max ) : Layer
min float
max float
new_min float
new_max float
return Layer

offset() public method

public offset ( int x_offset, int y_offset ) : Layer
x_offset int
y_offset int
return Layer

place() public method

public place ( Layer sprite, int x_offset, int y_offset ) : Layer
sprite Layer
x_offset int
y_offset int
return Layer

putPixel() public method

public putPixel ( int x, int y, float r, float g, float b ) : void
x int
y int
r float
g float
b float
return void

putPixel() public method

public putPixel ( int x, int y, float r, float g, float b, float a ) : void
x int
y int
r float
g float
b float
a float
return void

putPixelClip() public method

public putPixelClip ( int x, int y, float r, float g, float b ) : void
x int
y int
r float
g float
b float
return void

putPixelClip() public method

public putPixelClip ( int x, int y, float r, float g, float b, float a ) : void
x int
y int
r float
g float
b float
a float
return void

putPixelWrap() public method

public putPixelWrap ( int x, int y, float r, float g, float b ) : void
x int
y int
r float
g float
b float
return void

putPixelWrap() public method

public putPixelWrap ( int x, int y, float r, float g, float b, float a ) : void
x int
y int
r float
g float
b float
a float
return void

rotate() public method

public rotate ( int degrees ) : Layer
degrees int
return Layer

saturation() public method

public saturation ( float saturation ) : Layer
saturation float
return Layer

saveAsPNG() public method

public saveAsPNG ( String filename ) : void
filename String
return void

scale() public method

public scale ( int new_width, int new_height ) : Layer
new_width int
new_height int
return Layer

scaleCubic() public method

public scaleCubic ( int new_width, int new_height ) : Layer
new_width int
new_height int
return Layer

scaleFast() public method

public scaleFast ( int new_width, int new_height ) : Layer
new_width int
new_height int
return Layer

sharpen() public method

public sharpen ( int radius ) : Layer
radius int
return Layer

shear() public method

public shear ( float offset ) : Layer
offset float
return Layer

smooth() public method

public smooth ( int radius ) : Layer
radius int
return Layer

threshold() public method

public threshold ( float start, float end ) : Layer
start float
end float
return Layer

tile() public method

public tile ( int new_width, int new_height ) : Layer
new_width int
new_height int
return Layer

tileDouble() public method

public tileDouble ( ) : Layer
return Layer

toHSV() public method

public toHSV ( ) : Layer
return Layer

toRGB() public method

public toRGB ( ) : Layer
return Layer

Property Details

a public_oe property

public Channel,Procedurality a
return Channel

b public_oe property

public Channel,Procedurality b
return Channel

g public_oe property

public Channel,Procedurality g
return Channel

r public_oe property

public Channel,Procedurality r
return Channel