+ Reply to Thread
Showing results 1 to 6 of 6

Thread: Paint Filter Tutorial

  1. #1
    The Sexy Penguin Senior Member
    Moderator

    Prophet
    LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX's Avatar
    Join Date
    Feb 2005
    Location
    astrotravelin'
    Posts
    7,770

    Default Paint Filter Tutorial

    Here is a filter tutorial I wrote. A filter is an effect that is applied to an image like in a photoshop program, there are tons of effects you can do with a filter I've listed how to do a few, so you guys can discover some for your selves .
    [Filter Tutorial]
    By LCSBSSRHXXX

    Hey every one I wrote this tutorial because it was pretty hard to figure out how to make filters for my paint program, I got a little help from my dad with some of the ways to process an image, and some I figured out by going into photo shop and finding the differences from the RGB values in the original picture and the return picture
    and I spent a few days expermenting and writing filters from trial and error and from thinking.

    Grey Scale
    The average of the RGB values then the avrage of the pixel's RGB apply that value to the RGB values

    Invert Colors
    Subtract The RGB values from 255.
    Birghten
    Add to the RGB value.
    Darken
    Subtract to the RGB value.
    Dodge
    Multiply the RGB value by 2.
    Burn
    Divide the RGB value by 2.
    Noise
    Add or subtract a random number from the RGB values.

    Here Are Two In Depth Tutorials For Making A Filter, With Examples

    Grey Scale
    grey scale is the color range from black (RGB(0,0,0)) to white (RGB(255,255,255)) if you want to convert an image
    to grey scale you need to get all the RGB values equal, the method I used to convert a image to grey scale is:
    [1] Get Images Pixels
    [2] Set a variable to the value of the average of the pixels RGB values set a variable to it (greycolor = R + G + B / 3)
    [3] Set a pixel with "greycolor" (The variable you set the average of the pixel's RGB) over the old pixel, this gets the
    pixel into grey scale

    example:

    Code:
    Dim greycolor as Integer
    Private Declare Function SetPixel Lib "Gdi32" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long, ByVal crColor As Long) As Long
    Private Sub Invert()
    For Y = 0 To (Picture.Height / Screen.TwipsPerPixelY)
    For X = 0 To (Picture1.Width / Screen.TwipsPerPixelX)
    R =Picture1.Point(X, Y) And 255
    G = (Picture1.Point(X, Y) And 65280) / 256
    B = (Picture1.Point(X, Y) And 16711680) / 65535
    greycolor = (R + G + B) / 3
    SetPixel Picture1.hdc, X, Y, RGB(greycolor, greycolor, greycolor)
    Next X
    Next Y
    End Sub
    Invert Colors
    Inverting colors takes a image and turns the colors to oppisite colors, or inverted colors. To invert an image I do this:
    [1] Get Images Pixels
    [2] Set a pixel with RGB(255 - R, 255 - G, 255 - B)

    example:
    Code:
    Private Declare Function SetPixel Lib "Gdi32" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long, ByVal crColor As Long) As Long
    Private Sub Invert()
    For Y = 0 To (PicBox.Height / Screen.TwipsPerPixelY)
    For X = 0 To (Picture1.Width / Screen.TwipsPerPixelX)
    R =Picture1.Point(X, Y) And 255
    G = (Picture1.Point(X, Y) And 65280) / 256
    B = (Picture1.Point(X, Y) And 16711680) / 65535
    greycolor = (R + G + B) / 3
    SetPixel Picture1.hdc, X, Y, RGB(255 - R, 255 - G, 255 - B)
    Next X
    Next Y
    End Sub
    Last edited by LCSBSSRHXXX : 04-03-2005 at 10:05 PM
    Quote Originally Posted by ston3rpimp69 View Post
    hello im the official spokesperson for lcs' awesome group only cool ppl can join and here is my official statement

    YO FUKC U PUNK ASS FGTS THIS GROUP IS FOR AWESOME MOTHERFUKCERS DOING AWESOME MOTHERFUKCIN THINGS AND DISCUSSING IMPORTANT AND PROFOUND TOPICS SUCH AS SUBSTANCE EXCHANGE RATES, JAILBAIT, COOKIN CRANK, TRISH'S SNATCH, BEER AND TACOS. WE ALSO GO ON FIELD TRIPS AND SIHT. SO IF UR INTO BEATIN HOMELESS PPL WITH SOCKS FULL OF BATTERIES THEN JOIN THIS FUKCIN GROUP CUZ U CANT BE A SCARED LITTLE BITCH ALL UR LIFE
    Quote Originally Posted by ston3rpimp69
    so at first i was excited cuz i was gettin laid. but then i thought about it. i dunno, maybe it's cuz i hadn't had anything to drink, but i almost panicked. i was thinkin this bitch takes in dicks like air and has probably done some pretty wild siht that i've only seen in vids from dsg's porn collection. she probably needs 4 cocks and a slip n slide to get off. that's kinda intimidating. that and i was worried that my dick might get the plague and fall off. might have to coat the condom in pesticide and wear a trash bag or something. i almost let it end there. almost. it's hard to say no when she's biting my shoulder as i walk her to her car. at least she doesn't waste time.

  2. #2
    Senior Member

    Crusader
    Uniquely_Defined has much to be proud of Uniquely_Defined has much to be proud of Uniquely_Defined has much to be proud of Uniquely_Defined has much to be proud of Uniquely_Defined has much to be proud of Uniquely_Defined has much to be proud of Uniquely_Defined's Avatar
    Join Date
    Dec 2004
    Posts
    3,341

    Default

    Nice job on the tutorial. Thanks for writing it, gave me a little insight to filters.
    Don't mess with my wiggle.

    ZyZ (11:05:48 PM): I'm
    ZyZ (11:05:49 PM): ****ing
    ZyZ (11:05:49 PM): bi

  3. #3
    Wtf is an acolyte?
    Evangelist
    Noober is a jewel in the rough Noober's Avatar
    Join Date
    Feb 2005
    Posts
    1,097

    Default

    Well if you're using Photoshop you can just do image>mode>grayscale, and to invert it just press ctrl+i.

  4. #4
    The Sexy Penguin Senior Member
    Moderator

    Prophet
    LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX has a reputation beyond repute LCSBSSRHXXX's Avatar
    Join Date
    Feb 2005
    Location
    astrotravelin'
    Posts
    7,770

    Default

    This tutorial explains how to make your own greyscale and other effects, basically the purpose of this tutorial is to explain how to go about making your own photoshop effects.
    Quote Originally Posted by ston3rpimp69 View Post
    hello im the official spokesperson for lcs' awesome group only cool ppl can join and here is my official statement

    YO FUKC U PUNK ASS FGTS THIS GROUP IS FOR AWESOME MOTHERFUKCERS DOING AWESOME MOTHERFUKCIN THINGS AND DISCUSSING IMPORTANT AND PROFOUND TOPICS SUCH AS SUBSTANCE EXCHANGE RATES, JAILBAIT, COOKIN CRANK, TRISH'S SNATCH, BEER AND TACOS. WE ALSO GO ON FIELD TRIPS AND SIHT. SO IF UR INTO BEATIN HOMELESS PPL WITH SOCKS FULL OF BATTERIES THEN JOIN THIS FUKCIN GROUP CUZ U CANT BE A SCARED LITTLE BITCH ALL UR LIFE
    Quote Originally Posted by ston3rpimp69
    so at first i was excited cuz i was gettin laid. but then i thought about it. i dunno, maybe it's cuz i hadn't had anything to drink, but i almost panicked. i was thinkin this bitch takes in dicks like air and has probably done some pretty wild siht that i've only seen in vids from dsg's porn collection. she probably needs 4 cocks and a slip n slide to get off. that's kinda intimidating. that and i was worried that my dick might get the plague and fall off. might have to coat the condom in pesticide and wear a trash bag or something. i almost let it end there. almost. it's hard to say no when she's biting my shoulder as i walk her to her car. at least she doesn't waste time.

  5. #5
    Senior Member

    Saint
    punture has a brilliant future punture has a brilliant future punture has a brilliant future punture has a brilliant future punture has a brilliant future punture has a brilliant future punture has a brilliant future punture's Avatar
    Join Date
    Jul 2004
    Location
    Vancouver, B.C. Canada
    Posts
    6,443

    Default

    Can I just leech some tutorials off of some siteS???

    Of course I'll give credit..

  6. #6

    Disciple
    FireXtol is on a distinguished road FireXtol's Avatar
    Join Date
    Dec 2004
    Location
    between d and t
    Posts
    409

    Default

    Those aren't filters. *shakes head*

    All good filters use matrices... And a better filter uses a large matrix!

    There's even a greyscale and inversion matrix.

    And I'm pretty sure L=0.3*RED+0.59*GREEN+0.11*Blue, is faster at color to greyscale conversion than (r+g+b)/3. Which you could then bitshift and logically AND together to form a 24 bit greyscale image...:

    L=0.3*RED+0.59*GREEN+0.11*Blue
    c= L * 256 'bitshift
    c= (c and L) * 256 ' GR
    c= c and L 'BGR

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Advanced: Name Spoofer Tutorial
    By OverFlow636 in forum Hacking Tutorials
    Replies: 5
    Last Post: 01-25-2010, 02:09 PM
  2. Gamehacking tutorial
    By NickF in forum Starcraft/Brood War
    Replies: 85
    Last Post: 01-08-2008, 10:37 PM
  3. By-passing the word filter.
    By saren in forum Website Feedback
    Replies: 41
    Last Post: 04-11-2005, 12:35 AM
  4. Tutorial help
    By NoFinalTruth in forum Software Development
    Replies: 29
    Last Post: 12-17-2004, 04:38 AM
  5. Need tutorial to get started that doesnt ask for TMK
    By Saint(305) in forum Starcraft/Brood War
    Replies: 0
    Last Post: 09-17-2004, 04:13 PM

Posting Rules

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