private void FormMain_Load(object sender, EventArgs e) { //以下、初期化処理 ClsTool.Init(); PreViewCenter = new Point(0, 0); mScreenScroll = new Point(0, 0); ImageMan = new ImageManagerBase(); TimeLine = new TIMELINEbase(); this.mFormImageList = new FormImageList(); this.mFormImageList.Show(); this.mFormControl = new FormControl(this); this.mFormControl.mTimeLine = TimeLine; this.mFormControl.Show(); this.mFormAttribute = new FormAttribute(this); this.mFormAttribute.Show(); mFormControl.mTimeLine = TimeLine;//ControlFormに通達 //Ver2 mFormCell = new FormCell(this); mFormCell.IM = ImageMan; mFormCell.Show(); AlingForms(); //背景の再描画をキャンセル(ちらつき抑制) //効果いまいち this.SetStyle(ControlStyles.Opaque, true); }
public FormImageCut(Image clImage, string fullpath) { mImagePath = fullpath; InitializeComponent(); ImageManager = new ImageManagerBase(); //以下、初期化処理 this.mRectStart = false; this.mRectEnd = false; this.mPosStart = new Point(); this.mPosEnd = new Point(); this.mImage = clImage; this.mMag = 1.0; this.mMouseDown = false; this.mShiftDown = false; this.mOld = new Point(); this.mPenGrid = new Pen(Color.Silver); this.mBrushRectColor = Color.FromArgb(128, Color.Lime.R, Color.Lime.G, Color.Lime.B); this.mBrushRect = new SolidBrush(this.mBrushRectColor); }
private bool m_isMouseLDown; //左クリック押し下げ中 public FormCell(FormMain form) { InitializeComponent(); IM = new ImageManagerBase(); mFormMain = form; }