コード例 #1
0
ファイル: ASCIIGenerator.cs プロジェクト: jnpco98/ASCIIfy.net
 /// <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
ファイル: ASCIIGenerator.cs プロジェクト: jnpco98/ASCIIfy.net
 /// <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
ファイル: ASCIIGenerator.cs プロジェクト: jnpco98/ASCIIfy.net
 /// <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)));
 }