Page 1 of 2 12 LastLast
Results 1 to 40 of 52

Thread: Graphic Thingy

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Graphic Thingy

    Whoohoo. Aftyer seeing wossy/noteme's post yestday I decided to try and re-create his program after a few hours of work. Check it out. I'll get the app online as soon as I have cleared things up.

    Might not be as fast as the old woss but the app works

    http://pinouk.com/test/hack.htm


    Just to add woss has told me nothing about his algo so this is my version of wossnames and notme's idea.

    Pino
    Last edited by Pino; Feb 10th, 2006 at 02:18 PM.

  2. #2
    Fanatic Member
    Join Date
    May 2005
    Posts
    898

    Re: Graphic Thingy

    lol, I had a suspicion when I saw your GetPixel/Hex question in the VB.NET forum.
    "so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Graphic Thingy

    Not forgetting the cat himself...

    http://pinouk.com/test/woss.htm

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Graphic Thingy

    Quote Originally Posted by grilkip
    lol, I had a suspicion when I saw your GetPixel/Hex question in the VB.NET forum.
    I was rushing my conversion was all wrong. when i sat back and looked at it i relised. now its fixed.

    and for you

    http://pinouk.com/test/gil.htm

  5. #5
    Fanatic Member
    Join Date
    May 2005
    Posts
    898

    Re: Graphic Thingy

    do the picture in my sig please
    "so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman

  6. #6

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Graphic Thingy

    best i can do...

    http://pinouk.com/test/frog.htm

    i could play a bit more with size make it better but thats cool

  7. #7
    Fanatic Member
    Join Date
    May 2005
    Posts
    898

    Re: Graphic Thingy

    cool, thanks
    "so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman

  8. #8

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

  9. #9
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: Graphic Thingy

    My .NET code to do the same written in a few minutes

    Code:
    Dim MyImage As System.Drawing.Bitmap = System.Drawing.Image.FromFile(Server.MapPath("dsharp2.gif"))
                    Dim clr As System.Drawing.Color
            Dim pixelX As Integer
            Dim pixelY As Integer
    
            For pixelY = 0 To MyImage.Width - 2
                For pixelX = 0 To MyImage.Height - 2
                    clr = MyImage.GetPixel(pixelX, pixelY)
                    Response.Write("<font color='#" & Hex(clr.R) & Hex(clr.G) & Hex(clr.B) & "'>*</font>")
                Next
                Response.Write("<br/>")
            Next
    >.<
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  10. #10

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Graphic Thingy

    yours just does every pixel gonna be slow for large image

    will wrk though

  11. #11
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: Graphic Thingy

    Ehh. I wasnt going for perfection. Just was bored.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  12. #12

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Graphic Thingy

    i'm only kidding. Its cool does essentially the same. I've just spent longer on optimisation.

  13. #13
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: Graphic Thingy

    Mine doesnt handle colors properly for some reason though. Some colors arent picked up at all. I think its the loading of the gif and its loading it at a very low quality.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  14. #14
    Banned
    Join Date
    Oct 2005
    Posts
    22

    Re: Graphic Thingy

    Wossy tells me he is most honoured that you pay such homage to him. Also he thinks you are a bunch of amateurs, although he said it with lots of swearing. and some words I didn't understand.

    Woss is going to ask mooseman if he can post the alg here.

    Oh and cander, there is no need to separate into R, G and B, just AND mask with 0xffffff and zero-pad left to 6 digits.

    Thats what wossy told me anyway. He's really smart

  15. #15
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Graphic Thingy

    Thats not what I hear. He told me that you guys are giving better code then his but he is appreciative of your immatation as its a form of flattery.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  16. #16
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    :)

    _________________
    _101010101010101_
    _101010101010101_
    _101010101010101_
    _101010101010101_
    _101010101010101_
    _101010101010101_
    _101010101010101_
    _101010101010101_
    _101010101010101_
    _101010101010101_
    _101010101010101_
    _101010101010101_
    _101010101010101_
    _101010101010101_
    _101010101010101_
    _________________

    Using this GetDIBits code for speed.
    Last edited by iPrank; Feb 10th, 2006 at 04:44 PM.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  17. #17

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Graphic Thingy

    Here is the app if anyone is interested. It lets you view the output in the app but saves a HTML file in c:\ (test.html)

    As i Say not perfect and you can crash it if you mess around but works well otherwise. 100x100 pixel images tops. Avatars are perfect 65/65 ish

    its vb .Net 2005 exe for those without VS

    Thnaks
    Attached Files Attached Files
    Last edited by Pino; Feb 11th, 2006 at 08:39 AM.

  18. #18
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Graphic Thingy

    Quote Originally Posted by Pino
    yours just does every pixel gonna be slow for large image

    will wrk though

    Looking at your first picture:
    <font color='#000000'>#</font><font color='#000000'>#</font><font color='#000000'>#</font><font color='#000000'>#</font>

    hmmmm....

  19. #19

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Graphic Thingy

    Hey i'm working on it. The app at the mo works. And actually I was just doing that because I was trying to reduce one down to fit on the forum.

  20. #20
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Graphic Thingy

    Yeah yeah yeah...blame it on that..



    - ØØ -

  21. #21

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Graphic Thingy

    Ok fixed that gonna upload latest attatchments now.

    Speed sifferance is quite impressive....

  22. #22

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Graphic Thingy

    Quote Originally Posted by NoteMe
    Yeah yeah yeah...blame it on that..



    - ØØ -

  23. #23
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Graphic Thingy

    Maby you shouold move this thread to CodeBank after some cleaning up?

    Can I get my yoda with black background? Oops, sorry. forgot you did already.
    http://pinouk.com/test/yoda.htm
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  24. #24
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Graphic Thingy

    Your HTML sucks.


  25. #25

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Graphic Thingy

    Why ?

  26. #26
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Graphic Thingy

    Where are the <html> tags?

  27. #27
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: Graphic Thingy

    Who wants to try to code it server-side using PHP (if its even possible) and give the user the option to upload the pic

  28. #28

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Graphic Thingy

    You could just use asp.net

  29. #29

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Graphic Thingy

    Quote Originally Posted by penagate
    Where are the <html> tags?
    shhhhh who needs them?

  30. #30
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: Graphic Thingy

    Quote Originally Posted by Pino
    shhhhh who needs them?
    Everyone does!

    Me and Penagate should have ours done soon - expect a reply in a little while

    ... As for ASP.NET I don't use anything written by MS. PHP works better and its open source, 2 for the price of 1!

    Cheers,

    Ryan Jones
    Last edited by sciguyryan; Feb 11th, 2006 at 02:32 PM.
    My Blog.

    Ryan Jones.

  31. #31

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Graphic Thingy

    lol we shuld have made this a contest

    Look forward to seeing it.

  32. #32
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Graphic Thingy

    Here is my code in VB6.

    It will not resize picture, but it has <HTML> tag.

    It saves the files in App.Path
    test.html is the result HTML file and VBcode.txt is vBulletin code.

    Edit:Any idea how to shorten the following line ,
    VB Code:
    1. Replace(Format(Hex$(pixels(pixG, X, Y)), "@@"), " ", "0", 1, -1, vbTextCompare)
    Attached Files Attached Files
    Last edited by iPrank; Feb 11th, 2006 at 02:38 PM.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  33. #33
    Fanatic Member
    Join Date
    May 2005
    Posts
    898

    Re: Graphic Thingy

    I see I am not the only one who is bored this saturday.
    "so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman

  34. #34
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Graphic Thingy

    Ryan and my entry
    http://penagate.spiralmindsinc.com/m...age-upload.php

    Works for PNG's, JPEG's, and GIF's. Two demos - Note's and Woss's avatars. Let me know any problems.


  35. #35
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Graphic Thingy

    Working only in IE6.

    Can't display anything in Opera 8.5 and Firefox 1.5

    In Opera also showing a warning :
    Code:
    Warning: You are viewing a Markup Mangled version of the original page. This suggests you are using an old browser, we suggest you upgrade to an XHTML compliant browser.
    Error messages in the black area (Opera & Fx) :
    Code:
    Warning:  imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error:  in /home/penagate/public_html/misc/image-upload.php on line 181
    Warning:  imagecreatefromjpeg(): 'image-uploads/Girl.jpg' is not a valid JPEG file in /home/penagate/public_html/misc/image-upload.php on line 181
    Warning:  imagesx(): supplied argument is not a valid Image resource in /home/penagate/public_html/misc/image-upload.php on line 41
    Warning:  imagesy(): supplied argument is not a valid Image resource in /home/penagate/public_html/misc/image-upload.php on line 42
    Last edited by iPrank; Feb 11th, 2006 at 11:05 PM. Reason: removed blank lines
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  36. #36
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Graphic Thingy

    Your JPEG image is corrupt.

  37. #37
    Fanatic Member
    Join Date
    May 2005
    Posts
    898

    Re: Graphic Thingy

    I just tried ipranks avatar and it worked fine.

    Too bad you limit to 30kb, I tried to upload a wallpaper
    "so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman

  38. #38
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Graphic Thingy

    Lol, it would take forever :-P

  39. #39
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

  40. #40
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Graphic Thingy

    It is the image attatched in my zip file.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


Page 1 of 2 12 LastLast

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