Sign in to follow this  
Followers 0

Drawing script

20 posts in this topic

#1 ·  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


[quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"][/font]

Share this post


Link to post
Share on other sites



#2 ·  Posted

its a really good script THANK YOU!

maybe optinal things: Not only black but different colors?


[center]uqoii.nl[/center]

Share this post


Link to post
Share on other sites

#3 ·  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)


"FREEDOM is not FREE""Its a good thing war is so terrible, or we grow too fond of it" -Robert E. Lee[quote]Firestrom: global $warming = False[/quote]My scripts:Desktop Cleaner---->Total Downloads:167;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111111;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;"a wise man once said why use your skills when we have technology"

Share this post


Link to post
Share on other sites

#4 ·  Posted

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

Share this post


Link to post
Share on other sites

#5 ·  Posted

Thanks !!!!


[center]I LOVE ALGERIA .... ;-)[/center]

Share this post


Link to post
Share on other sites

#6 ·  Posted

Nice script. Thanks CoePSX! :)


When the words fail... music speaks

Share this post


Link to post
Share on other sites

#7 ·  Posted

Amazing ! 4 stars


forgive me for my crappy english.

Share this post


Link to post
Share on other sites

#8 ·  Posted

Wow is all I can say...

Share this post


Link to post
Share on other sites

#10 ·  Posted

unbelieveble!


Udf's:[topic="71394"]MiscConstants[/topic] - [topic="72249"]LangConstants[/topic] - [topic="70857"]Webcam Udf[/topic][topic="67425"]Set Walpaper[/topic] - [topic="71458"]Movie Udf[/topic] - [topic="74583"]Cmd Udf[/topic][topic="81662"]Find Lyrics Udf[/topic] - [topic="81935"]CustomBox Udf[/topic] - [topic="119885"]_Communicate UDF[/topic]Progs:[topic="71722"]HandyScript[/topic] - [topic="71148"]Basic Calc[/topic] - [topic="68178"]Cool win effect![/topic][topic="72535"]Easy Editor[/topic] - [topic="73070"]Billing[/topic] - [topic="73210"]Calculate energy cost[/topic][topic="74249"]Watch out![/topic] - [topic="74783"]WinHider[/topic] - [topic="75236"]SBA Task Manager[/topic][topic="119185"]Ultimate Talker[/topic] - [topic="119483"]Password Safer[/topic] - [topic="120223]FreeRider GameConsole[/topic][topic="125852"]Face regognizer[/topic]White Eagle Media Player: [topic="75854"]topic[/topic] downloadAll My Scripts[URL=http://swagbucks.com/?cmd=sb-register&rb=2427158][IMG]http://prodegebanners.sitegrip.com/images/swagbucks-468x60Alt4.jpg[/IMG][/URL](You'll get swagbucks and you can trade 'em in for prizes directly!)

Share this post


Link to post
Share on other sites

#12 ·  Posted

That is pretty freaking sweet.

Share this post


Link to post
Share on other sites

#13 ·  Posted

Amazing!!! :) :)

very good job :):D

olivarra1

Share this post


Link to post
Share on other sites

#14 ·  Posted

Among the coolest thing I ever saw :)

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

:)


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

#15 ·  Posted

I have uploaded a video that demonstrates your script in action :)

http://www.youtube.com/watch?v=vmOj-j7HTwY


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

#17 ·  Posted

This script is really awesome! :idea:

Share this post


Link to post
Share on other sites

#19 ·  Posted

Beautifully done. Great work


[Not using this account any more. Using "iShafayet" instead]

Share this post


Link to post
Share on other sites

#20 ·  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