C# Class Alsing.Drawing.GDI.GDISurface

Inheritance: GDIObject
Show file Open project: vchelaru/FlatRedBall Class Usage Examples

Protected Properties

Property Type Description
_OldBmp System.IntPtr
_OldBrush System.IntPtr
_OldFont System.IntPtr
_OldPen System.IntPtr
mHeight int
mTabSize int
mWidth int
mhBMP System.IntPtr
mhDC System.IntPtr

Private Properties

Property Type Description

Public Methods

Method Description
Clear ( Color color ) : void
Clear ( GDIBrush brush ) : void
CreateGraphics ( ) : Graphics
DrawFocusRect ( int x, int y, int width, int height ) : void
DrawLine ( Color color, Point p1, Point p2 ) : void
DrawLine ( GDIPen pen, Point p1, Point p2 ) : void
DrawRect ( Color color, int left, int top, int width, int height ) : void
DrawRect ( GDIPen pen, int left, int top, int width, int height ) : void
DrawString ( string Text, int x, int y, int width, int height ) : void
DrawTabbedString ( string Text, int x, int y, int taborigin, int tabsize ) : Size
FillRect ( Color color, int x, int y, int width, int height ) : void
FillRect ( GDIBrush brush, int x, int y, int width, int height ) : void
Flush ( ) : void
GDISurface ( IntPtr hDC ) : System
GDISurface ( int width, int height, Control CompatibleControl, bool BindControl ) : System
GDISurface ( int width, int height, GDISurface surface ) : System
GDISurface ( int width, int height, IntPtr hdc ) : System
InvertRect ( int x, int y, int width, int height ) : void
MeasureString ( string Text ) : Size
MeasureTabbedString ( string Text, int tabsize ) : Size
RenderTo ( GDISurface target, int x, int y ) : void
RenderTo ( GDISurface target, int SourceX, int SourceY, int Width, int Height, int DestX, int DestY ) : void
RenderTo ( IntPtr hdc, int x, int y ) : void
RenderToControl ( int x, int y ) : void
SetBrushOrg ( int x, int y ) : void

Protected Methods

Method Description
Destroy ( ) : void
Init ( int width, int height, IntPtr hdc ) : void

Method Details

Clear() public method

public Clear ( Color color ) : void
color Color
return void

Clear() public method

public Clear ( GDIBrush brush ) : void
brush GDIBrush
return void

CreateGraphics() public method

public CreateGraphics ( ) : Graphics
return System.Drawing.Graphics

Destroy() protected method

protected Destroy ( ) : void
return void

DrawFocusRect() public method

public DrawFocusRect ( int x, int y, int width, int height ) : void
x int
y int
width int
height int
return void

DrawLine() public method

public DrawLine ( Color color, Point p1, Point p2 ) : void
color Color
p1 Point
p2 Point
return void

DrawLine() public method

public DrawLine ( GDIPen pen, Point p1, Point p2 ) : void
pen GDIPen
p1 Point
p2 Point
return void

DrawRect() public method

public DrawRect ( Color color, int left, int top, int width, int height ) : void
color Color
left int
top int
width int
height int
return void

DrawRect() public method

public DrawRect ( GDIPen pen, int left, int top, int width, int height ) : void
pen GDIPen
left int
top int
width int
height int
return void

DrawString() public method

public DrawString ( string Text, int x, int y, int width, int height ) : void
Text string
x int
y int
width int
height int
return void

DrawTabbedString() public method

public DrawTabbedString ( string Text, int x, int y, int taborigin, int tabsize ) : Size
Text string
x int
y int
taborigin int
tabsize int
return System.Drawing.Size

FillRect() public method

public FillRect ( Color color, int x, int y, int width, int height ) : void
color Color
x int
y int
width int
height int
return void

FillRect() public method

public FillRect ( GDIBrush brush, int x, int y, int width, int height ) : void
brush GDIBrush
x int
y int
width int
height int
return void

Flush() public method

public Flush ( ) : void
return void

GDISurface() public method

public GDISurface ( IntPtr hDC ) : System
hDC System.IntPtr
return System

GDISurface() public method

public GDISurface ( int width, int height, Control CompatibleControl, bool BindControl ) : System
width int
height int
CompatibleControl System.Windows.Forms.Control
BindControl bool
return System

GDISurface() public method

public GDISurface ( int width, int height, GDISurface surface ) : System
width int
height int
surface GDISurface
return System

GDISurface() public method

public GDISurface ( int width, int height, IntPtr hdc ) : System
width int
height int
hdc System.IntPtr
return System

Init() protected method

protected Init ( int width, int height, IntPtr hdc ) : void
width int
height int
hdc System.IntPtr
return void

InvertRect() public method

public InvertRect ( int x, int y, int width, int height ) : void
x int
y int
width int
height int
return void

MeasureString() public method

public MeasureString ( string Text ) : Size
Text string
return System.Drawing.Size

MeasureTabbedString() public method

public MeasureTabbedString ( string Text, int tabsize ) : Size
Text string
tabsize int
return System.Drawing.Size

RenderTo() public method

public RenderTo ( GDISurface target, int x, int y ) : void
target GDISurface
x int
y int
return void

RenderTo() public method

public RenderTo ( GDISurface target, int SourceX, int SourceY, int Width, int Height, int DestX, int DestY ) : void
target GDISurface
SourceX int
SourceY int
Width int
Height int
DestX int
DestY int
return void

RenderTo() public method

public RenderTo ( IntPtr hdc, int x, int y ) : void
hdc System.IntPtr
x int
y int
return void

RenderToControl() public method

public RenderToControl ( int x, int y ) : void
x int
y int
return void

SetBrushOrg() public method

public SetBrushOrg ( int x, int y ) : void
x int
y int
return void

Property Details

_OldBmp protected property

protected IntPtr,System _OldBmp
return System.IntPtr

_OldBrush protected property

protected IntPtr,System _OldBrush
return System.IntPtr

_OldFont protected property

protected IntPtr,System _OldFont
return System.IntPtr

_OldPen protected property

protected IntPtr,System _OldPen
return System.IntPtr

mHeight protected property

protected int mHeight
return int

mTabSize protected property

protected int mTabSize
return int

mWidth protected property

protected int mWidth
return int

mhBMP protected property

protected IntPtr,System mhBMP
return System.IntPtr

mhDC protected property

protected IntPtr,System mhDC
return System.IntPtr