Esempio n. 1
0
        public HatchBrush(HatchStyle hatchStyle,
                          Color foreColor,
                          Color backColor)
        {
            GpHatch brush = new GpHatch();

            lastResult = GdiPlus.GdipCreateHatchBrush(hatchStyle,
                                                      foreColor.ToArgb(),
                                                      backColor.ToArgb(),
                                                      out brush);
            SetNativeBrush(brush);
        }
Esempio n. 2
0
 GdipFillPolygon(GpGraphics graphics, GpHatch brush,
                 PointF[] points, int count, FillMode fillMode);
Esempio n. 3
0
 internal static extern GpStatus GdipGetHatchStyle(GpHatch brush, out HatchStyle hatchstyle);
Esempio n. 4
0
 internal static extern GpStatus GdipGetHatchForegroundColor(GpHatch brush, out int forecol);
Esempio n. 5
0
 internal static extern GpStatus GdipGetHatchBackgroundColor(GpHatch brush, out int backcol);
Esempio n. 6
0
 internal static extern GpStatus GdipCreateHatchBrush(HatchStyle hatchstyle, int forecol, int backcol, out GpHatch brush);
Esempio n. 7
0
        public HatchBrush(HatchStyle hatchStyle,
            Color foreColor,
            Color backColor)
        {
            GpHatch brush = new GpHatch();

            lastResult = GdiPlus.GdipCreateHatchBrush(hatchStyle,
                                                          foreColor.ToArgb(),
                                                          backColor.ToArgb(),
                                                          out brush);
            SetNativeBrush(brush);
        }
Esempio n. 8
0
 internal static extern GpStatus GdipGetHatchBackgroundColor(GpHatch brush, out int backcol);
Esempio n. 9
0
 internal static extern GpStatus GdipGetHatchForegroundColor(GpHatch brush, out int forecol);
Esempio n. 10
0
 internal static extern GpStatus GdipGetHatchStyle(GpHatch brush, out HatchStyle hatchstyle);
Esempio n. 11
0
 internal static extern GpStatus GdipCreateHatchBrush(HatchStyle hatchstyle, int forecol, int backcol, out GpHatch brush);
Esempio n. 12
0
 internal static extern GpStatus GdipFillPolygon(GpGraphics graphics, GpHatch brush,
     PointF[] points, int count, FillMode fillMode);