當前位置: 首頁>>代碼示例>>C#>>正文


C# GDIPlus.GpPointF類代碼示例

本文整理匯總了C#中OpenNETCF.GDIPlus.GpPointF的典型用法代碼示例。如果您正苦於以下問題:C# GpPointF類的具體用法?C# GpPointF怎麽用?C# GpPointF使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


GpPointF類屬於OpenNETCF.GDIPlus命名空間,在下文中一共展示了GpPointF類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Matrix

    Matrix( GpRectF rect, 
            GpPointF[] dstplg)
    {
        GpMatrix matrix;

        lastResult = NativeMethods.GdipCreateMatrix3(rect, 
                                                   dstplg,
                                                   out matrix);

        SetNativeMatrix(matrix);
    }
開發者ID:intille,項目名稱:mitessoftware,代碼行數:11,代碼來源:Matrix.cs

示例2: GdipFillPolygon2

GdipFillPolygon2(GpGraphics graphics, GpBrush brush,
   GpPointF[] points, int count);
開發者ID:intille,項目名稱:mitessoftware,代碼行數:2,代碼來源:Drawing.cs

示例3: GdipAddPathCurve3

GdipAddPathCurve3(GpPath path, GpPointF[] points, int count,
                           int offset, int numberOfSegments, float tension);
開發者ID:intille,項目名稱:mitessoftware,代碼行數:2,代碼來源:Paths.cs

示例4: GdipAddPathCurve

GdipAddPathCurve(GpPath path, GpPointF[] points, int count);
開發者ID:intille,項目名稱:mitessoftware,代碼行數:1,代碼來源:Paths.cs

示例5: GdipAddPathLine2

GdipAddPathLine2(GpPath path, GpPointF[] points, int count);
開發者ID:intille,項目名稱:mitessoftware,代碼行數:1,代碼來源:Paths.cs

示例6: GdipGetPathPoints

GdipGetPathPoints(GpPath path, GpPointF[] points, int count);
開發者ID:intille,項目名稱:mitessoftware,代碼行數:1,代碼來源:Paths.cs

示例7: GdipAddPathPolygon

GdipAddPathPolygon(GpPath path, GpPointF[] points, int count);
開發者ID:intille,項目名稱:mitessoftware,代碼行數:1,代碼來源:Paths.cs

示例8: DrawImage

        public GpStatus DrawImage(ImagePlus image,
                          GpPointF[] destPoints)
        {
            int count = destPoints.Length;

            if (count != 3 && count != 4)
                return SetStatus(GpStatus.InvalidParameter);

            return SetStatus(NativeMethods.GdipDrawImagePoints(nativeGraphics,
                                                             image != null ? image.nativeImage
                                                                   : new GpImage(),
                                                             destPoints, count));
        }
開發者ID:misiek,項目名稱:foo,代碼行數:13,代碼來源:GraphicsPlus.cs

示例9: FillClosedCurve

 public GpStatus FillClosedCurve(BrushPlus brush,
                         GpPointF[] points)
 {
     return SetStatus(NativeMethods.GdipFillClosedCurve(nativeGraphics,
                                                      brush.nativeBrush,
                                                      points, points.Length));
 }
開發者ID:misiek,項目名稱:foo,代碼行數:7,代碼來源:GraphicsPlus.cs

示例10: DrawLine

 public GpStatus DrawLine(PenPlus pen,
                 GpPointF pt1,
                 GpPointF pt2)
 {
     return DrawLine(pen, pt1.X, pt1.Y, pt2.X, pt2.Y);
 }
開發者ID:misiek,項目名稱:foo,代碼行數:6,代碼來源:GraphicsPlus.cs

示例11: FindPieSliceUnderPoint

 /// <summary>
 ///   Searches the chart to find the index of the pie slice which 
 ///   contains point given. Search order goes in the direction opposite
 ///   to drawing order.
 /// </summary>
 /// <param name="point">
 ///   <c>PointF</c> point for which pie slice is searched for.
 /// </param>
 /// <returns>
 ///   Index of the corresponding pie slice, or -1 if none is found.
 /// </returns>
 public int FindPieSliceUnderPoint(GpPointF point)
 {
     // first check tops
     for (int i = 0; i < m_pieSlices.Length; ++i)
     {
         PieSlice slice = (PieSlice)m_pieSlices[i];
         if (slice.PieSliceContainsPoint(point))
             return (int)m_pieSlicesMapping[i];
     }
     // split the backmost (at 270 degrees) pie slice
     ArrayList pieSlicesList = new ArrayList(m_pieSlices);
     PieSlice[] splitSlices = m_pieSlices[0].Split(270F);
     if (splitSlices.Length > 1)
     {
         pieSlicesList[0] = splitSlices[1];
         if (splitSlices[0].SweepAngle > 0F)
         {
             pieSlicesList.Add(splitSlices[0]);
         }
     }
     PieSlice[] pieSlices = (PieSlice[])pieSlicesList.ToArray(typeof(PieSlice));
     int indexFound = -1;
     // if not found yet, then check for periferies
     int incrementIndex = 0;
     int decrementIndex = pieSlices.Length - 1;
     while (incrementIndex <= decrementIndex)
     {
         PieSlice sliceLeft = pieSlices[decrementIndex];
         float angle1 = 270 - sliceLeft.StartAngle;
         PieSlice sliceRight = pieSlices[incrementIndex];
         float angle2 = (sliceRight.EndAngle + 90) % 360;
         Debug.Assert(angle2 >= 0);
         if (angle2 < angle1)
         {
             if (sliceRight.PeripheryContainsPoint(point))
                 indexFound = incrementIndex;
             ++incrementIndex;
         }
         else
         {
             if (sliceLeft.PeripheryContainsPoint(point))
                 indexFound = decrementIndex;
             --decrementIndex;
         }
     }
     // check for start/stop sides, starting from the foremost
     if (indexFound < 0)
     {
         int foremostPieIndex = GetForemostPieSlice(pieSlices);
         // check for start sides from the foremost slice to the left 
         // side
         int i = foremostPieIndex;
         while (i < pieSlices.Length)
         {
             PieSlice sliceLeft = (PieSlice)pieSlices[i];
             if (sliceLeft.StartSideContainsPoint(point))
             {
                 indexFound = i;
                 break;
             }
             ++i;
         }
         // if not found yet, check end sides from the foremost to the right
         // side
         if (indexFound < 0)
         {
             i = foremostPieIndex;
             while (i >= 0)
             {
                 PieSlice sliceLeft = (PieSlice)pieSlices[i];
                 if (sliceLeft.EndSideContainsPoint(point))
                 {
                     indexFound = i;
                     break;
                 }
                 --i;
             }
         }
     }
     // finally search for bottom sides
     if (indexFound < 0)
     {
         for (int i = 0; i < m_pieSlices.Length; ++i)
         {
             PieSlice slice = (PieSlice)m_pieSlices[i];
             if (slice.BottomSurfaceSectionContainsPoint(point))
                 return (int)m_pieSlicesMapping[i];
         }
     }
//.........這裏部分代碼省略.........
開發者ID:intille,項目名稱:mitessoftware,代碼行數:101,代碼來源:PieChart.cs

示例12: GdipCreateMatrix3

GdipCreateMatrix3(GpRectF rect, GpPointF[] dstplg,
                       out GpMatrix matrix);
開發者ID:intille,項目名稱:mitessoftware,代碼行數:2,代碼來源:Matrices.cs

示例13: GdipDrawBeziers

GdipDrawBeziers(GpGraphics graphics, GpPen pen, GpPointF[] points,
          int count);
開發者ID:intille,項目名稱:mitessoftware,代碼行數:2,代碼來源:Drawing.cs

示例14: GdipFillClosedCurve2

GdipFillClosedCurve2(GpGraphics graphics, GpBrush brush,
                GpPointF[] points, int count,
               float tension, FillMode fillMode);
開發者ID:intille,項目名稱:mitessoftware,代碼行數:3,代碼來源:Drawing.cs

示例15: GdipFillClosedCurve

GdipFillClosedCurve(GpGraphics graphics, GpBrush brush,
                GpPointF[] points, int count);
開發者ID:intille,項目名稱:mitessoftware,代碼行數:2,代碼來源:Drawing.cs


注:本文中的OpenNETCF.GDIPlus.GpPointF類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。