Exemplo n.º 1
0
 public ColorAndMovement(MainWindow im)
 {
     InitializeComponent();
     ImagesLayout.ColumnCount = 0;
     ImagesLayout.RowCount = 0;
     ImagesLayout.AutoScroll = false;
     wind = im;
     Show();
 }
Exemplo n.º 2
0
        // new ImageWindow from bitmap
        public ImageWindow(MainWindow parent, Bitmap bmp, string name)
        {
            InitializeComponent();
            MdiParent = parent;
            Picture.Image = (Bitmap)bmp.Clone();
            Text = name;
            LUT = new UInt32[4, 256];
            updateLUT();
            Width = Picture.Image.Width;
            Height = Picture.Image.Height + 15;

            Show();
        }
Exemplo n.º 3
0
        private Bitmap PreviousImage = null; // image before last change

        #endregion Fields

        #region Constructors

        // take Image from filepath
        public ImageWindow(MainWindow parent, string fp)
        {
            InitializeComponent();
            MdiParent = parent;
            filepath = fp;
            Picture.Image = Image.FromFile(filepath);
            Text = System.IO.Path.GetFileName(filepath);
            LUT = new UInt32[4, 256];
            updateLUT();
            Width = Picture.Image.Width;
            Height = Picture.Image.Height+15;

            Show();
        }