Member name Description
Tile Tiles the gradient or texture.
TileFlipX Reverses the texture or gradient horizontally and then tiles the texture or gradient.
TileFlipY Reverses the texture or gradient vertically and then tiles the texture or gradient.
TileFlipXY Reverses the texture or gradient horizontally and vertically and then tiles the texture or gradient.
Clamp The texture or gradient is not tiled.我的代码:
//渐变的方法.
        void LinearGradienBrushPainting(WrapMode wrapMode) {
            //实例化两个Point类
            Point p1 = new Point(100, 100);
            Point p2 = new Point(150, 150);
            //实例化LinerGradientBrush类,设置其使用黑色和白色进行渐变
            LinearGradientBrush lgb = new LinearGradientBrush(p1, p2, Color.Black, Color.White);
            Graphics ghs = this.CreateGraphics();//实例化Graphics类
            //设置WrapMode属性指示该LinearGradientBrush的环绕模式
            lgb.WrapMode = wrapMode;
            ghs.FillRectangle(lgb, 15, 15, 150, 150);//填充绘制矩形
        }
但我传递给我的代码中的方法LinearGradienBrushPainting的时候,发现,"TileFlipX"和"TileFlipXY"两个值的图是一样的.还有"Tile"和"TileFlipY"的图也是一样的...
麻烦大家帮我解释一下,这几个枚举是怎么转的,不是要英文翻译那几个枚举意思...