ImageGlass.ImageBox.GetScaledSize C# (CSharp) Method

GetScaledSize() public method

Returns the source T:System.Drawing.Size scaled according to the current zoom level
public GetScaledSize ( Size source ) : Size
source System.Drawing.Size The source to scale.
return System.Drawing.Size
        public virtual Size GetScaledSize(Size source)
        {
            return new Size((int)(source.Width * ZoomFactor), (int)(source.Height * ZoomFactor));
        }

Same methods

ImageBox::GetScaledSize ( int width, int height ) : Size
ImageBox::GetScaledSize ( SizeF source ) : SizeF
ImageBox::GetScaledSize ( float width, float height ) : SizeF
ImageBox