Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StaticImageResizeHandle"/> class - Propotional scaling (1=100%) .
 /// </summary>
 /// <param name="strFileName">The filename to reference</param>
 /// <param name="dblPercentage">Scale to percentage, if percentage scaling.</param>
 public StaticImageResizeHandle(string strFileName, double dblPercentage)
     : this(strFileName, StaticImageResizeHandle.detectContentType(strFileName), ResizeMethod.Propotional, dblPercentage, 0, 0, typeof(StaticImageResizeHandle).FullName, typeof(StaticImageResizeHandle))
 {
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StaticImageResizeHandle"/> class - Absolute scaling to pixels .
 /// </summary>
 /// <param name="strFileName">The filename to reference</param>
 /// <param name="intWidth">Scale to absolute width, if Size scaling</param>
 /// <param name="intHeight">Scale to absolute height, if Size scaling</param>
 public StaticImageResizeHandle(string strFileName, int intWidth, int intHeight)
     : this(strFileName, StaticImageResizeHandle.detectContentType(strFileName), ResizeMethod.Size, 0, intWidth, intHeight, typeof(StaticImageResizeHandle).FullName, typeof(StaticImageResizeHandle))
 {
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StaticImageResizeHandle"/> class - No scaling.
 /// Automatically detects content type based on strFilename's extension
 /// </summary>
 /// <param name="strFileName">The filename to reference</param>
 public StaticImageResizeHandle(string strFileName)
     : this(strFileName, StaticImageResizeHandle.detectContentType(strFileName))
 {
 }