Xwt.Drawing.Image.WithSize C# (CSharp) Method

WithSize() public method

Retuns a copy of the image with a specific size
This is a lightweight operation. The image is scaled when it is rendered. The method doesn't make a copy of the image data.
public WithSize ( double width, double height ) : Image
width double Width.
height double Height.
return Image
        public Image WithSize(double width, double height)
        {
            return new Image (this) {
                requestedSize = new Size (width, height)
            };
        }

Same methods

Image::WithSize ( IconSize size ) : Image
Image::WithSize ( Size size ) : Image
Image::WithSize ( double squaredSize ) : Image