Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Drawing script


  • Please log in to reply
19 replies to this topic

#1 CoePSX

CoePSX

    Polymath

  • Active Members
  • PipPipPipPip
  • 237 posts

Posted 30 May 2008 - 01:12 PM

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...

Attached Files


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.








#2 UQOII

UQOII

    Wayfarer

  • Active Members
  • Pip
  • 59 posts

Posted 30 May 2008 - 08:51 PM

its a really good script THANK YOU!
maybe optinal things: Not only black but different colors?

#3 TnTProductions

TnTProductions

    Adventurer

  • Active Members
  • PipPip
  • 125 posts

Posted 30 May 2008 - 10:09 PM

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

Firestrom: global $warming = False

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"

#4 BLuFeNiX

BLuFeNiX

    Seeker

  • Active Members
  • 28 posts

Posted 31 May 2008 - 06:46 AM

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

#5 GHOSTSKIKDA

GHOSTSKIKDA

    Wayfarer

  • Active Members
  • Pip
  • 56 posts

Posted 31 May 2008 - 02:58 PM

Thanks !!!!

I LOVE ALGERIA .... ;-)


#6 Andreik

Andreik

    Bishop

  • Active Members
  • PipPipPipPipPipPip
  • 2,587 posts

Posted 31 May 2008 - 03:08 PM

Nice script. Thanks CoePSX! :)
When the words fail... music speaks

#7 zentral

zentral

    Seeker

  • Active Members
  • 38 posts

Posted 31 May 2008 - 09:29 PM

Amazing ! 4 stars
forgive me for my crappy english.

#8 Hok

Hok

    Wayfarer

  • Active Members
  • Pip
  • 55 posts

Posted 01 June 2008 - 10:18 AM

Wow is all I can say...

#9 James

James

    Universalist

  • MVPs
  • 10,223 posts

Posted 01 June 2008 - 10:27 AM

Impressive!

#10 ludocus

ludocus

    Possibly inventive crap going on right here

  • Active Members
  • PipPipPipPipPipPip
  • 668 posts

Posted 03 June 2008 - 03:50 PM

unbelieveble!

#11 ptrex

ptrex

    Universalist

  • MVPs
  • 2,413 posts

Posted 03 June 2008 - 08:13 PM

@CoePSX

Very nice !! :)

regards

ptrex

#12 weaponx

weaponx

    I'm coming for blood, no code of conduct, no law.

  • MVPs
  • 5,366 posts

Posted 03 June 2008 - 08:21 PM

That is pretty freaking sweet.

#13 olivarra1

olivarra1

    Seeker

  • Active Members
  • 47 posts

Posted 03 June 2008 - 08:37 PM

Amazing!!! :) :)

very good job :):D

olivarra1

#14 monoceres

monoceres

    asdf

  • MVPs
  • 4,019 posts

Posted 03 June 2008 - 09:11 PM

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!


#15 monoceres

monoceres

    asdf

  • MVPs
  • 4,019 posts

Posted 18 June 2008 - 11:47 AM

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

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


#16 aslani

aslani

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 306 posts

Posted 20 June 2008 - 01:29 AM

:) WOW!

..I mean...WOW! :P

#17 Rawox

Rawox

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 323 posts

Posted 05 May 2010 - 09:12 PM

This script is really awesome! :idea:

#18 logmein

logmein

    Polymath

  • Active Members
  • PipPipPipPip
  • 214 posts

Posted 07 May 2010 - 11:09 AM

Nice script!

#19 Shafayat

Shafayat

    Polymath

  • Active Members
  • PipPipPipPip
  • 245 posts

Posted 07 May 2010 - 03:06 PM

Beautifully done. Great work
[Not using this account any more. Using "iShafayet" instead]

#20 jiyeow

jiyeow

    Seeker

  • New Members
  • 1 posts

Posted 12 June 2010 - 06:07 AM

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, 12 June 2010 - 06:09 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users