C# Class GraphicsImplementation.GLGraphics

Inheritance: GraphicsBase
Afficher le fichier Open project: filipkunc/GLGraphics Class Usage Examples

Méthodes publiques

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

Méthodes protégées

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

Private Methods

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

public Clear ( Color color ) : void
color Color
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

DrawImage() public méthode

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

DrawImage() public méthode

public DrawImage ( Image image, RectangleF rect ) : void
image Image
rect System.Drawing.RectangleF
Résultat void

DrawLine() public méthode

public DrawLine ( Pen pen, Point pt1, Point pt2 ) : void
pen System.Drawing.Pen
pt1 Point
pt2 Point
Résultat void

DrawLine() public méthode

public DrawLine ( Pen pen, PointF pt1, PointF pt2 ) : void
pen System.Drawing.Pen
pt1 System.Drawing.PointF
pt2 System.Drawing.PointF
Résultat void

DrawLines() public méthode

public DrawLines ( Pen pen, Point points ) : void
pen System.Drawing.Pen
points Point
Résultat void

DrawLines() public méthode

public DrawLines ( Pen pen, PointF points ) : void
pen System.Drawing.Pen
points System.Drawing.PointF
Résultat void

DrawPath() public méthode

public DrawPath ( Pen pen, GraphicsPath path ) : void
pen System.Drawing.Pen
path System.Drawing.Drawing2D.GraphicsPath
Résultat void

DrawRectangle() public méthode

public DrawRectangle ( Pen pen, Rectangle rect ) : void
pen System.Drawing.Pen
rect System.Drawing.Rectangle
Résultat void

DrawRectangle() public méthode

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

DrawStringImage() protected méthode

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

FillPath() public méthode

public FillPath ( Brush brush, GraphicsPath path ) : void
brush System.Drawing.Brush
path System.Drawing.Drawing2D.GraphicsPath
Résultat void

FillRectangle() public méthode

public FillRectangle ( Brush brush, Rectangle rect ) : void
brush System.Drawing.Brush
rect System.Drawing.Rectangle
Résultat void

FillRectangle() public méthode

public FillRectangle ( Brush brush, RectangleF rect ) : void
brush System.Drawing.Brush
rect System.Drawing.RectangleF
Résultat void

FillTextBackground_glReadPixels() public méthode

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

GLGraphics() public méthode

public GLGraphics ( CanvasEventArgs e ) : System
e CanvasEventArgs
Résultat System

RegisterHatchStylePattern() public static méthode

public static RegisterHatchStylePattern ( HatchStyle hatchStyle, BitArray pattern_32x32 ) : void
hatchStyle HatchStyle
pattern_32x32 System.Collections.BitArray
Résultat void

ResetAllCaches() public static méthode

public static ResetAllCaches ( ) : void
Résultat void

ResetClip() public méthode

public ResetClip ( ) : void
Résultat void

SetClip() public méthode

public SetClip ( Rectangle rect ) : void
rect System.Drawing.Rectangle
Résultat void

SetClip() public méthode

public SetClip ( RectangleF rect ) : void
rect System.Drawing.RectangleF
Résultat void

SetTransform() protected méthode

protected SetTransform ( Matrix matrix ) : void
matrix Matrix
Résultat void