public Stage(EasyPhoto.StageCase temp, MainForm superParent) { this.SuperParent = superParent; this.backgroundColor = temp.backgroundColor; this.backgroundHeight = temp.backgroundHeight; this.backgroundWidth = temp.backgroundWidth; this.Size = temp.size; this.paperName = temp.paperName; this.startPoint = temp.startPoint; this.activeNum = temp.activeNum; this.backPaperColor = new SolidBrush(temp.backPaperColor); this.showRectangle = temp.showRectangle; this.baseImage = (Bitmap)temp.baseImage.Clone(); this.backImage = temp.backImage; this.finalImage = temp.finalImage; this.tempCell = temp.tempCell; this.zoom = temp.zoom; if (temp.arrayList == null) { this.arrayList = new System.Collections.ArrayList(); } else { this.arrayList = temp.arrayList; } this.BackgroundImage = this.finalImage; if (this.Size.Width > this.backgroundWidth) { base.hScrollBar1.Visible = false; } else { base.hScrollBar1.Visible = true; //以后还需要补充 } if (this.Size.Height > this.backgroundHeight) { base.vScrollBar1.Visible = false; } else { base.vScrollBar1.Visible = true; //以后还需要补充 } this.hScrollBar1.Maximum = this.Width; this.vScrollBar1.Maximum = this.Height; this.RePaint(); }
public SerialClass(EasyPhoto.EPControl.Stage stage, System.Collections.ArrayList layerlist) { this.SerialStage = new StageCase(stage); this.defaultlyaernamenum = stage.SuperParent.defaultTabPageNum; int count = layerlist.Count; if (count > 0) { this.SerialLayers = new LayerCase[count]; for (int i = 0; i < count; i++) { this.SerialLayers[i] = new LayerCase((EasyPhoto.EPControl.Layer)layerlist[i]); } } }