Ejemplo n.º 1
0
        public GifImage(KpImageViewer KpViewer, Image img)
        {
            this.KpViewer   = KpViewer;
            this.gif        = img;
            this.dimension  = new FrameDimension(gif.FrameDimensionsList[0]);
            this.frameCount = gif.GetFrameCount(dimension);

            this.gif.SelectActiveFrame(dimension, 0);

            this.currentFrameBmp = (Bitmap)gif.Clone();

            UpdateAnimator();
        }
Ejemplo n.º 2
0
 public KP_DrawObject(KpImageViewer KpViewer)
 {
     try
     {
         this.KpViewer = KpViewer;
         // Initial dragging to false and No image.
         dragging      = false;
         this.bmp      = null;
         this.multiBmp = null;
         this.gifBmp   = null;
     }
     catch (Exception ex)
     {
         System.Windows.Forms.MessageBox.Show("ImageViewer error: " + ex.ToString());
     }
 }
Ejemplo n.º 3
0
        public KP_DrawObject(KpImageViewer KpViewer, Bitmap bmp)
        {
            try
            {
                this.KpViewer = KpViewer;

                // Initial dragging to false and an Image.
                dragging   = false;
                this.Image = bmp;
                this.Image.RotateFlip(RotateFlipType.RotateNoneFlipNone);

                boundingRect = new Rectangle(0, 0, (int)(this.ImageWidth * zoom), (int)(this.ImageHeight * zoom));
            }
            catch (Exception ex)
            {
                System.Windows.Forms.MessageBox.Show("ImageViewer error: " + ex.ToString());
            }
        }