public static string SendPhoto(ImageFormat format, WebQueryBase query, string path, string url, string username, string password)
        {
            var contentType = format.ToContentType();

            var mediaParameter = HttpPostParameter.CreateFile("media", "photo", path, contentType);
            var usernameParameter = new HttpPostParameter("username", username);
            var passwordParameter = new HttpPostParameter("password", password);

            var parameters = new[] { mediaParameter, usernameParameter, passwordParameter };

            return query.Request(url, parameters);
        }
 public PixelFormatMap(Imaging.PixelFormat Format, OpenGL.PixelFormat GLFormat, OpenGL.PixelInternalFormat numbytes)
 {
     this.PixelFormat = Format;
     this.OpenGLPixelFormat = GLFormat;
     this.InternalFormat = numbytes;
 }