Exemple #1
0
        private void btnMainThread_Click(object sender, EventArgs e)
        {
            RasterToVectorSettings rasterToVectorSettings = new RasterToVectorSettings();
            rasterToVectorSettings.ReadGeoCorners(windowSettings.leftXCoord,
                                                  windowSettings.leftYCoord,
                                                  windowSettings.rightXCoord,
                                                  windowSettings.rightYCoord);
            rasterToVectorSettings.sourceBmp = sourceBmp;
            rasterToVectorSettings.CalculateGeoPx();

            RasterToVectorRunner.RunRasterToVectorMainThread(rasterToVectorSettings);
        }
Exemple #2
0
        private void btnMainThread_Click(object sender, EventArgs e)
        {
            RasterToVectorSettings rasterToVectorSettings = new RasterToVectorSettings();
            rasterToVectorSettings.ReadGeoCorners(windowSettings.leftXCoord,
                                                  windowSettings.leftYCoord,
                                                  windowSettings.rightXCoord,
                                                  windowSettings.rightYCoord);
            rasterToVectorSettings.sourceBmp = sourceBmp;
            rasterToVectorSettings.CalculateGeoPx();

            mapFactory = RasterToVectorRunner.RunRasterToVectorMainThread(rasterToVectorSettings);
            desinationImageCrooper = new VectorImageCrooper(new Size(sourcePanel.Width, sourcePanel.Height), mapFactory,
                                                            sourceImageCropper.centerX, sourceImageCropper.centerY, windowSettings);

            DrawCroppedScaledImage(float.Parse(ScaleTB.Text));
        }