C# Class GdiTest.Win32GDI

Inheritance: GDI
Datei anzeigen Open project: FreeRDP/GdiTest Class Usage Examples

Public Methods

Method Description
BitBlt ( IntPtr hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, System dwRop ) : int
CreateBitmap ( int nWidth, int nHeight, uint cPlanes, uint cBitsPerPel, IntPtr lpvBits ) : IntPtr
CreatePatternBrush ( IntPtr hbmp ) : IntPtr
CreatePen ( int fnPenStyle, int nWidth, int crColor ) : IntPtr
CreateRectRgn ( int nLeftRect, int nTopRect, int nRightRect, int nBottomRect ) : IntPtr
CreateSolidBrush ( int crColor ) : IntPtr
DeleteObject ( IntPtr hObject ) : bool
Ellipse ( IntPtr hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect ) : bool
GetDC ( IntPtr hWnd ) : IntPtr
GetPixel ( IntPtr hdc, int X, int Y ) : int
GetPixelColor ( IntPtr hdc, int X, int Y ) : System.Drawing.Color
LineTo ( IntPtr hdc, int nXEnd, int nYEnd ) : bool
MoveToEx ( IntPtr hdc, int X, int Y, IntPtr lpPoint ) : bool
Polygon ( IntPtr hdc, POINT lpPoints, int nCount ) : bool
PolylineTo ( IntPtr hdc, POINT lppt, uint cCount ) : bool
ReleaseDC ( IntPtr hWnd, IntPtr hDC ) : int
SelectClipRgn ( IntPtr hdc, IntPtr hrgn ) : int
SelectObject ( IntPtr hdc, IntPtr hgdiobj ) : IntPtr
SetPixel ( IntPtr hdc, int X, int Y, int crColor ) : int
SetROP2 ( IntPtr hdc, int fnDrawMode ) : int
Win32GDI ( ) : System
getInstance ( ) : Win32GDI
init ( ) : void
isAvailable ( ) : bool

Method Details

BitBlt() public method

public BitBlt ( IntPtr hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, System dwRop ) : int
hdcDest System.IntPtr
nXDest int
nYDest int
nWidth int
nHeight int
hdcSrc System.IntPtr
nXSrc int
nYSrc int
dwRop System
return int

CreateBitmap() public method

public CreateBitmap ( int nWidth, int nHeight, uint cPlanes, uint cBitsPerPel, IntPtr lpvBits ) : IntPtr
nWidth int
nHeight int
cPlanes uint
cBitsPerPel uint
lpvBits System.IntPtr
return System.IntPtr

CreatePatternBrush() public method

public CreatePatternBrush ( IntPtr hbmp ) : IntPtr
hbmp System.IntPtr
return System.IntPtr

CreatePen() public method

public CreatePen ( int fnPenStyle, int nWidth, int crColor ) : IntPtr
fnPenStyle int
nWidth int
crColor int
return System.IntPtr

CreateRectRgn() public method

public CreateRectRgn ( int nLeftRect, int nTopRect, int nRightRect, int nBottomRect ) : IntPtr
nLeftRect int
nTopRect int
nRightRect int
nBottomRect int
return System.IntPtr

CreateSolidBrush() public method

public CreateSolidBrush ( int crColor ) : IntPtr
crColor int
return System.IntPtr

DeleteObject() public method

public DeleteObject ( IntPtr hObject ) : bool
hObject System.IntPtr
return bool

Ellipse() public method

public Ellipse ( IntPtr hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect ) : bool
hdc System.IntPtr
nLeftRect int
nTopRect int
nRightRect int
nBottomRect int
return bool

GetDC() public method

public GetDC ( IntPtr hWnd ) : IntPtr
hWnd System.IntPtr
return System.IntPtr

GetPixel() public method

public GetPixel ( IntPtr hdc, int X, int Y ) : int
hdc System.IntPtr
X int
Y int
return int

GetPixelColor() public method

public GetPixelColor ( IntPtr hdc, int X, int Y ) : System.Drawing.Color
hdc System.IntPtr
X int
Y int
return System.Drawing.Color

LineTo() public method

public LineTo ( IntPtr hdc, int nXEnd, int nYEnd ) : bool
hdc System.IntPtr
nXEnd int
nYEnd int
return bool

MoveToEx() public method

public MoveToEx ( IntPtr hdc, int X, int Y, IntPtr lpPoint ) : bool
hdc System.IntPtr
X int
Y int
lpPoint System.IntPtr
return bool

Polygon() public method

public Polygon ( IntPtr hdc, POINT lpPoints, int nCount ) : bool
hdc System.IntPtr
lpPoints POINT
nCount int
return bool

PolylineTo() public method

public PolylineTo ( IntPtr hdc, POINT lppt, uint cCount ) : bool
hdc System.IntPtr
lppt POINT
cCount uint
return bool

ReleaseDC() public method

public ReleaseDC ( IntPtr hWnd, IntPtr hDC ) : int
hWnd System.IntPtr
hDC System.IntPtr
return int

SelectClipRgn() public method

public SelectClipRgn ( IntPtr hdc, IntPtr hrgn ) : int
hdc System.IntPtr
hrgn System.IntPtr
return int

SelectObject() public method

public SelectObject ( IntPtr hdc, IntPtr hgdiobj ) : IntPtr
hdc System.IntPtr
hgdiobj System.IntPtr
return System.IntPtr

SetPixel() public method

public SetPixel ( IntPtr hdc, int X, int Y, int crColor ) : int
hdc System.IntPtr
X int
Y int
crColor int
return int

SetROP2() public method

public SetROP2 ( IntPtr hdc, int fnDrawMode ) : int
hdc IntPtr
fnDrawMode int
return int

Win32GDI() public method

public Win32GDI ( ) : System
return System

getInstance() public static method

public static getInstance ( ) : Win32GDI
return Win32GDI

init() public method

public init ( ) : void
return void

isAvailable() public method

public isAvailable ( ) : bool
return bool