C# Class GraphicsImplementation.GLGraphics

Inheritance: GraphicsBase
Mostra file Open project: filipkunc/GLGraphics Class Usage Examples

Public Methods

Method Description
Clear ( Color color ) : void
Dispose ( ) : void
DrawImage ( Image image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr ) : void
DrawImage ( Image image, RectangleF rect ) : void
DrawLine ( Pen pen, Point pt1, Point pt2 ) : void
DrawLine ( Pen pen, PointF pt1, PointF pt2 ) : void
DrawLines ( Pen pen, Point points ) : void
DrawLines ( Pen pen, PointF points ) : void
DrawPath ( Pen pen, GraphicsPath path ) : void
DrawRectangle ( Pen pen, Rectangle rect ) : void
DrawRectangle ( Pen pen, float x, float y, float width, float height ) : void
FillPath ( Brush brush, GraphicsPath path ) : void
FillRectangle ( Brush brush, Rectangle rect ) : void
FillRectangle ( Brush brush, RectangleF rect ) : void
FillTextBackground_glReadPixels ( Bitmap textBackground, PointF textLocation, SizeF textSize ) : void
GLGraphics ( CanvasEventArgs e ) : System
RegisterHatchStylePattern ( HatchStyle hatchStyle, BitArray pattern_32x32 ) : void
ResetAllCaches ( ) : void
ResetClip ( ) : void
SetClip ( Rectangle rect ) : void
SetClip ( RectangleF rect ) : void

Protected Methods

Method Description
DrawStringImage ( Bitmap bitmap, PointF textLocation, SizeF textSize ) : void
SetTransform ( Matrix matrix ) : void

Private Methods

Method Description
ClearTexturesIfNeeded ( ) : void
ColorsFromBrush ( Brush brush ) : Color[]
CreatePattern_LightDownwardDiagonal ( ) : BitArray
CreatePattern_LightUpwardDiagonal ( ) : BitArray
DrawTexture ( Image image, Action drawAction ) : void
GLGraphics ( ) : System
GetCachedHatchStylePattern ( HatchStyle hatchStyle ) : byte[]
GetCachedTexture ( Image image ) : GLTexture
GetCachedTexture ( TextureBrush textureBrush ) : GLTexture
GetCachedTexture ( object key, Size originalSize, Action draw ) : GLTexture
SetCanvasFromPen ( Pen pen ) : void
SetPatternFromBrush ( Brush brush ) : void

Method Details

Clear() public method

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

Dispose() public method

public Dispose ( ) : void
return void

DrawImage() public method

public DrawImage ( Image image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr ) : void
image Image
destRect System.Drawing.Rectangle
srcX int
srcY int
srcWidth int
srcHeight int
srcUnit GraphicsUnit
imageAttr System.Drawing.Imaging.ImageAttributes
return void

DrawImage() public method

public DrawImage ( Image image, RectangleF rect ) : void
image Image
rect System.Drawing.RectangleF
return void

DrawLine() public method

public DrawLine ( Pen pen, Point pt1, Point pt2 ) : void
pen System.Drawing.Pen
pt1 Point
pt2 Point
return void

DrawLine() public method

public DrawLine ( Pen pen, PointF pt1, PointF pt2 ) : void
pen System.Drawing.Pen
pt1 System.Drawing.PointF
pt2 System.Drawing.PointF
return void

DrawLines() public method

public DrawLines ( Pen pen, Point points ) : void
pen System.Drawing.Pen
points Point
return void

DrawLines() public method

public DrawLines ( Pen pen, PointF points ) : void
pen System.Drawing.Pen
points System.Drawing.PointF
return void

DrawPath() public method

public DrawPath ( Pen pen, GraphicsPath path ) : void
pen System.Drawing.Pen
path System.Drawing.Drawing2D.GraphicsPath
return void

DrawRectangle() public method

public DrawRectangle ( Pen pen, Rectangle rect ) : void
pen System.Drawing.Pen
rect System.Drawing.Rectangle
return void

DrawRectangle() public method

public DrawRectangle ( Pen pen, float x, float y, float width, float height ) : void
pen System.Drawing.Pen
x float
y float
width float
height float
return void

DrawStringImage() protected method

protected DrawStringImage ( Bitmap bitmap, PointF textLocation, SizeF textSize ) : void
bitmap System.Drawing.Bitmap
textLocation System.Drawing.PointF
textSize System.Drawing.SizeF
return void

FillPath() public method

public FillPath ( Brush brush, GraphicsPath path ) : void
brush System.Drawing.Brush
path System.Drawing.Drawing2D.GraphicsPath
return void

FillRectangle() public method

public FillRectangle ( Brush brush, Rectangle rect ) : void
brush System.Drawing.Brush
rect System.Drawing.Rectangle
return void

FillRectangle() public method

public FillRectangle ( Brush brush, RectangleF rect ) : void
brush System.Drawing.Brush
rect System.Drawing.RectangleF
return void

FillTextBackground_glReadPixels() public method

public FillTextBackground_glReadPixels ( Bitmap textBackground, PointF textLocation, SizeF textSize ) : void
textBackground System.Drawing.Bitmap
textLocation System.Drawing.PointF
textSize System.Drawing.SizeF
return void

GLGraphics() public method

public GLGraphics ( CanvasEventArgs e ) : System
e CanvasEventArgs
return System

RegisterHatchStylePattern() public static method

public static RegisterHatchStylePattern ( HatchStyle hatchStyle, BitArray pattern_32x32 ) : void
hatchStyle HatchStyle
pattern_32x32 System.Collections.BitArray
return void

ResetAllCaches() public static method

public static ResetAllCaches ( ) : void
return void

ResetClip() public method

public ResetClip ( ) : void
return void

SetClip() public method

public SetClip ( Rectangle rect ) : void
rect System.Drawing.Rectangle
return void

SetClip() public method

public SetClip ( RectangleF rect ) : void
rect System.Drawing.RectangleF
return void

SetTransform() protected method

protected SetTransform ( Matrix matrix ) : void
matrix Matrix
return void