private void Button1_Click(object sender, EventArgs e) { Hide(); OperationsTransformations.Crop(Convert.ToInt32(udx1.Value), Convert.ToInt32(udy1.Value), Convert.ToInt32(udx2.Value), Convert.ToInt32(udy2.Value), myParent, Spawn); Close(); }
private void PicBox_MouseUp(object sender, MouseEventArgs e) { if (udAngle.Enabled) { mouseAngle = false; picBox.Image = OperationsTransformations.Rotate(bmp, Convert.ToInt32(udAngle.Value)); } else if (rbCW.Checked) { picBox.Image = OperationsTransformations.Rotate(bmp, Convert.ToInt32(90)); } else if (rbCCW.Checked) { picBox.Image = OperationsTransformations.Rotate(bmp, Convert.ToInt32(-90)); } else if (rbFlip.Checked) { picBox.Image = OperationsTransformations.Rotate(bmp, Convert.ToInt32(180)); } }
private void Button1_Click(object sender, EventArgs e) { Hide(); if (rbCW.Checked) { OperationsTransformations.Rotate(90, myParent, Spawn); } else if (rbCCW.Checked) { OperationsTransformations.Rotate(-90, myParent, Spawn); } else if (rbFlip.Checked) { OperationsTransformations.Rotate(180, myParent, Spawn); } else { OperationsTransformations.Rotate(Convert.ToInt32(udAngle.Value), myParent, Spawn); } Close(); }
private void Button1_Click(object sender, EventArgs e) { Hide(); OperationsTransformations.Scale(Convert.ToInt32(udx.Value), Convert.ToInt32(udy.Value), parent, Spawn); Close(); }