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