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