コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImageResizer"/> class.
 /// </summary>
 /// <param name="maxWidth">Maximum Width .</param>
 /// <param name="maxHeight">Maximum Height</param>
 /// <param name="imgQuality">The image quality.</param>
 public ImageResizer(int maxWidth, int maxHeight)
 {
     _maxWidth = maxWidth;
     _maxHeight = maxHeight;
     _imgQuality = 100;
     _outputFormat = ImageFormat1.Jpeg;
 }
コード例 #2
0
 public ImageResizer()
 {
     _maxWidth = 800;
     _maxHeight = 800;
     _imgQuality = 100;
     _outputFormat = ImageFormat1.Jpeg;
 }