Results 1 to 4 of 4

Thread: COde needed

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2012
    Posts
    2

    COde needed

    Hello. need help
    can some1 help me with the code for converting an image into a pencil sketch in vb.. please

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: COde needed

    Please provide more information. Do you mean something along the lines of applying a pencil sketch effect on an image?
    Have you tried to find a solution on google?
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2012
    Posts
    2

    Re: COde needed

    i want entire image or a photo to be converted into pencil sketch.. just like converting it into a grayscale or negative.

  4. #4
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: COde needed

    To do a simple desaturation, for each pixel, take R, G and B values, average them, and then assign the averaged value to all three.

    R:20, G:90, B:40 = (20+90+40)/3 = 50 = R:50, G:50, B:50
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width