Exemple #1
0
        LinearGradientBrush(GpRect rect,
                            Color color1,
                            Color color2,
                            float angle,
                            bool isAngleScalable)
        {
            GpLineGradient brush = new GpLineGradient();

            lastResult = NativeMethods.GdipCreateLineBrushFromRectWithAngleI(ref rect,
                                                                             color1.ToArgb(),
                                                                             color2.ToArgb(),
                                                                             angle,
                                                                             isAngleScalable,
                                                                             WrapMode.WrapModeTile,
                                                                             out brush);

            SetNativeBrush(brush);
        }
Exemple #2
0
 GdipGetLineWrapMode(GpLineGradient brush, out WrapMode wrapmode);
Exemple #3
0
 GdipSetLineWrapMode(GpLineGradient brush, WrapMode wrapmode);
Exemple #4
0
 GdipSetLineLinearBlend(GpLineGradient brush, float focus, float scale);
Exemple #5
0
 GdipCreateLineBrushFromRectI(ref GpRect rect,
                              int color1, int color2,
                              LinearGradientMode mode,
                              WrapMode wrapMode,
                              out GpLineGradient lineGradient);
Exemple #6
0
 GdipRotateLineTransform(GpLineGradient brush, float angle,
                         MatrixOrder order);
Exemple #7
0
 GdipTranslateLineTransform(GpLineGradient brush, float dx, float dy,
                            MatrixOrder order);
Exemple #8
0
 GdipResetLineTransform(GpLineGradient brush);
Exemple #9
0
 GdipGetLineGammaCorrection(GpLineGradient brush, out bool useGammaCorrection);
Exemple #10
0
 GdipSetLineGammaCorrection(GpLineGradient brush, bool useGammaCorrection);
Exemple #11
0
 GdipGetLineRectI(GpLineGradient brush, out GpRect rect);
Exemple #12
0
 GdipGetLineColors(GpLineGradient brush, int[] colors);
Exemple #13
0
 GdipSetLineColors(GpLineGradient brush, int color1, int color2);
Exemple #14
0
 GdipCreateLineBrushFromRectWithAngleI(ref GpRect rect,
                                       int color1, int color2,
                                       float angle,
                                       bool isAngleScalable,
                                       WrapMode wrapMode,
                                       out GpLineGradient lineGradient);
Exemple #15
0
 GdipGetLineTransform(GpLineGradient brush, out GpMatrix matrix);
Exemple #16
0
 GdipSetLineTransform(GpLineGradient brush, GpMatrix matrix);
Exemple #17
0
 GdipGetLineBlend(GpLineGradient brush, float[] blendfactors, float[] positions,
                  int count);
Exemple #18
0
 GdipMultiplyLineTransform(GpLineGradient brush, GpMatrix matrix,
                           MatrixOrder order);
Exemple #19
0
 GdipGetLinePresetBlendCount(GpLineGradient brush, out int count);
Exemple #20
0
 GdipScaleLineTransform(GpLineGradient brush, float sx, float sy,
                        MatrixOrder order);
Exemple #21
0
 GdipSetLinePresetBlend(GpLineGradient brush, int[] blend,
                        float[] positions, int count);
Exemple #22
0
 GdipSetLineSigmaBlend(GpLineGradient brush, float focus, float scale);
Exemple #23
0
 GdipCreateLineBrushI(ref GpPoint point1,
                      ref GpPoint point2,
                      int color1, int color2,
                      WrapMode wrapMode,
                      out GpLineGradient lineGradient);