Beispiel #1
0
        public SpriteForm(ProjectMainForm parent, Spriteset ss, Sprite s)
        {
            m_parent = parent;

            m_ss = ss;

            InitializeComponent();

            SetSprite(s);
            m_toolbox   = new Toolbox_Sprite();
            m_optionbox = new Optionbox_Sprite();
            m_arrowbox  = new Arrowbox_Sprite();

            MdiParent       = parent;
            FormBorderStyle = FormBorderStyle.SizableToolWindow;
            StartPosition   = FormStartPosition.Manual;
            Visible         = false;
            ControlBox      = false;

            // Set to 16x.
            cbZoom.SelectedIndex = (int)ZoomLevel.Zoom_16x;

            if (m_brushTransparent == null)
            {
                m_brushTransparent = new System.Drawing.Drawing2D.HatchBrush(
                    Options.TransparentPattern,
                    Color.LightGray, Color.Transparent);
            }
        }
Beispiel #2
0
 public void ShiftPixels(Arrowbox.ShiftArrow shift)
 {
     if (shift == Arrowbox.ShiftArrow.Left)
         ShiftPixels_Left();
     if (shift == Arrowbox.ShiftArrow.Right)
         ShiftPixels_Right();
     if (shift == Arrowbox.ShiftArrow.Up)
         ShiftPixels_Up();
     if (shift == Arrowbox.ShiftArrow.Down)
         ShiftPixels_Down();
     FlushBitmaps();
 }
Beispiel #3
0
        public void ShiftPixels(Arrowbox.ShiftArrow shift)
        {
            if (CurrentSprite == null)
                return;

            CurrentSprite.ShiftPixels(shift);
        }