The Sandbox Thread

1 post

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Animaonline Image WTF

Back to Forum: The Sandbox
  • User profile image
    Animaonline

    I don't even know how to explain this one... :/


    ... Some days ago, I caught a cold, and I have been staying at home for some days now.

    But today I was felling really drowsy, sick and bored as hell, so I made this little good for nothing WTF program! It opens an image file and goes through it, pixel by pixel, outputting the pixels as colorized characters... (Weird stuff)
    But at least it made me feel a little better Smiley

    Sample Source:
    int y = 0;
    int Counter = 0;
    for (int i = 0; i <>
    {
    if (i == Bitmap.Width)
    {
    i = 0;
    y += 1;
    ImageOutputASText.SelectedText = "n";
    if (Counter > Bitmap.Width * Bitmap.Height - 1)
    {
    MessageBox.Show("Reached the end");
    return;
    }
    }
    BitmapContents.SelectionStart = BitmapContents.TextLength;
    BitmapContents.SelectionColor = Bitmap.GetPixel(i, y);
    BitmapContents.SelectedText = txtOutputchar.Text;
    BitmapContents.SelectionColor = Bitmap.GetPixel(i, y);
    Counter += 1;
    }

    Check out my blog for more fun stuff Big Smile
    http://animaonline.blogspot.com/



Conversation locked

This conversation has been locked by the site admins. No new comments can be made.