Esempio n. 1
0
        private void UsingBitmapData_Click(object sender, RoutedEventArgs e)
        {
            var bitmap = BitmapHelpers.GeneratedBitmapByBitmapImageData("../../TestFile/TestFile.txt", 640, 480);
            //            var bitmap = new Bitmap("../../TestFile/Image.bmp");
            var bitmapImage = BitmapHelpers.ConvertByteArrayToBitmapImage(BitmapHelpers.ConvertBitmapToByteArray(bitmap));
            var image       = new Image()
            {
                Source = bitmapImage
            };

            this.BitmapShowCanvas.Children.Add(image);
        }