C# Class NewTOAPIA.Drawing.GDIRenderer

Inheritance: IGraphPort
Mostrar archivo Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Methods

Method Description
AlphaBlend ( int x, int y, int width, int height, GDIPixmap bitmap, int srcX, int srcY, int srcWidth, int srcHeight, byte opacity ) : void
BitBlt ( int x, int y, int nWidth, int nHeight, GDIContext hSrcDC, int xSrc, int ySrc, TernaryRasterOps dwRop ) : bool
CopyFromScreen ( Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize ) : void
CreateBitmap ( int width, int height ) : GDIDIBSection
CreateBrush ( BrushStyle aStyle, HatchStyle hatch, uint colorref, System.Guid uniqueID ) : void
CreateCosmeticPen ( PenStyle aStyle, uint color, System.Guid uniqueID ) : void
CreateFont ( string faceName, int height, System.Guid aGuid ) : void
CreatePath ( System.Guid uniqueID ) : GPath
CreatePen ( PenType aType, PenStyle aStyle, PenJoinStyle aJoinStyle, PenEndCap aEndCap, uint colorref, int width, System.Guid uniqueID ) : void
DrawBeziers ( GDIPen aPen, Point points ) : void
DrawBitmap ( GDIPixmap pixmap, Point origin ) : void

DrawImage, will draw the supplied image graphic on the screen. It will use the Image's frame and size to determine where to display it.

DrawBitmap ( GDIPixmap pixmap, System srcRect, System dstRect ) : void
DrawEllipse ( GDIPen aPen, Rectangle rect ) : void
DrawGradientRectangle ( GradientRect aGradient ) : void
DrawImage ( GDIPixmap bitmap, System destinationParallelogram, System srcRect, System units ) : void
DrawLine ( GDIPen aPen, Point startPOINT, Point endPoint ) : void
DrawLines ( GDIPen aPen, System points ) : void
DrawPath ( GDIPen aPen, GPath aPath ) : void
DrawPolygon ( System points ) : void
DrawPolygon ( System points, GDIPen aPen, GDIBrush aBrush ) : void
DrawRectangle ( GDIPen aPen, Rectangle rect ) : void
DrawRectangle ( GDIPen aPen, int x, int y, int width, int height ) : void

Draw the frame of a rectangle using the specified pen.

DrawRectangle ( Rectangle aRect ) : void
DrawRectangle ( int left, int top, int right, int bottom ) : void

Draw the frame of a rectangle using a pen. Leave the interior alone.

DrawRectangles ( GDIPen aPen, Rectangle rects ) : void
DrawRegion ( GDIRegion region ) : void
DrawRoundRect ( GDIPen aPen, Rectangle rect, int xRadius, int yRadius ) : void
DrawString ( int x, int y, string aString ) : void
FillEllipse ( GDIBrush aBrush, Rectangle rect ) : void
FillPath ( GDIBrush aBrush, GPath aPath ) : void
FillRectangle ( GDIBrush aBrush, Rectangle aRect ) : void
FillRectangle ( GDIBrush aBrush, int x, int y, int width, int height ) : void
FillRegion ( GDIRegion region, GDIBrush aBrush ) : void
Flush ( ) : void
FramePath ( GDIPen aPen, GPath aPath ) : void
FrameRectangle ( GDIPen pen, Rectangle aRect ) : void
FrameRegion ( GDIRegion region, GDIBrush aBrush, Size strokeSize ) : void
GDIRenderer ( GDIContext devContext ) : System
GradientTriangle ( TRIVERTEX pVertex, GRADIENT_TRIANGLE pMesh, int dwMode ) : void
InvertRegion ( GDIRegion region ) : void
MeasureCharacter ( char c, int &width, int &height ) : void
MoveTo ( System aPOINT ) : void
MoveTo ( int x, int y ) : void
PixBlt ( IPixelArray pixmap, int x, int y ) : void
PixmapShardBlt ( IPixelArray pixmap, Rectangle srcRect, Rectangle dstRect ) : void
Polygon ( System points ) : void
ResetClip ( ) : void
ResetState ( ) : void
RestoreState ( int toState ) : void
RotateTransform ( float angle, int x, int y ) : void
SaveState ( ) : void
ScaleBitmap ( GDIPixmap bitmap, Rectangle aFrame ) : void
ScaleTransform ( float scaleX, float scaleY ) : void
SelectStockObject ( int objectIndex ) : void
SelectUniqueObject ( System.Guid objectID ) : void
SetBkColor ( uint colorref ) : void
SetBkMode ( int bkMode ) : void
SetBrush ( GDIBrush aBrush ) : void
SetClip ( GDIRegion clipRegion ) : void
SetClipRectangle ( Rectangle clipRect ) : void
SetDefaultBrushColor ( uint colorref ) : void
SetDefaultPenColor ( uint colorref ) : void
SetFont ( GDIFont aFont ) : void
SetMappingMode ( MappingModes aMode ) : void
SetPathAsClipRegion ( GPath aPath ) : void
SetPen ( GDIPen aPen ) : void
SetPixel ( int x, int y, Color colorref ) : void
SetPolyFillMode ( PolygonFillMode fillMode ) : void
SetROP2 ( BinaryRasterOps rasOp ) : void
SetTextColor ( uint colorref ) : void
SetWorldTransform ( Transform2D aTransform ) : void
StretchBlt ( int x, int y, int width, int height, GDIContext srcDC, int srcX, int srcY, int srcWidth, int srcHeight, TernaryRasterOps dwRop ) : void
StrokeAndFillRectangle ( GDIPen aPen, GDIBrush aBrush, Rectangle aRect ) : void
TranslateTransform ( int dx, int dy ) : void
UseDefaultBrush ( ) : void
UseDefaultPen ( ) : void

Private Methods

Method Description
GetWorldTransform ( ) : Transform2D

Method Details

AlphaBlend() public method

public AlphaBlend ( int x, int y, int width, int height, GDIPixmap bitmap, int srcX, int srcY, int srcWidth, int srcHeight, byte opacity ) : void
x int
y int
width int
height int
bitmap GDIPixmap
srcX int
srcY int
srcWidth int
srcHeight int
opacity byte
return void

BitBlt() public method

public BitBlt ( int x, int y, int nWidth, int nHeight, GDIContext hSrcDC, int xSrc, int ySrc, TernaryRasterOps dwRop ) : bool
x int
y int
nWidth int
nHeight int
hSrcDC GDIContext
xSrc int
ySrc int
dwRop TernaryRasterOps
return bool

CopyFromScreen() public method

public CopyFromScreen ( Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize ) : void
upperLeftSource Point
upperLeftDestination Point
blockRegionSize System.Drawing.Size
return void

CreateBitmap() public method

public CreateBitmap ( int width, int height ) : GDIDIBSection
width int
height int
return GDIDIBSection

CreateBrush() public method

public CreateBrush ( BrushStyle aStyle, HatchStyle hatch, uint colorref, System.Guid uniqueID ) : void
aStyle BrushStyle
hatch HatchStyle
colorref uint
uniqueID System.Guid
return void

CreateCosmeticPen() public method

public CreateCosmeticPen ( PenStyle aStyle, uint color, System.Guid uniqueID ) : void
aStyle PenStyle
color uint
uniqueID System.Guid
return void

CreateFont() public method

public CreateFont ( string faceName, int height, System.Guid aGuid ) : void
faceName string
height int
aGuid System.Guid
return void

CreatePath() public method

public CreatePath ( System.Guid uniqueID ) : GPath
uniqueID System.Guid
return GPath

CreatePen() public method

public CreatePen ( PenType aType, PenStyle aStyle, PenJoinStyle aJoinStyle, PenEndCap aEndCap, uint colorref, int width, System.Guid uniqueID ) : void
aType PenType
aStyle PenStyle
aJoinStyle PenJoinStyle
aEndCap PenEndCap
colorref uint
width int
uniqueID System.Guid
return void

DrawBeziers() public method

public DrawBeziers ( GDIPen aPen, Point points ) : void
aPen GDIPen
points Point
return void

DrawBitmap() public method

DrawImage, will draw the supplied image graphic on the screen. It will use the Image's frame and size to determine where to display it.
public DrawBitmap ( GDIPixmap pixmap, Point origin ) : void
pixmap GDIPixmap
origin Point
return void

DrawBitmap() public method

public DrawBitmap ( GDIPixmap pixmap, System srcRect, System dstRect ) : void
pixmap GDIPixmap
srcRect System
dstRect System
return void

DrawEllipse() public method

public DrawEllipse ( GDIPen aPen, Rectangle rect ) : void
aPen GDIPen
rect System.Drawing.Rectangle
return void

DrawGradientRectangle() public method

public DrawGradientRectangle ( GradientRect aGradient ) : void
aGradient GradientRect
return void

DrawImage() public method

public DrawImage ( GDIPixmap bitmap, System destinationParallelogram, System srcRect, System units ) : void
bitmap GDIPixmap
destinationParallelogram System
srcRect System
units System
return void

DrawLine() public method

public DrawLine ( GDIPen aPen, Point startPOINT, Point endPoint ) : void
aPen GDIPen
startPOINT Point
endPoint Point
return void

DrawLines() public method

public DrawLines ( GDIPen aPen, System points ) : void
aPen GDIPen
points System
return void

DrawPath() public method

public DrawPath ( GDIPen aPen, GPath aPath ) : void
aPen GDIPen
aPath GPath
return void

DrawPolygon() public method

public DrawPolygon ( System points ) : void
points System
return void

DrawPolygon() public method

public DrawPolygon ( System points, GDIPen aPen, GDIBrush aBrush ) : void
points System
aPen GDIPen
aBrush GDIBrush
return void

DrawRectangle() public method

public DrawRectangle ( GDIPen aPen, Rectangle rect ) : void
aPen GDIPen
rect System.Drawing.Rectangle
return void

DrawRectangle() public method

Draw the frame of a rectangle using the specified pen.
public DrawRectangle ( GDIPen aPen, int x, int y, int width, int height ) : void
aPen GDIPen
x int left
y int top
width int Width of rectangle.
height int Height of rectangle.
return void

DrawRectangle() public method

public DrawRectangle ( Rectangle aRect ) : void
aRect System.Drawing.Rectangle
return void

DrawRectangle() public method

Draw the frame of a rectangle using a pen. Leave the interior alone.
public DrawRectangle ( int left, int top, int right, int bottom ) : void
left int
top int
right int
bottom int
return void

DrawRectangles() public method

public DrawRectangles ( GDIPen aPen, Rectangle rects ) : void
aPen GDIPen
rects System.Drawing.Rectangle
return void

DrawRegion() public method

public DrawRegion ( GDIRegion region ) : void
region GDIRegion
return void

DrawRoundRect() public method

public DrawRoundRect ( GDIPen aPen, Rectangle rect, int xRadius, int yRadius ) : void
aPen GDIPen
rect System.Drawing.Rectangle
xRadius int
yRadius int
return void

DrawString() public method

public DrawString ( int x, int y, string aString ) : void
x int
y int
aString string
return void

FillEllipse() public method

public FillEllipse ( GDIBrush aBrush, Rectangle rect ) : void
aBrush GDIBrush
rect System.Drawing.Rectangle
return void

FillPath() public method

public FillPath ( GDIBrush aBrush, GPath aPath ) : void
aBrush GDIBrush
aPath GPath
return void

FillRectangle() public method

public FillRectangle ( GDIBrush aBrush, Rectangle aRect ) : void
aBrush GDIBrush
aRect System.Drawing.Rectangle
return void

FillRectangle() public method

public FillRectangle ( GDIBrush aBrush, int x, int y, int width, int height ) : void
aBrush GDIBrush
x int
y int
width int
height int
return void

FillRegion() public method

public FillRegion ( GDIRegion region, GDIBrush aBrush ) : void
region GDIRegion
aBrush GDIBrush
return void

Flush() public method

public Flush ( ) : void
return void

FramePath() public method

public FramePath ( GDIPen aPen, GPath aPath ) : void
aPen GDIPen
aPath GPath
return void

FrameRectangle() public method

public FrameRectangle ( GDIPen pen, Rectangle aRect ) : void
pen GDIPen
aRect System.Drawing.Rectangle
return void

FrameRegion() public method

public FrameRegion ( GDIRegion region, GDIBrush aBrush, Size strokeSize ) : void
region GDIRegion
aBrush GDIBrush
strokeSize System.Drawing.Size
return void

GDIRenderer() public method

public GDIRenderer ( GDIContext devContext ) : System
devContext GDIContext
return System

GradientTriangle() public method

public GradientTriangle ( TRIVERTEX pVertex, GRADIENT_TRIANGLE pMesh, int dwMode ) : void
pVertex TRIVERTEX
pMesh TOAPI.Types.GRADIENT_TRIANGLE
dwMode int
return void

InvertRegion() public method

public InvertRegion ( GDIRegion region ) : void
region GDIRegion
return void

MeasureCharacter() public method

public MeasureCharacter ( char c, int &width, int &height ) : void
c char
width int
height int
return void

MoveTo() public method

public MoveTo ( System aPOINT ) : void
aPOINT System
return void

MoveTo() public method

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

PixBlt() public method

public PixBlt ( IPixelArray pixmap, int x, int y ) : void
pixmap IPixelArray
x int
y int
return void

PixmapShardBlt() public method

public PixmapShardBlt ( IPixelArray pixmap, Rectangle srcRect, Rectangle dstRect ) : void
pixmap IPixelArray
srcRect System.Drawing.Rectangle
dstRect System.Drawing.Rectangle
return void

Polygon() public method

public Polygon ( System points ) : void
points System
return void

ResetClip() public method

public ResetClip ( ) : void
return void

ResetState() public method

public ResetState ( ) : void
return void

RestoreState() public method

public RestoreState ( int toState ) : void
toState int
return void

RotateTransform() public method

public RotateTransform ( float angle, int x, int y ) : void
angle float
x int
y int
return void

SaveState() public method

public SaveState ( ) : void
return void

ScaleBitmap() public method

public ScaleBitmap ( GDIPixmap bitmap, Rectangle aFrame ) : void
bitmap GDIPixmap
aFrame System.Drawing.Rectangle
return void

ScaleTransform() public method

public ScaleTransform ( float scaleX, float scaleY ) : void
scaleX float
scaleY float
return void

SelectStockObject() public method

public SelectStockObject ( int objectIndex ) : void
objectIndex int
return void

SelectUniqueObject() public method

public SelectUniqueObject ( System.Guid objectID ) : void
objectID System.Guid
return void

SetBkColor() public method

public SetBkColor ( uint colorref ) : void
colorref uint
return void

SetBkMode() public method

public SetBkMode ( int bkMode ) : void
bkMode int
return void

SetBrush() public method

public SetBrush ( GDIBrush aBrush ) : void
aBrush GDIBrush
return void

SetClip() public method

public SetClip ( GDIRegion clipRegion ) : void
clipRegion GDIRegion
return void

SetClipRectangle() public method

public SetClipRectangle ( Rectangle clipRect ) : void
clipRect System.Drawing.Rectangle
return void

SetDefaultBrushColor() public method

public SetDefaultBrushColor ( uint colorref ) : void
colorref uint
return void

SetDefaultPenColor() public method

public SetDefaultPenColor ( uint colorref ) : void
colorref uint
return void

SetFont() public method

public SetFont ( GDIFont aFont ) : void
aFont GDIFont
return void

SetMappingMode() public method

public SetMappingMode ( MappingModes aMode ) : void
aMode MappingModes
return void

SetPathAsClipRegion() public method

public SetPathAsClipRegion ( GPath aPath ) : void
aPath GPath
return void

SetPen() public method

public SetPen ( GDIPen aPen ) : void
aPen GDIPen
return void

SetPixel() public method

public SetPixel ( int x, int y, Color colorref ) : void
x int
y int
colorref Color
return void

SetPolyFillMode() public method

public SetPolyFillMode ( PolygonFillMode fillMode ) : void
fillMode PolygonFillMode
return void

SetROP2() public method

public SetROP2 ( BinaryRasterOps rasOp ) : void
rasOp BinaryRasterOps
return void

SetTextColor() public method

public SetTextColor ( uint colorref ) : void
colorref uint
return void

SetWorldTransform() public method

public SetWorldTransform ( Transform2D aTransform ) : void
aTransform Transform2D
return void

StretchBlt() public method

public StretchBlt ( int x, int y, int width, int height, GDIContext srcDC, int srcX, int srcY, int srcWidth, int srcHeight, TernaryRasterOps dwRop ) : void
x int
y int
width int
height int
srcDC GDIContext
srcX int
srcY int
srcWidth int
srcHeight int
dwRop TernaryRasterOps
return void

StrokeAndFillRectangle() public method

public StrokeAndFillRectangle ( GDIPen aPen, GDIBrush aBrush, Rectangle aRect ) : void
aPen GDIPen
aBrush GDIBrush
aRect System.Drawing.Rectangle
return void

TranslateTransform() public method

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

UseDefaultBrush() public method

public UseDefaultBrush ( ) : void
return void

UseDefaultPen() public method

public UseDefaultPen ( ) : void
return void