System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawRectangle C# (CSharp) Метод

DrawRectangle() публичный статический Метод

Draws a rectangle. x2 has to be greater than x1 and y2 has to be greater than y1.
public static DrawRectangle ( this bmp, int x1, int y1, int x2, int y2, Color color ) : void
bmp this The WriteableBitmap.
x1 int The x-coordinate of the bounding rectangle's left side.
y1 int The y-coordinate of the bounding rectangle's top side.
x2 int The x-coordinate of the bounding rectangle's right side.
y2 int The y-coordinate of the bounding rectangle's bottom side.
color Color The color.
Результат void
        public static void DrawRectangle(this WriteableBitmap bmp, int x1, int y1, int x2, int y2, Color color)
        {
            var col = ConvertColor(color);
            bmp.DrawRectangle(x1, y1, x2, y2, col);
        }

Same methods

WriteableBitmapExtensions::DrawRectangle ( this bmp, int x1, int y1, int x2, int y2, int color ) : void