Exemplo n.º 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))));
 }
Exemplo n.º 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))));
 }
Exemplo n.º 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)));
 }