protected void _drawResizeBox(Graphics gfx) { if (_windowSelected) { _windowBox = new resizeSelectBox(this, resizeSelectBox.boxTypes.resize, Color.White); _windowBox.draw(gfx); } else { _itemBox = new resizeSelectBox(new Rectangle(_itemLocation, _itemSize), resizeSelectBox.boxTypes.resize, Color.Blue); _itemBox.draw(gfx); //_drawSelectedBox(gfx); //this will draw the window ontop of the item box } }
protected void _drawResizeBox(Graphics gfx) { _resizeBox = new resizeSelectBox(this, resizeSelectBox.boxTypes.resize); _resizeBox.draw(gfx); }
protected void _drawSelectedBox(Graphics gfx) { _windowBox = new resizeSelectBox(this, resizeSelectBox.boxTypes.selected, Color.White); _windowBox.draw(gfx); }
public override void draw(Graphics gfx) { Rectangle imageRectangle = _getImageRectangle(); if (_showContainedItem) { _containedItemResizeBox = new resizeSelectBox(imageRectangle, resizeSelectBox.boxTypes.resize, Color.Blue); _containedItemResizeBox.draw(gfx); } Rectangle destRectangle = new Rectangle(this.location, new Size(Convert.ToInt16(_windowSize_units.Width * _magnification), Convert.ToInt16(_windowSize_units.Height * _magnification))); //need some way of keeping existing location if (_autoSizeItem) { this._calculateSourceRectangle(); gfx.DrawImage(this._image, destRectangle, _sourceRectangle, GraphicsUnit.Pixel); } else //not autoFitting image { gfx.DrawImage(this._image, destRectangle); } base.draw(gfx); }