|
|
@ -7,10 +7,23 @@ namespace kot |
|
|
|
{ |
|
|
|
{ |
|
|
|
static void Main(string[] args) |
|
|
|
static void Main(string[] args) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (args.Length < 1) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Console.WriteLine("missing input argument, pass \'help\' for more info"); |
|
|
|
|
|
|
|
System.Environment.Exit(0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (args[0] == "help") |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Console.WriteLine(@"maek ascii !!
|
|
|
|
|
|
|
|
kot <input> |
|
|
|
|
|
|
|
input argument /must/ be of types: {jpg, jpeg, png, bmp,}");
|
|
|
|
|
|
|
|
System.Environment.Exit(0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
string path = args[0]; |
|
|
|
string final = ""; |
|
|
|
string final = ""; |
|
|
|
string[] scale = {".",",",":",";","+","*","?","%","S","#","@"}; |
|
|
|
string[] scale = {".",",",":",";","+","*","?","%","S","#","@"}; |
|
|
|
//Array.Reverse(scale); |
|
|
|
//Array.Reverse(scale); |
|
|
|
var f = new Bitmap("./kurisu.jpg"); |
|
|
|
var f = new Bitmap(path); |
|
|
|
for (int i = 0; i < f.Height; i += 30) |
|
|
|
for (int i = 0; i < f.Height; i += 30) |
|
|
|
{ |
|
|
|
{ |
|
|
|
for (int z = 0; z < f.Width; z += 30) |
|
|
|
for (int z = 0; z < f.Width; z += 30) |
|
|
|