C# Class PixelFarm.Drawing.Canvas

Datei anzeigen Open project: prepare/HTML-Renderer Class Usage Examples

Public Properties

Property Type Description
dbug_canvasCount int
debug_canvas_id int
debug_releaseCount int
debug_resetCount int

Public Methods

Method Description
ClearSurface ( Color c ) : void
CloseCanvas ( ) : void
DrawImage ( Image image, RectangleF dest ) : void
DrawImage ( Image image, RectangleF dest, RectangleF src ) : void
DrawImages ( Image image, RectangleF destAndSrcPairs ) : void
DrawLine ( float x1, float y1, float x2, float y2 ) : void
DrawPath ( GraphicsPath gfxPath ) : void
DrawRectangle ( Color color, float left, float top, float width, float height ) : void
DrawText ( char buffer, Rectangle logicalTextBox, int textAlignment ) : void
DrawText ( char buffer, int x, int y ) : void
DrawText ( char buffer, int startAt, int len, Rectangle logicalTextBox, int textAlignment ) : void
FillPath ( Brush brush, GraphicsPath gfxPath ) : void
FillPath ( Color color, GraphicsPath gfxPath ) : void
FillPolygon ( Brush brush, PointF points ) : void
FillPolygon ( Color color, PointF points ) : void
FillRectangle ( Brush brush, float left, float top, float width, float height ) : void
FillRectangle ( Color color, float left, float top, float width, float height ) : void
Invalidate ( Rectangle rect ) : void
OffsetCanvasOrigin ( int dx, int dy ) : void
OffsetCanvasOriginX ( int dx ) : void
OffsetCanvasOriginY ( int dy ) : void
PopClipAreaRect ( ) : void
PushClipAreaRect ( int width, int height, Rectangle &updateArea ) : bool
RenderTo ( System destHdc, int sourceX, int sourceY, Rectangle destArea ) : void
ResetInvalidateArea ( ) : void
SetCanvasOrigin ( int x, int y ) : void
SetClipRect ( Rectangle clip, CombineMode combineMode = CombineMode.Replace ) : void
dbug_DrawCrossRect ( Color color, Rectangle rect ) : void
dbug_DrawRuler ( int x ) : void

Method Details

ClearSurface() public abstract method

public abstract ClearSurface ( Color c ) : void
c Color
return void

CloseCanvas() public abstract method

public abstract CloseCanvas ( ) : void
return void

DrawImage() public abstract method

public abstract DrawImage ( Image image, RectangleF dest ) : void
image Image
dest RectangleF
return void

DrawImage() public abstract method

public abstract DrawImage ( Image image, RectangleF dest, RectangleF src ) : void
image Image
dest RectangleF
src RectangleF
return void

DrawImages() public abstract method

public abstract DrawImages ( Image image, RectangleF destAndSrcPairs ) : void
image Image
destAndSrcPairs RectangleF
return void

DrawLine() public abstract method

public abstract DrawLine ( float x1, float y1, float x2, float y2 ) : void
x1 float
y1 float
x2 float
y2 float
return void

DrawPath() public abstract method

public abstract DrawPath ( GraphicsPath gfxPath ) : void
gfxPath GraphicsPath
return void

DrawRectangle() public abstract method

public abstract DrawRectangle ( Color color, float left, float top, float width, float height ) : void
color Color
left float
top float
width float
height float
return void

DrawText() public abstract method

public abstract DrawText ( char buffer, Rectangle logicalTextBox, int textAlignment ) : void
buffer char
logicalTextBox Rectangle
textAlignment int
return void

DrawText() public abstract method

public abstract DrawText ( char buffer, int x, int y ) : void
buffer char
x int
y int
return void

DrawText() public abstract method

public abstract DrawText ( char buffer, int startAt, int len, Rectangle logicalTextBox, int textAlignment ) : void
buffer char
startAt int
len int
logicalTextBox Rectangle
textAlignment int
return void

FillPath() public abstract method

public abstract FillPath ( Brush brush, GraphicsPath gfxPath ) : void
brush Brush
gfxPath GraphicsPath
return void

FillPath() public abstract method

public abstract FillPath ( Color color, GraphicsPath gfxPath ) : void
color Color
gfxPath GraphicsPath
return void

FillPolygon() public abstract method

public abstract FillPolygon ( Brush brush, PointF points ) : void
brush Brush
points PointF
return void

FillPolygon() public abstract method

public abstract FillPolygon ( Color color, PointF points ) : void
color Color
points PointF
return void

FillRectangle() public abstract method

public abstract FillRectangle ( Brush brush, float left, float top, float width, float height ) : void
brush Brush
left float
top float
width float
height float
return void

FillRectangle() public abstract method

public abstract FillRectangle ( Color color, float left, float top, float width, float height ) : void
color Color
left float
top float
width float
height float
return void

Invalidate() public abstract method

public abstract Invalidate ( Rectangle rect ) : void
rect Rectangle
return void

OffsetCanvasOrigin() public method

public OffsetCanvasOrigin ( int dx, int dy ) : void
dx int
dy int
return void

OffsetCanvasOriginX() public method

public OffsetCanvasOriginX ( int dx ) : void
dx int
return void

OffsetCanvasOriginY() public method

public OffsetCanvasOriginY ( int dy ) : void
dy int
return void

PopClipAreaRect() public abstract method

public abstract PopClipAreaRect ( ) : void
return void

PushClipAreaRect() public abstract method

public abstract PushClipAreaRect ( int width, int height, Rectangle &updateArea ) : bool
width int
height int
updateArea Rectangle
return bool

RenderTo() public abstract method

public abstract RenderTo ( System destHdc, int sourceX, int sourceY, Rectangle destArea ) : void
destHdc System
sourceX int
sourceY int
destArea Rectangle
return void

ResetInvalidateArea() public abstract method

public abstract ResetInvalidateArea ( ) : void
return void

SetCanvasOrigin() public abstract method

public abstract SetCanvasOrigin ( int x, int y ) : void
x int
y int
return void

SetClipRect() public abstract method

public abstract SetClipRect ( Rectangle clip, CombineMode combineMode = CombineMode.Replace ) : void
clip Rectangle
combineMode CombineMode
return void

dbug_DrawCrossRect() public abstract method

public abstract dbug_DrawCrossRect ( Color color, Rectangle rect ) : void
color Color
rect Rectangle
return void

dbug_DrawRuler() public abstract method

public abstract dbug_DrawRuler ( int x ) : void
x int
return void

Property Details

dbug_canvasCount public_oe static_oe property

public static int dbug_canvasCount
return int

debug_canvas_id public_oe property

public int debug_canvas_id
return int

debug_releaseCount public_oe property

public int debug_releaseCount
return int

debug_resetCount public_oe property

public int debug_resetCount
return int