Class GDIApi
Provides managed wrappers to Windows Gdi.dll
Inheritance
System.Object
GDIApi
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Azos.WinForms.dll
Syntax
public static class GDIApi
Fields
TA_BASELINE
Declaration
public const int TA_BASELINE = 24
Field Value
| Type |
Description |
| System.Int32 |
|
TA_BOTTOM
Declaration
public const int TA_BOTTOM = 8
Field Value
| Type |
Description |
| System.Int32 |
|
TA_CENTER
Declaration
public const int TA_CENTER = 6
Field Value
| Type |
Description |
| System.Int32 |
|
TA_LEFT
Declaration
public const int TA_LEFT = 0
Field Value
| Type |
Description |
| System.Int32 |
|
TA_MASK
Declaration
public const int TA_MASK = 287
Field Value
| Type |
Description |
| System.Int32 |
|
TA_NOUPDATECP
Declaration
public const int TA_NOUPDATECP = 0
Field Value
| Type |
Description |
| System.Int32 |
|
TA_RIGHT
Declaration
public const int TA_RIGHT = 2
Field Value
| Type |
Description |
| System.Int32 |
|
TA_RTLREADING
Declaration
public const int TA_RTLREADING = 256
Field Value
| Type |
Description |
| System.Int32 |
|
TA_TOP
Declaration
public const int TA_TOP = 0
Field Value
| Type |
Description |
| System.Int32 |
|
TA_UPDATECP
Declaration
public const int TA_UPDATECP = 1
Field Value
| Type |
Description |
| System.Int32 |
|
VTA_BASELINE
Declaration
public const int VTA_BASELINE = 24
Field Value
| Type |
Description |
| System.Int32 |
|
VTA_BOTTOM
Declaration
public const int VTA_BOTTOM = 2
Field Value
| Type |
Description |
| System.Int32 |
|
VTA_CENTER
Declaration
public const int VTA_CENTER = 6
Field Value
| Type |
Description |
| System.Int32 |
|
VTA_LEFT
Declaration
public const int VTA_LEFT = 8
Field Value
| Type |
Description |
| System.Int32 |
|
VTA_RIGHT
Declaration
public const int VTA_RIGHT = 0
Field Value
| Type |
Description |
| System.Int32 |
|
VTA_TOP
Declaration
public const int VTA_TOP = 0
Field Value
| Type |
Description |
| System.Int32 |
|
Methods
BitBlt(IntPtr, Int32, Int32, Int32, Int32, IntPtr, Int32, Int32, GDIApi.TernaryRasterOperations)
Declaration
public static bool BitBlt(IntPtr hObject, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hObjSource, int nXSrc, int nYSrc, GDIApi.TernaryRasterOperations dwRop)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hObject |
|
| System.Int32 |
nXDest |
|
| System.Int32 |
nYDest |
|
| System.Int32 |
nWidth |
|
| System.Int32 |
nHeight |
|
| System.IntPtr |
hObjSource |
|
| System.Int32 |
nXSrc |
|
| System.Int32 |
nYSrc |
|
| GDIApi.TernaryRasterOperations |
dwRop |
|
Returns
| Type |
Description |
| System.Boolean |
|
CreateBrushIndirect(ref GDIApi.LOGBRUSH)
Declaration
public static IntPtr CreateBrushIndirect(ref GDIApi.LOGBRUSH lplb)
Parameters
Returns
| Type |
Description |
| System.IntPtr |
|
CreatePen(Int32, Int32, UInt32)
Declaration
public static IntPtr CreatePen(int fnPenStyle, int nWidth, uint crColor)
Parameters
| Type |
Name |
Description |
| System.Int32 |
fnPenStyle |
|
| System.Int32 |
nWidth |
|
| System.UInt32 |
crColor |
|
Returns
| Type |
Description |
| System.IntPtr |
|
DeleteObject(IntPtr)
Declaration
public static bool DeleteObject(IntPtr handle)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
handle |
|
Returns
| Type |
Description |
| System.Boolean |
|
LineTo(IntPtr, Int32, Int32)
Declaration
public static bool LineTo(IntPtr hDc, int x, int y)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hDc |
|
| System.Int32 |
x |
|
| System.Int32 |
y |
|
Returns
| Type |
Description |
| System.Boolean |
|
MoveToEx(IntPtr, Int32, Int32, IntPtr)
Declaration
public static bool MoveToEx(IntPtr hDc, int x, int y, IntPtr lpPoint)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hDc |
|
| System.Int32 |
x |
|
| System.Int32 |
y |
|
| System.IntPtr |
lpPoint |
|
Returns
| Type |
Description |
| System.Boolean |
|
RGB(Int32, Int32, Int32)
Declaration
public static ulong RGB(int r, int g, int b)
Parameters
| Type |
Name |
Description |
| System.Int32 |
r |
|
| System.Int32 |
g |
|
| System.Int32 |
b |
|
Returns
| Type |
Description |
| System.UInt64 |
|
SelectObject(IntPtr, IntPtr)
Declaration
public static IntPtr SelectObject(IntPtr hDc, IntPtr hGdiObj)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hDc |
|
| System.IntPtr |
hGdiObj |
|
Returns
| Type |
Description |
| System.IntPtr |
|
TextOut(IntPtr, Int32, Int32, String, Int32)
Declaration
public static bool TextOut(IntPtr hDc, int nXStart, int nYStart, string lpString, int cbString)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hDc |
|
| System.Int32 |
nXStart |
|
| System.Int32 |
nYStart |
|
| System.String |
lpString |
|
| System.Int32 |
cbString |
|
Returns
| Type |
Description |
| System.Boolean |
|