Exemplo n.º 1
0
        public virtual void load(itemSaveClass iSC)
        {
            _itemType = (itemTypes)Enum.Parse(typeof(itemTypes), iSC.itemType);
            _zOrder = iSC.zOrder;
            _windowSize_units = iSC.windowSize;
            _windowLocationPMF_units = iSC.windowLocation;
            _itemSize_units = iSC.itemSize;
            _itemLocationPMF_units = iSC.itemLocation;

        }
Exemplo n.º 2
0
 public placeableItem(itemTypes placedType, Point pageOrigin, float scale, itemSaveClass iSC)
 {
     _itemType = placedType;
     _pageOrigin = new Point(pageOrigin.X, pageOrigin.Y);
     this._windowLocationPMF_units.X = iSC.windowLocation.X;
     this._windowLocationPMF_units.Y = iSC.windowLocation.Y;
     this._itemLocationPMF_units.X = iSC.itemLocation.X;
     this._itemLocationPMF_units.Y = iSC.itemLocation.Y;
     this._magnification = scale;
     this._windowLocation = new Point(Convert.ToInt16(this._windowLocationPMF_units.X * scale), Convert.ToInt16(this._windowLocationPMF_units.Y * scale));
     this._itemLocation = new Point(Convert.ToInt16(this._itemLocationPMF_units.X * scale), Convert.ToInt16(this._itemLocationPMF_units.Y * scale));
 }
Exemplo n.º 3
0
        public override itemSaveClass save()
        {
            _iSC = new itemSaveClass();
            imageSaveClass _imageSaveClass = new imageSaveClass();
            _imageSaveClass.fileName = _fileName;
            _imageSaveClass.originalAspectRatio = _originalAspectRatio;
            _iSC = _imageSaveClass;
            base.save();

         
            return (_iSC);
        }