Aardvark.Rendering.Screenshot.UploadImageDataToServer(System.IO.MemoryStream, string)

Here are the examples of the csharp api class Aardvark.Rendering.Screenshot.UploadImageDataToServer(System.IO.MemoryStream, string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: aardvark.base
Source File: Screenshot.cs
View license
public static string UploadImageToServer(PixImage image, string tags = null)
        {
            try
            {
                using (var stream = new MemoryStream())
                {
                    image.SaveAsImage(stream, PixFileFormat.Png);

                    tags = tags ?? Environment.UserName + " " + Assembly.GetEntryAssembly().GetName().Name;
                    tags = "aardvark.rendering " + tags;

                    return UploadImageDataToServer(stream, tags);
                }
            }
            catch (Exception e)
            {
                // fail (almost) silently if upload does not work
                Report.Line("screenshot upload failed: {0}", e.ToString());
                return null;
            }
        }