C# Класс Engine.Objects.SurfaceInstance

Наследование: Jurassic.Library.ObjectInstance
Показать файл Открыть проект Примеры использования класса

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

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

Приватные методы

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

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

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

public static Blend ( System.Color c1, System.Color &c2 ) : void
c1 System.Color
c2 System.Color
Результат void

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

public static FastBlend ( int c1, int c2, float weight ) : int
c1 int
c2 int
weight float
Результат int

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

public static FastBlend2 ( int c1, int c2 ) : int
c1 int
c2 int
Результат int

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

public GetBytes ( ) : Byte[]
Результат Byte[]

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

public GetColorAt ( int x, int y ) : System.Color
x int
y int
Результат System.Color

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

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

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

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

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

public SetPixel ( byte buffer, int x, int y, System.Color &c ) : void
buffer byte
x int
y int
c System.Color
Результат void

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

public static SetPixelFast ( byte buffer, int offset, int c2, BlendModes m ) : void
buffer byte
offset int
c2 int
m BlendModes
Результат void

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

public SetPixelFast ( byte buffer, int x, int y, int c ) : void
buffer byte
x int
y int
c int
Результат void

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

public SetReplace ( int x, int y, System.Color dest ) : void
x int
y int
dest System.Color
Результат void

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

public SurfaceInstance ( ScriptEngine parent, byte pixels, int width, int height ) : System
parent ScriptEngine
pixels byte
width int
height int
Результат System

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

public SurfaceInstance ( ScriptEngine parent, int width, int height, System.Color bg_color ) : System
parent ScriptEngine
width int
height int
bg_color System.Color
Результат System

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

public SurfaceInstance ( ScriptEngine parent, string filename ) : System
parent ScriptEngine
filename string
Результат System