C# Класс GraphicsImplementation.GLGraphics

Наследование: GraphicsBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
DrawStringImage ( Bitmap bitmap, PointF textLocation, SizeF textSize ) : void
SetTransform ( Matrix matrix ) : void

Приватные методы

Метод Описание
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

Описание методов

Clear() публичный Метод

public Clear ( Color color ) : void
color Color
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

DrawImage() публичный Метод

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
Результат void

DrawImage() публичный Метод

public DrawImage ( Image image, RectangleF rect ) : void
image Image
rect System.Drawing.RectangleF
Результат void

DrawLine() публичный Метод

public DrawLine ( Pen pen, Point pt1, Point pt2 ) : void
pen System.Drawing.Pen
pt1 Point
pt2 Point
Результат void

DrawLine() публичный Метод

public DrawLine ( Pen pen, PointF pt1, PointF pt2 ) : void
pen System.Drawing.Pen
pt1 System.Drawing.PointF
pt2 System.Drawing.PointF
Результат void

DrawLines() публичный Метод

public DrawLines ( Pen pen, Point points ) : void
pen System.Drawing.Pen
points Point
Результат void

DrawLines() публичный Метод

public DrawLines ( Pen pen, PointF points ) : void
pen System.Drawing.Pen
points System.Drawing.PointF
Результат void

DrawPath() публичный Метод

public DrawPath ( Pen pen, GraphicsPath path ) : void
pen System.Drawing.Pen
path System.Drawing.Drawing2D.GraphicsPath
Результат void

DrawRectangle() публичный Метод

public DrawRectangle ( Pen pen, Rectangle rect ) : void
pen System.Drawing.Pen
rect System.Drawing.Rectangle
Результат void

DrawRectangle() публичный Метод

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
Результат void

DrawStringImage() защищенный Метод

protected DrawStringImage ( Bitmap bitmap, PointF textLocation, SizeF textSize ) : void
bitmap System.Drawing.Bitmap
textLocation System.Drawing.PointF
textSize System.Drawing.SizeF
Результат void

FillPath() публичный Метод

public FillPath ( Brush brush, GraphicsPath path ) : void
brush System.Drawing.Brush
path System.Drawing.Drawing2D.GraphicsPath
Результат void

FillRectangle() публичный Метод

public FillRectangle ( Brush brush, Rectangle rect ) : void
brush System.Drawing.Brush
rect System.Drawing.Rectangle
Результат void

FillRectangle() публичный Метод

public FillRectangle ( Brush brush, RectangleF rect ) : void
brush System.Drawing.Brush
rect System.Drawing.RectangleF
Результат void

FillTextBackground_glReadPixels() публичный Метод

public FillTextBackground_glReadPixels ( Bitmap textBackground, PointF textLocation, SizeF textSize ) : void
textBackground System.Drawing.Bitmap
textLocation System.Drawing.PointF
textSize System.Drawing.SizeF
Результат void

GLGraphics() публичный Метод

public GLGraphics ( CanvasEventArgs e ) : System
e CanvasEventArgs
Результат System

RegisterHatchStylePattern() публичный статический Метод

public static RegisterHatchStylePattern ( HatchStyle hatchStyle, BitArray pattern_32x32 ) : void
hatchStyle HatchStyle
pattern_32x32 System.Collections.BitArray
Результат void

ResetAllCaches() публичный статический Метод

public static ResetAllCaches ( ) : void
Результат void

ResetClip() публичный Метод

public ResetClip ( ) : void
Результат void

SetClip() публичный Метод

public SetClip ( Rectangle rect ) : void
rect System.Drawing.Rectangle
Результат void

SetClip() публичный Метод

public SetClip ( RectangleF rect ) : void
rect System.Drawing.RectangleF
Результат void

SetTransform() защищенный Метод

protected SetTransform ( Matrix matrix ) : void
matrix Matrix
Результат void