Imageshack uploader Tool

Made some tool for imageshack.com although there has been a lot of tools uploading to imageshack, but non of them really support what i needed, so i created my own: here are the features included on my imageshack uploader that somehow i called “Nibbler”

Features:

- Multi threaded simultaneous uploading
- Multi-output formatting
- Auto save last state
- Saving/reloading of upload result
- adding multiple files
- adding folders
- file filters
- anonymous/authenticated uploading
- source code included!

as for the simultaneous uploading on Vista you need to change some registry settings to allow vista to connect to the same host multiple times(default settings is 2).

as for the multi output formatting you can open App/Data/config.xml then add an entry under

<ExportOption>
<KeyName>Export as html</KeyName>
<Pattern>&lt;a href=”[IMAGE_URL]” &gt;&lt;img src=”[IMAGE_THUMB]” /&gt;&lt;/a&gt;</Pattern>
</ExportOption>

btw, here is the download link :)

Color Detection Algorithm

Ever wonder how to check if a certain color still belongs to a certain family?
Like if you check if the current color is still part of Red,Green,Blue etc?
You can achieve it by using color distance formula and based on a tolerance.
basically you pass in 2 RGB values and it will return the distance of both colors which you can used as a tolerance.

Code below is in c# and I used it as part of my pixel detection algorithm for my Bot:

public static double ComputeDistance(byte r1, byte g1, byte b1,byte r2, byte g2, byte b2)
{
  double val;
  double rx  = Math.Abs(((double)r1-(double)r2));
  double gx = Math.Abs(((double)g1-(double)g2));
  double bx = Math.Abs(((double)b1-(double)b2));
  val =Math.Sqrt(rx*rx + gx*gx + bx*bx );
  return val;
}

Follow

Get every new post delivered to your Inbox.