C# Class winmaped2.Render

Mostra file Open project: Bananattack/verge3 Class Usage Examples

Public Methods

Method Description
createBitmap ( int width, int height ) : Bitmap
makeColor ( int r, int g, int b ) : int
render ( pr2 dest, int x, int y, pr2 src, bool drawZero ) : void
renderAlpha ( pr2 dest, int x, int y, pr2 src, int opacity, bool drawZero ) : void
renderBox ( pr2 img, int x0, int y0, int w, int h, int color, Render op ) : void
renderColorPicker ( pr2 img, float h ) : void
renderColoredStippleTile ( pr2 img, int x0, int y0, int color1, int color2 ) : void
renderColoredTile ( pr2 img, int x0, int y0, int color ) : void
renderColoredTile_50Alpha ( pr2 img, int x0, int y0, int color ) : void
renderNumber ( pr2 img, int x0, int y0, int number, int color ) : void
renderObsTile ( pr2 img, int x0, int y0, pr2 src, bool clearbuf, int color ) : void
renderObsTileFast ( pr2 img, int x0, int y0, pr2 src, bool clearbuf ) : void
renderSolid ( pr2 img, int x0, int y0, int w, int h, int color, Render op ) : void

Private Methods

Method Description
HsbIntermediateValuesToRgbComponent ( float m1, float m2, float h ) : int
HsbToColor ( float h, float s, float b ) : int
Render ( ) : System
clip ( int &x0, int &y0, int &xlen, int &ylen, int &s, int &d, int spitch, int dpitch, int cx1, int cx2, int cy1, int cy2 ) : bool
handlePixel ( int src, int &dest, int op, bool mixFlag, bool drawZero ) : void
handlePixelAlpha ( int src, int &dest, int opacity, bool drawZero ) : void
mixPixel ( int src, int dest, int op ) : int

Method Details

createBitmap() public static method

public static createBitmap ( int width, int height ) : Bitmap
width int
height int
return System.Drawing.Bitmap

makeColor() public static method

public static makeColor ( int r, int g, int b ) : int
r int
g int
b int
return int

render() public static method

public static render ( pr2 dest, int x, int y, pr2 src, bool drawZero ) : void
dest pr2
x int
y int
src pr2
drawZero bool
return void

renderAlpha() public static method

public static renderAlpha ( pr2 dest, int x, int y, pr2 src, int opacity, bool drawZero ) : void
dest pr2
x int
y int
src pr2
opacity int
drawZero bool
return void

renderBox() public static method

public static renderBox ( pr2 img, int x0, int y0, int w, int h, int color, Render op ) : void
img pr2
x0 int
y0 int
w int
h int
color int
op Render
return void

renderColorPicker() public static method

public static renderColorPicker ( pr2 img, float h ) : void
img pr2
h float
return void

renderColoredStippleTile() public static method

public static renderColoredStippleTile ( pr2 img, int x0, int y0, int color1, int color2 ) : void
img pr2
x0 int
y0 int
color1 int
color2 int
return void

renderColoredTile() public static method

public static renderColoredTile ( pr2 img, int x0, int y0, int color ) : void
img pr2
x0 int
y0 int
color int
return void

renderColoredTile_50Alpha() public static method

public static renderColoredTile_50Alpha ( pr2 img, int x0, int y0, int color ) : void
img pr2
x0 int
y0 int
color int
return void

renderNumber() public static method

public static renderNumber ( pr2 img, int x0, int y0, int number, int color ) : void
img pr2
x0 int
y0 int
number int
color int
return void

renderObsTile() public static method

public static renderObsTile ( pr2 img, int x0, int y0, pr2 src, bool clearbuf, int color ) : void
img pr2
x0 int
y0 int
src pr2
clearbuf bool
color int
return void

renderObsTileFast() public static method

public static renderObsTileFast ( pr2 img, int x0, int y0, pr2 src, bool clearbuf ) : void
img pr2
x0 int
y0 int
src pr2
clearbuf bool
return void

renderSolid() public static method

public static renderSolid ( pr2 img, int x0, int y0, int w, int h, int color, Render op ) : void
img pr2
x0 int
y0 int
w int
h int
color int
op Render
return void