System.Drawing.TextureBrush.ScaleTransform C# (CSharp) Method

ScaleTransform() public method

public ScaleTransform ( float sx, float sy ) : void
sx float
sy float
return void
        public void ScaleTransform(float sx, float sy)
        {
            this.ScaleTransform(sx, sy, MatrixOrder.Prepend);
        }

Same methods

TextureBrush::ScaleTransform ( float sx, float sy, MatrixOrder order ) : void

Usage Example

Esempio n. 1
0
        public override System.Drawing.Brush CreateGDIBrush(RectangleF rc, float dx, float dy)
        {
            RectangleF rct = new RectangleF(0, 0, _image.Width, _image.Height);

            System.Drawing.TextureBrush brush =
                new System.Drawing.TextureBrush(_image, _wrapMode, rct);

            brush.TranslateTransform(dx, dy);
            brush.ScaleTransform(24.0f / 80, 24.0f / 80, MatrixOrder.Append);
            return(brush);
        }
All Usage Examples Of System.Drawing.TextureBrush::ScaleTransform