C# Class winmaped2.Render

Afficher le fichier Open project: Bananattack/verge3 Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static createBitmap ( int width, int height ) : Bitmap
width int
height int
Résultat System.Drawing.Bitmap

makeColor() public static méthode

public static makeColor ( int r, int g, int b ) : int
r int
g int
b int
Résultat int

render() public static méthode

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

renderAlpha() public static méthode

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
Résultat void

renderBox() public static méthode

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
Résultat void

renderColorPicker() public static méthode

public static renderColorPicker ( pr2 img, float h ) : void
img pr2
h float
Résultat void

renderColoredStippleTile() public static méthode

public static renderColoredStippleTile ( pr2 img, int x0, int y0, int color1, int color2 ) : void
img pr2
x0 int
y0 int
color1 int
color2 int
Résultat void

renderColoredTile() public static méthode

public static renderColoredTile ( pr2 img, int x0, int y0, int color ) : void
img pr2
x0 int
y0 int
color int
Résultat void

renderColoredTile_50Alpha() public static méthode

public static renderColoredTile_50Alpha ( pr2 img, int x0, int y0, int color ) : void
img pr2
x0 int
y0 int
color int
Résultat void

renderNumber() public static méthode

public static renderNumber ( pr2 img, int x0, int y0, int number, int color ) : void
img pr2
x0 int
y0 int
number int
color int
Résultat void

renderObsTile() public static méthode

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
Résultat void

renderObsTileFast() public static méthode

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

renderSolid() public static méthode

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
Résultat void