Sign in to follow this  
Followers 0

Drawing script

20 posts in this topic

Posted

Hi :)

I've been working on this script in the last few days, and although it's not so small, I believe it can serve a few coding examples and provide some fun.

It's idea is simple: It reads an image, makes it b/w, and using the mouse it draws this image. I made this to draw images on handwrite messages in MSN, but it can be tested in Paint or any other image editor.

The image processing is done by capturing the image, and using the GetBitmapBits API to get the pixels' colors. Based on the pixels color and the set sensitivity, it will be either black or white (the black part is the one that is going to be drawn).

The drawing was a little bit harder to get working on big images. To make it look more like drawing than like printing, the script draws black areas using recursion. In big areas this would overflow the call stack, so I use an array as a custom stack. The random drawing pattern is my favorite.

This is practically useless, but I have a lot of fun using this in MSN. But people don't believe I draw that good...

drawingscript.au3

mae.bmp

Share this post


Link to post
Share on other sites



Posted

its a really good script THANK YOU!

maybe optinal things: Not only black but different colors?

Share this post


Link to post
Share on other sites

Posted

nice work! You could add useful things to this like a quick note writer with the paint being on your desktop ( easy place to remember)

Share this post


Link to post
Share on other sites

Posted

that's pretty cool, i like watching it in mspaint :)

Share this post


Link to post
Share on other sites

Posted

Thanks !!!!

Share this post


Link to post
Share on other sites

Posted

Nice script. Thanks CoePSX! :)

Share this post


Link to post
Share on other sites

Posted

Amazing ! 4 stars

Share this post


Link to post
Share on other sites

Posted

Wow is all I can say...

Share this post


Link to post
Share on other sites

Posted

Impressive!

Share this post


Link to post
Share on other sites

Posted

unbelieveble!

Share this post


Link to post
Share on other sites

Posted

@CoePSX

Very nice !! :)

regards

ptrex

Share this post


Link to post
Share on other sites

Posted

That is pretty freaking sweet.

Share this post


Link to post
Share on other sites

Posted

Amazing!!! :) :)

very good job :):D

olivarra1

Share this post


Link to post
Share on other sites

Posted

Among the coolest thing I ever saw :)

It would be even greater if it could draw colors in paint :)

:)

Share this post


Link to post
Share on other sites

Posted

:) WOW!

..I mean...WOW! :P

Share this post


Link to post
Share on other sites

Posted

This script is really awesome! :idea:

Share this post


Link to post
Share on other sites

Posted

Nice script!

Share this post


Link to post
Share on other sites

Posted

Beautifully done. Great work

Share this post


Link to post
Share on other sites

Posted (edited)

Somehow it is not working for me, I've Windows XP. When i tried Autodrawing a picture, lets say for example this one:

Posted Image

I come out with this result when i try drawing it on Paint.

Posted Image

Posted Image

After analyzing the picture, it is like as if the missing pixels on the right face version are at the left. Also there is a huge block of drawing underneath it for some reason.

Edited by jiyeow

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.