private void NewImageRetrievedCallBack( LLUUID ImageID, byte[] data, bool wasCached, string statusMsg ) { if (wasCached) { Console.WriteLine("Cache ( " + data.Length + "): " + ImageID); } else { if (data == null) { Console.WriteLine("Image Data is null (" + statusMsg + "): " + ImageID); } else { Console.WriteLine("Finished ( " + data.Length + "): " + ImageID); String filename = Path.Combine(OutputDirectory, ImageID.ToStringHyphenated()) + ".tif"; TiffJob tj = new TiffJob(filename, data); Thread t = new Thread(tj.RunMe); t.Start(); } } }
private void NewImageRetrievedCallBack(LLUUID ImageID, byte[] data, bool wasCached, string statusMsg) { if (wasCached) { Console.WriteLine("Cache ( " + data.Length + "): " + ImageID); } else { if (data == null) { Console.WriteLine("Image Data is null (" + statusMsg + "): " + ImageID); } else { Console.WriteLine("Finished ( " + data.Length + "): " + ImageID); String filename = Path.Combine(OutputDirectory, ImageID.ToStringHyphenated()) + ".tif"; TiffJob tj = new TiffJob(filename, data); Thread t = new Thread(tj.RunMe); t.Start(); } } }