예제 #1
0
 /// <summary>
 ///  Processesing done: Grayscaling, Resizing.
 /// </summary>
 /// <param name="bmp"> Source of the bitmap to be processed and passed to the ImageToASCII method. </param>
 /// <returns> Ascii string from the processed image. </returns>
 public string GenerateASCII(Bitmap bmp, int width)
 {
     return(ImageToASCII(ImageUtils.Grayscale(ImageUtils.ResizeImage(bmp, width))));
 }
예제 #2
0
 /// <summary>
 ///  Processesing done: Grayscaling, Resizing, Contrast Adjustment.
 /// </summary>
 /// <param name="bmp"> Source of the bitmap to be processed and passed to the ImageToASCII method. </param>
 /// <returns> Ascii string from the processed image. </returns>
 public string GenerateASCII(Bitmap bmp, int width, int contrastThreshold)
 {
     return(ImageToASCII(ImageUtils.Grayscale(ImageUtils.ResizeImage(ImageUtils.SetContrast(bmp, contrastThreshold), width))));
 }
예제 #3
0
 /// <summary>
 ///  Processesing done: Grayscaling.
 /// </summary>
 /// <param name="bmp"> Source of the bitmap to be processed and passed to the ImageToASCII method. </param>
 /// <returns> Ascii string from the processed image. </returns>
 public string GenerateASCII(Bitmap bmp)
 {
     return(ImageToASCII(ImageUtils.Grayscale(bmp)));
 }