private static int[] GetProportionalThumbnailSize(int originalWidth, int originalHeight) { int realWidth = ThumpnailWidth; int realHeight = ThumpnailHeight; realHeight = originalHeight * ThumpnailHeight / originalWidth; return new int[] { realWidth, realHeight }; } #endregion