/// <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)))); }
/// <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)))); }
/// <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))); }