Xwt.Drawing.Image.WithSize C# (CSharp) 메소드

WithSize() 공개 메소드

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)
리턴 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