public static void FillQuad(this IntPtr bmp, int width, int height, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, Color color) { var col = color.Intify(); bmp.FillQuad(width, height, x1, y1, x2, y2, x3, y3, x4, y4, col); }
public static void DrawLine(this RenderContext context, Point p1, Point p2, Color color) { context.DrawLine(p1, p2, color.Intify()); }
public static void DrawEllipse(this RenderContext context, VectorD center, VectorD radius, Color color) { context.BackBuffer.DrawEllipse((int)center.X, (int)center.Y, (int)radius.X, (int)radius.Y, color.Intify(), context.Width, context.Height); }
public static void DrawLineVector(this IntPtr target, VectorD start, VectorD stop, Color colour, int width, int height) { var col = colour.Intify(); target.DrawLineVector(start, stop, (d, d1, position) => col, width, height); }
public static void DrawEllipse(this RenderContext context, VectorD center, VectorD radius, Color color) { context.BackBuffer.DrawEllipse((int) center.X, (int) center.Y, (int) radius.X, (int) radius.Y, color.Intify(), context.Width, context.Height); }