Bitmap bitmap;

const int width = 80;

const int height = 25;

List<char> colors = new List<char> { '#', '|', '!', ';', ',', '.', ' ' };


private void render(){

char[,] array2 = new char[height, width];

for (int i = 0; i < height; i++){

for (int j = 0; j < width; j++){

Color pixelColor = bitmap.GetPixel(bitmap.Width / width*j, bitmap.Height / height*i);


int index = (int)(pixelColor.GetBrightness() * colors.Count);

if (index >= colors.Count){

index = colors.Count - 1;

}

char color = colors[index];

array2[i, j] = color;

}

}

//파일쓰기

}


핵심부분만인데

그림->텍스트인데 다 비슷하게 한거같애 아마도..

피자 먹을 수 있는건가? ㅎㅎ