コード例 #1
0
ファイル: PenPlus.cs プロジェクト: windygu/haina
        public void SetCustomEndCap(CustomLineCap customCap)
        {
            GpCustomLineCap nativeCap = new GpCustomLineCap();

            if (customCap != null)
            {
                nativeCap = customCap.nativeCap;
            }

            SetStatus(GdiPlus.GdipSetPenCustomEndCap(nativePen,
                                                     nativeCap));
        }
コード例 #2
0
ファイル: PenPlus.cs プロジェクト: windygu/haina
 public void GetCustomEndCap(out CustomLineCap customCap)
 {
     customCap = new CustomLineCap();
     SetStatus(GdiPlus.GdipGetPenCustomEndCap(nativePen,
                                              out customCap.nativeCap));
 }
コード例 #3
0
ファイル: PenPlus.cs プロジェクト: north0808/haina
 public void GetCustomStartCap(out CustomLineCap customCap)
 {
     customCap = new CustomLineCap();
     SetStatus(GdiPlus.GdipGetPenCustomStartCap(nativePen,
                                                 out customCap.nativeCap));
 }
コード例 #4
0
ファイル: PenPlus.cs プロジェクト: north0808/haina
        public void SetCustomStartCap(CustomLineCap customCap)
        {
            GpCustomLineCap nativeCap = new GpCustomLineCap();
            if (customCap != null)
                nativeCap = customCap.nativeCap;

            SetStatus(GdiPlus.GdipSetPenCustomStartCap(nativePen,
                                                                  nativeCap));
        }