Пример #1
0
        static Image createImage(TestResultBitmap bitmap)
        {
            if (bitmap.Width <= 0 || bitmap.Height <= 0)
                return new Image();

            var bs = BitmapSource.Create(
                bitmap.Width,
                bitmap.Height,
                96,
                96,
                PixelFormats.Pbgra32,
                null,
                bitmap.Data,
                bitmap.Width*4);

            var image = new Image
            {
                Source = bs
            };

            return image;
        }
Пример #2
0
 public TestResultMethod(string name, TestResultBitmap bitmap, TestResultReport report)
 {
     Name    = name;
     Bitmap_ = bitmap;
     Report_ = report;
 }
Пример #3
0
 public TestResultMethod(string name, TestResultBitmap bitmap, TestResultReport report)
 {
     Name = name;
     Bitmap_ = bitmap;
     Report_ = report;
 }
Пример #4
0
 public TestResult(TestSource source, TestResultBitmap bitmap)
 {
     Source = source;
     Bitmap_ = bitmap;
 }