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); }
GdipGetLineWrapMode(GpLineGradient brush, out WrapMode wrapmode);
GdipSetLineWrapMode(GpLineGradient brush, WrapMode wrapmode);
GdipSetLineLinearBlend(GpLineGradient brush, float focus, float scale);
GdipCreateLineBrushFromRectI(ref GpRect rect, int color1, int color2, LinearGradientMode mode, WrapMode wrapMode, out GpLineGradient lineGradient);
GdipRotateLineTransform(GpLineGradient brush, float angle, MatrixOrder order);
GdipTranslateLineTransform(GpLineGradient brush, float dx, float dy, MatrixOrder order);
GdipResetLineTransform(GpLineGradient brush);
GdipGetLineGammaCorrection(GpLineGradient brush, out bool useGammaCorrection);
GdipSetLineGammaCorrection(GpLineGradient brush, bool useGammaCorrection);
GdipGetLineRectI(GpLineGradient brush, out GpRect rect);
GdipGetLineColors(GpLineGradient brush, int[] colors);
GdipSetLineColors(GpLineGradient brush, int color1, int color2);
GdipCreateLineBrushFromRectWithAngleI(ref GpRect rect, int color1, int color2, float angle, bool isAngleScalable, WrapMode wrapMode, out GpLineGradient lineGradient);
GdipGetLineTransform(GpLineGradient brush, out GpMatrix matrix);
GdipSetLineTransform(GpLineGradient brush, GpMatrix matrix);
GdipGetLineBlend(GpLineGradient brush, float[] blendfactors, float[] positions, int count);
GdipMultiplyLineTransform(GpLineGradient brush, GpMatrix matrix, MatrixOrder order);
GdipGetLinePresetBlendCount(GpLineGradient brush, out int count);
GdipScaleLineTransform(GpLineGradient brush, float sx, float sy, MatrixOrder order);
GdipSetLinePresetBlend(GpLineGradient brush, int[] blend, float[] positions, int count);
GdipSetLineSigmaBlend(GpLineGradient brush, float focus, float scale);
GdipCreateLineBrushI(ref GpPoint point1, ref GpPoint point2, int color1, int color2, WrapMode wrapMode, out GpLineGradient lineGradient);