Пример #1
0
        public void SetOriginalPicture(Bitmap bitmap)
        {
            var sizedOriginalPicture = new Bitmap(bitmap, new Size(480, 300));

            originalPicture.Image = sizedOriginalPicture;
            photo = Conversion.BitmapToPhoto(bitmap);
        }
Пример #2
0
        public void SetOriginalPicture(string filePath)
        {
            var bm    = new Bitmap(filePath);
            var image = new Bitmap(bm, new Size(480, 300));

            photo = Conversion.BitmapToPhoto(bm);
            originalPicture.Image = image;
        }