Пример #1
0
        // Once this is called, the resultant path is made of line segments and
        // the original path information is lost.  When matrix is null, the
        // identity matrix is assumed.

        public GpStatus Warp(GpPointF[] destPoints,
                             GpRectF srcRect,
                             Matrix matrix,
                             WarpMode warpMode,
                             float flatness)
        {
            GpMatrix nativeMatrix = new GpMatrix();

            if (matrix != null)
            {
                nativeMatrix = matrix.nativeMatrix;
            }

            return(SetStatus(NativeMethods.GdipWarpPath(
                                 nativePath,
                                 nativeMatrix,
                                 destPoints,
                                 destPoints.Length,
                                 srcRect.X,
                                 srcRect.Y,
                                 srcRect.Width,
                                 srcRect.Height,
                                 warpMode,
                                 flatness)));
        }
Пример #2
0
        // This is not always the tightest bounds.

        //Status GetBounds(out GpRectF bounds,
        //                 Matrix matrix,
        //                 Pen pen ) ;

        //Status GetBounds(OUT GpRect* bounds,
        //                 Matrix* matrix = null,
        //                 Pen* pen = null) ;

        // Once flattened, the resultant path is made of line segments and
        // the original path information is lost.  When matrix is null the
        // identity matrix is assumed.

        public GpStatus Flatten(Matrix matrix,
                                float flatness)
        {
            GpMatrix nativeMatrix = new GpMatrix();

            if (matrix != null)
            {
                nativeMatrix = matrix.nativeMatrix;
            }

            return(SetStatus(NativeMethods.GdipFlattenPath(
                                 nativePath,
                                 nativeMatrix,
                                 flatness
                                 )));
        }
Пример #3
0
        public GpStatus Outline(
            Matrix matrix,
            float flatness
            )
        {
            GpMatrix nativeMatrix = new GpMatrix();

            if (matrix != null)
            {
                nativeMatrix = matrix.nativeMatrix;
            }

            return(SetStatus(NativeMethods.GdipWindingModeOutline(
                                 nativePath, nativeMatrix, flatness
                                 )));
        }
Пример #4
0
        public GpStatus Widen(
            PenPlus pen,
            Matrix matrix,
            float flatness
            )
        {
            GpMatrix nativeMatrix = new GpMatrix();

            if (matrix != null)
            {
                nativeMatrix = matrix.nativeMatrix;
            }

            return(SetStatus(NativeMethods.GdipWidenPath(
                                 nativePath,
                                 pen.nativePen,
                                 nativeMatrix,
                                 flatness
                                 )));
        }
Пример #5
0
 GdipSetPenTransform(GpPen pen, GpMatrix matrix);
Пример #6
0
 GdipSetMatrixElements(GpMatrix matrix, float m11, float m12, float m21, float m22,
                       float dx, float dy);
Пример #7
0
 GdipGetMatrixElements(GpMatrix matrix, float[] matrixOut);
Пример #8
0
 GdipMultiplyPathGradientTransform(GpPathGradient brush,
                                   GpMatrix matrix,
                                   MatrixOrder order);
Пример #9
0
 GdipGetRegionScansCount(GpRegion region, out uint count, GpMatrix matrix);
Пример #10
0
 protected Matrix(GpMatrix nativeMatrix)
 {
     lastResult = GpStatus.Ok;
     SetNativeMatrix(nativeMatrix);
 }
Пример #11
0
 GdipSetWorldTransform(GpGraphics graphics, GpMatrix matrix);
Пример #12
0
 GdipTransformPath(GpPath path, GpMatrix matrix);
Пример #13
0
 GdipGetPathWorldBoundsI(GpPath path, GpRect[] bounds,
                         out GpMatrix matrix, out GpPen pen);
Пример #14
0
 GdipWidenPath(
     GpPath nativePath,
     GpPen pen,
     GpMatrix matrix,
     float flatness
     );
Пример #15
0
 GdipWarpPath(GpPath path, GpMatrix matrix,
              GpPointF[] points, int count,
              float srcx, float srcy, float srcwidth, float srcheight,
              WarpMode warpMode, float flatness);
Пример #16
0
 GdipWindingModeOutline(
     GpPath path,
     GpMatrix matrix,
     float flatness
     );
Пример #17
0
 GdipFlattenPath(GpPath path, GpMatrix matrix, float flatness);
Пример #18
0
 GdipGetRegionScansI(GpRegion region, GpRect[] rects, ref int count,
                     GpMatrix matrix);
Пример #19
0
 GdipGetPenTransform(GpPen pen, out GpMatrix matrix);
Пример #20
0
 GdipCreateMatrix(out GpMatrix matrix);
Пример #21
0
 GdipMultiplyPenTransform(GpPen pen, GpMatrix matrix,
                          MatrixOrder order);
Пример #22
0
 GdipSetTextureTransform(GpTexture brush, GpMatrix matrix);
Пример #23
0
 void SetNativeMatrix(GpMatrix nativeMatrix)
 {
     this.nativeMatrix = nativeMatrix;
 }
Пример #24
0
 GdipSetPathGradientTransform(GpPathGradient brush,
                              GpMatrix matrix);
Пример #25
0
 GdipMultiplyWorldTransform(GpGraphics graphics, GpMatrix matrix,
                            MatrixOrder order);
Пример #26
0
 GdipDeleteMatrix(GpMatrix matrix);
Пример #27
0
 GdipCreateMatrix2(float m11, float m12, float m21, float m22, float dx,
                   float dy, out GpMatrix matrix);
Пример #28
0
 GdipMultiplyTextureTransform(GpTexture brush, GpMatrix matrix,
                              MatrixOrder order);
Пример #29
0
 GdipCreateMatrix3(GpRectF rect, GpPointF[] dstplg,
                   out GpMatrix matrix);
Пример #30
0
 GdipGetPathGradientTransform(GpPathGradient brush,
                              out GpMatrix matrix);