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 squaredSize ) : Image
squaredSize double Width and height of the image (the image is expected to be squared)
return Image
        public Image WithSize(double squaredSize)
        {
            return new Image (this) {
                requestedSize = new Size (squaredSize, squaredSize)
            };
        }

Same methods

Image::WithSize ( IconSize size ) : Image
Image::WithSize ( Size size ) : Image
Image::WithSize ( double width, double height ) : Image