Example #1
0
        public PathGradientBrush(
            GraphicsPath path
            )
        {
            GpPathGradient brush = new GpPathGradient();

            lastResult = NativeMethods.GdipCreatePathGradientFromPath(
                path.nativePath, out brush);
            SetNativeBrush(brush);
        }
Example #2
0
        public PathGradientBrush(
            GpPointF[] points,
            WrapMode wrapMode)
        {
            GpPathGradient brush = new GpPathGradient();

            lastResult = NativeMethods.GdipCreatePathGradient(
                points, points.Length,
                wrapMode, out brush);
            SetNativeBrush(brush);
        }
Example #3
0
 GdipGetPathGradientSurroundColorsWithCount(
     GpPathGradient brush, int[] color, out int count);
Example #4
0
 GdipGetPathGradientFocusScales(GpPathGradient brush, out float xScale,
                                out float yScale);
Example #5
0
 GdipScalePathGradientTransform(GpPathGradient brush, float sx, float sy,
                                MatrixOrder order);
Example #6
0
 GdipMultiplyPathGradientTransform(GpPathGradient brush,
                                   GpMatrix matrix,
                                   MatrixOrder order);
Example #7
0
 GdipSetPathGradientTransform(GpPathGradient brush,
                              GpMatrix matrix);
Example #8
0
 GdipSetPathGradientWrapMode(GpPathGradient brush,
                             WrapMode wrapmode);
Example #9
0
 GdipGetPathGradientPointCount(GpPathGradient brush, out int count);
Example #10
0
 GdipGetPathGradientRectI(GpPathGradient brush, out GpRect rect);
Example #11
0
 GdipSetPathGradientCenterPointI(
     GpPathGradient brush, ref GpPoint point);
Example #12
0
 GdipGetPathGradientCenterPointI(
     GpPathGradient brush, out GpPoint points);
Example #13
0
 GdipSetPathGradientPath(GpPathGradient brush, GpPath path);
Example #14
0
 GdipGetPathGradientPath(GpPathGradient brush, out GpPath path);
Example #15
0
 GdipSetPathGradientSurroundColorsWithCount(
     GpPathGradient brush,
     int[] color, ref int count);
Example #16
0
 GdipSetPathGradientLinearBlend(GpPathGradient brush, float focus, float scale);
Example #17
0
 GdipGetPathGradientWrapMode(GpPathGradient brush,
                             out WrapMode wrapmode);
Example #18
0
 GdipGetPathGradientSurroundColorCount(GpPathGradient brush, out int count);
Example #19
0
 GdipGetPathGradientTransform(GpPathGradient brush,
                              out GpMatrix matrix);
Example #20
0
 GdipSetPathGradientGammaCorrection(GpPathGradient brush,
                                    bool useGammaCorrection);
Example #21
0
 GdipResetPathGradientTransform(GpPathGradient brush);
Example #22
0
 GdipGetPathGradientGammaCorrection(GpPathGradient brush,
                                    out bool useGammaCorrection);
Example #23
0
 GdipTranslatePathGradientTransform(GpPathGradient brush, float dx, float dy,
                                    MatrixOrder order);
Example #24
0
 GdipGetPathGradientBlend(GpPathGradient brush,
                          float[] blend, float[] positions, int count);
Example #25
0
 GdipRotatePathGradientTransform(GpPathGradient brush, float angle,
                                 MatrixOrder order);
Example #26
0
 GdipGetPathGradientPresetBlendCount(GpPathGradient brush, out int count);
Example #27
0
 GdipSetPathGradientFocusScales(GpPathGradient brush, float xScale,
                                float yScale);
Example #28
0
 GdipSetPathGradientPresetBlend(GpPathGradient brush, int[] blend,
                                float[] positions, int count);
Example #29
0
 GdipSetPathGradientSigmaBlend(GpPathGradient brush, float focus, float scale);
Example #30
0
 GdipSetPathGradientCenterColor(
     GpPathGradient brush, int colors);