C# Class Engine.Objects.SurfaceInstance

Inheritance: Jurassic.Library.ObjectInstance
ファイルを表示 Open project: Radnen/sphere-sfml Class Usage Examples

Public Methods

Method Description
Blend ( System.Color c1, System.Color &c2 ) : void
FastBlend ( int c1, int c2, float weight ) : int
FastBlend2 ( int c1, int c2 ) : int
GetBytes ( ) : Byte[]
GetColorAt ( int x, int y ) : System.Color
GradientLine ( byte buf, int x1, int y1, int x2, int y2, int c1, int c2 ) : void
Line ( byte buf, int x1, int y1, int x2, int y2, int c ) : void
SetPixel ( byte buffer, int x, int y, System.Color &c ) : void
SetPixelFast ( byte buffer, int offset, int c2, BlendModes m ) : void
SetPixelFast ( byte buffer, int x, int y, int c ) : void
SetReplace ( int x, int y, System.Color dest ) : void
SurfaceInstance ( ScriptEngine parent, byte pixels, int width, int height ) : System
SurfaceInstance ( ScriptEngine parent, int width, int height, System.Color bg_color ) : System
SurfaceInstance ( ScriptEngine parent, string filename ) : System

Private Methods

Method Description
Blit ( double x, double y ) : void
BlitImage ( int x, int y, ImageInstance instance ) : void
BlitMaskSurface ( SurfaceInstance surf, int ox, int oy, ColorInstance mask ) : void
BlitSurface ( SurfaceInstance surf, int x, int y ) : void
Clone ( ) : SurfaceInstance
CloneSection ( int ox, int oy, int w, int h ) : SurfaceInstance
ColorBlend ( System.Color &source, System.Color &dest, System.Color &out_c ) : void
CreateImage ( ) : ImageInstance
DrawImage ( byte buf, int ox, int oy, byte pixels, int width, int height ) : void
DrawImage ( int ox, int oy, byte pixels, int width, int height ) : void
DrawImageMask ( byte buf, int ox, int oy, byte pixels, int width, int height, int mask ) : void
DrawText ( FontInstance font, int x, int y, string text ) : void
FilledCircle ( int ox, int oy, int r, ColorInstance color, [ antialias = false ) : void
FlipHorizontally ( ) : void
FlipVertically ( ) : void
GetPixel ( int x, int y ) : ColorInstance
GradientLine ( int x1, int y1, int x2, int y2, ColorInstance col1, ColorInstance col2 ) : void
GradientRectangle ( int ox, int oy, int w, int h, ColorInstance col1, ColorInstance col2, ColorInstance col3, ColorInstance col4 ) : void
Init ( ) : void
Line ( int x1, int y1, int x2, int y2, ColorInstance color ) : void
LineSeries ( ArrayInstance points, ColorInstance color ) : void
OutlinedCircle ( int ox, int oy, int r, ColorInstance color, [ antialias = false ) : void
OutlinedRectangle ( int x, int y, int w, int h, ColorInstance color ) : void
PointSeries ( ArrayInstance array, ColorInstance color ) : void
Rectangle ( int ox, int oy, int w, int h, ColorInstance color ) : void
ReplaceColor ( ColorInstance colorA, ColorInstance colorB ) : void
Rescale ( int width, int height ) : SurfaceInstance
Resize ( int width, int height ) : SurfaceInstance
Rotate ( double radians, bool resize ) : void
RotateX ( int x, int y, double rad, int m_x, int m_y ) : int
RotateY ( int x, int y, double rad, int m_x, int m_y ) : int
Save ( string filename ) : void
SetAddBlend ( int x, int y, System.Color dest ) : void
SetAlpha ( int v ) : void
SetAlphaBlend ( int x, int y, System.Color dest ) : void
SetBlendMode ( int mode ) : void
SetPixel ( int x, int y, ColorInstance color ) : void
SetSubtractBlend ( int x, int y, System.Color dest ) : void
ToString ( ) : string
Update ( ) : void
WeightedBlend ( System.Color &source, System.Color &dest, double w, System.Color &out_c ) : void

Method Details

Blend() public static method

public static Blend ( System.Color c1, System.Color &c2 ) : void
c1 System.Color
c2 System.Color
return void

FastBlend() public static method

public static FastBlend ( int c1, int c2, float weight ) : int
c1 int
c2 int
weight float
return int

FastBlend2() public static method

public static FastBlend2 ( int c1, int c2 ) : int
c1 int
c2 int
return int

GetBytes() public method

public GetBytes ( ) : Byte[]
return Byte[]

GetColorAt() public method

public GetColorAt ( int x, int y ) : System.Color
x int
y int
return System.Color

GradientLine() public method

public GradientLine ( byte buf, int x1, int y1, int x2, int y2, int c1, int c2 ) : void
buf byte
x1 int
y1 int
x2 int
y2 int
c1 int
c2 int
return void

Line() public method

public Line ( byte buf, int x1, int y1, int x2, int y2, int c ) : void
buf byte
x1 int
y1 int
x2 int
y2 int
c int
return void

SetPixel() public method

public SetPixel ( byte buffer, int x, int y, System.Color &c ) : void
buffer byte
x int
y int
c System.Color
return void

SetPixelFast() public static method

public static SetPixelFast ( byte buffer, int offset, int c2, BlendModes m ) : void
buffer byte
offset int
c2 int
m BlendModes
return void

SetPixelFast() public method

public SetPixelFast ( byte buffer, int x, int y, int c ) : void
buffer byte
x int
y int
c int
return void

SetReplace() public method

public SetReplace ( int x, int y, System.Color dest ) : void
x int
y int
dest System.Color
return void

SurfaceInstance() public method

public SurfaceInstance ( ScriptEngine parent, byte pixels, int width, int height ) : System
parent ScriptEngine
pixels byte
width int
height int
return System

SurfaceInstance() public method

public SurfaceInstance ( ScriptEngine parent, int width, int height, System.Color bg_color ) : System
parent ScriptEngine
width int
height int
bg_color System.Color
return System

SurfaceInstance() public method

public SurfaceInstance ( ScriptEngine parent, string filename ) : System
parent ScriptEngine
filename string
return System