public baseImage(Point pageOrigin, float scale, float maxImageDimensionUnits, imageSaveClass iSC) : base(placeableItem.itemTypes.image, pageOrigin, scale, iSC) { _maxInitialSize_units = maxImageDimensionUnits; this._originalAspectRatio = iSC.originalAspectRatio; this.fileName = iSC.fileName; }
protected abstract void _placeImage(float scale, imageSaveClass iSC);
public override itemSaveClass save() { _iSC = new itemSaveClass(); imageSaveClass _imageSaveClass = new imageSaveClass(); _imageSaveClass.fileName = _fileName; _imageSaveClass.originalAspectRatio = _originalAspectRatio; _iSC = _imageSaveClass; base.save(); return (_iSC); }
protected override void _placeImage(float scale, imageSaveClass iSC) { baseImage placedImage = new baseImage(this.location, scale, _maxDroppedImageSize_inches, iSC); _placedItems.Add(placedImage); placedImage.add(this._parent, _placedItems.Count()); }