Пример #1
0
        private void rotateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RotateForm rotateDialog = new RotateForm("Rotate by degrees (integer):");

            rotateDialog.ShowDialog();

            ImageGenerate.rotateImage(model, rotateDialog.value);
        }
Пример #2
0
        private void translateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TranslateForm dialog = new TranslateForm();

            dialog.ShowDialog();

            ImageGenerate.Translate(model, dialog.xTran, dialog.yTran);
        }
Пример #3
0
        private void linearWarpscaleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form1 dialog = new Form1();

            dialog.ShowDialog();

            ImageGenerate.Scale(model, dialog.value);
        }
Пример #4
0
 //
 //forward menu calls-------------------------------------------------------------------------
 //
 private void newMenu_Click(object sender, EventArgs e)
 {
     editor = new ImageGenerate();
     model  = new Image(menuStrip1.Height);
     ImageGenerate.FillBlack(model);
     SetMenuOptionEnable(ModelType.Generate);
     Invalidate();
 }
Пример #5
0
 private void redFilterToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.RedChannelFilter(model);
 }
Пример #6
0
 private void sobelToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.Sobel(model);
 }
Пример #7
0
 private void fillCornflowerBlueToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.FillCornflowerBlue(model);
 }
Пример #8
0
 private void VerticalLine_Click(object sender, EventArgs e)
 {
     ImageGenerate.VerticalLine(model);
     Invalidate();
 }
Пример #9
0
 private void verticalBlueGradientToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.FillVerticalBlueGradient(model);
 }
Пример #10
0
 private void compositionRedToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.ComposeRed(model);
 }
Пример #11
0
 private void sharpenToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.Sharpen(model);
 }
Пример #12
0
 private void medianToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.Median(model);
 }
Пример #13
0
 private void monochromeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.Mono(model);
 }
Пример #14
0
 private void diagonalLineToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.DiagonalLine(model);
 }
Пример #15
0
 private void verticalLIneToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.VerticalLine(model);
 }
Пример #16
0
 private void horizontalLineToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.HorizontalLine(model);
 }
Пример #17
0
 private void diagonalGradientToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.FillDiagonalGradient(model);
 }
Пример #18
0
 private void prewittToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.Prewitt(model);
 }
Пример #19
0
 private void triangelWarpToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.Triangle(model);
 }
Пример #20
0
 private void FillSeaGreenMenuOption_Click(object sender, EventArgs e)
 {
     ImageGenerate.FillSeaGreen(model);
     Invalidate();
 }
Пример #21
0
 private void pointilismToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.Point(model);
 }
Пример #22
0
 private void verticalBlueGradient_Click(object sender, EventArgs e)
 {
     ImageGenerate.VerticalGradient(model);
     Invalidate();
 }
Пример #23
0
 private void fillWhiteMenu_Click(object sender, EventArgs e)
 {
     ImageGenerate.FillWhite(model);
 }
Пример #24
0
 private void horizontalGradientToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.FillHorizontalGradient(model);
 }
Пример #25
0
 private void horizontalGradient_Click(object sender, EventArgs e)
 {
     ImageGenerate.HorizontalGradient(model);
     Invalidate();
 }
Пример #26
0
 private void flipHorizontalToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.flipHorizontally(model);
 }
Пример #27
0
 private void HorizontalLine_Click(object sender, EventArgs e)
 {
     ImageGenerate.HorizontalLine(model);
     Invalidate();
 }
Пример #28
0
 private void blueScreenToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.BlueScreen(model);
 }
Пример #29
0
 private void DiagonalLine_Click(object sender, EventArgs e)
 {
     ImageGenerate.DiagonalLine(model);
     Invalidate();
 }
Пример #30
0
 private void fillGreenToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ImageGenerate.FillGreen(model);
 }