画矩形:bool imagerectangle ( resource $image画布资源 , int $x1左上角的坐标 , int $y1 , int $x2 右下角坐标, int $y2 , int $col颜色 ) 填充颜色用imagefilledrectangle();参数和上面的一样 画椭圆:bool imageellipse ( resource $image , int $cx中心坐标 , int $cy , int $width宽度 , int $height高度 , int
有了上一节画线的基础,画矩形的各种边线就特别好理解了,所以,本节在矩形边线上,就不做过多的讲解了,关注一下画“随机矩形”的具体实现就好.与画线相比较,画矩形稍微复杂的一点就是在于它多了很多填充的样式.接下来,我们就来细细品味一番. 同样,一个窗体项目,窗体的布局风格与上一节的保持一致: namespace MikeWare.GdiPlus.Rectangles { using System; using System.Collections.Generic; using System.Drawi
Problem Description Give you the width and height of the rectangle,darw it. Input Input contains a number of test cases.For each case ,there are two numbers n and m (0 < n,m < 75)indicate the width and height of the rectangle.Iuput ends of EOF.