Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "CreatePen" in [All]

Constants

1: EMR_
.

        EMR_CREATEPEN          = 38,

.

        EMR_EXTCREATEPEN           = 95,

gdi32

.
Summary
.

static extern IntPtr CreatePen(PenStyle fnPenStyle, int nWidth, uint crColor);

.

Private Shared Function CreatePen(fnPenStyle As PenStyle, nWidth As Integer, crColor As UInteger) As IntPtr

.

    IntPtr pen = CreatePen(PenStyle.PS_SOLID | PenStyle.PS_GEOMETRIC | PenStyle.PS_ENDCAP_ROUND, penWidth, (uint)ColorTranslator.ToWin32(penColor));

.
Documentation
[CreatePen] on MSDN
.
Summary
.

static extern IntPtr ExtCreatePen(uint dwPenStyle, uint dwWidth,

.
Documentation
[ExtCreatePen] on MSDN
.

    IntPtr pen = CreatePen(PenStyle.PS_SOLID | PenStyle.PS_GEOMETRIC | PenStyle.PS_ENDCAP_ROUND, penWidth, (uint)ColorTranslator.ToWin32(penColor));

.

    IntPtr pen = CreatePen(PenStyle.PS_SOLID | PenStyle.PS_GEOMETRIC | PenStyle.PS_ENDCAP_ROUND, penWidth, (uint)ColorTranslator.ToWin32(penColor));

.

    public static extern IntPtr CreatePen(int fnPenStyle, int nWidth, uint crColor);

.

        IntPtr thePen = GDI32.CreatePen(0, 1, (uint)GDI32.RGB(Color.White));

.

    public static extern int CreatePen(int nPenStyle, int nWidth, int nColor);

.

int hPen = CreatePen(PS_SOLID, 1, 0x000000FF);


 
Access PInvoke.net directly from VS: