Example #1
0
        private void InitializeComponent()
        {
            this.comboMaps = new System.Windows.Forms.ComboBox();
            this.imgboxMap = new Cyotek.Windows.Forms.ImageBox();
            this.SuspendLayout();
            // 
            // btnClose
            // 
            this.btnClose.FlatAppearance.BorderSize = 0;
            this.btnClose.Location = new System.Drawing.Point(1166, 9);
            // 
            // comboMaps
            // 
            this.comboMaps.BackColor = System.Drawing.Color.Black;
            this.comboMaps.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.comboMaps.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.comboMaps.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(225)))), ((int)(((byte)(225)))));
            this.comboMaps.FormattingEnabled = true;
            this.comboMaps.Items.AddRange(new object[] {
            "Howling Abyss",
            "Old Summoner\'s Rift",
            "Summoner\'s Rift",
            "Twisted Treeline"});
            this.comboMaps.Location = new System.Drawing.Point(29, 29);
            this.comboMaps.Margin = new System.Windows.Forms.Padding(20, 20, 20, 10);
            this.comboMaps.Name = "comboMaps";
            this.comboMaps.Size = new System.Drawing.Size(144, 22);
            this.comboMaps.Sorted = true;
            this.comboMaps.TabIndex = 3;
            this.comboMaps.SelectedIndexChanged += new System.EventHandler(this.comboMaps_SelectedIndexChanged);
            // 
            // imgboxMap
            // 
            this.imgboxMap.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.imgboxMap.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.imgboxMap.Location = new System.Drawing.Point(29, 71);
            this.imgboxMap.Margin = new System.Windows.Forms.Padding(20, 10, 20, 20);
            this.imgboxMap.Name = "imgboxMap";
            this.imgboxMap.Size = new System.Drawing.Size(1137, 727);
            this.imgboxMap.TabIndex = 4;
            this.imgboxMap.ZoomChanged += new System.EventHandler(this.imgboxMap_ZoomChanged);
            // 
            // formMaps
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1195, 827);
            this.Controls.Add(this.imgboxMap);
            this.Controls.Add(this.comboMaps);
            this.Name = "formMaps";
            this.Text = "formMaps";
            this.Load += new System.EventHandler(this.formMaps_Load);
            this.Controls.SetChildIndex(this.btnClose, 0);
            this.Controls.SetChildIndex(this.comboMaps, 0);
            this.Controls.SetChildIndex(this.imgboxMap, 0);
            this.ResumeLayout(false);

        }
Example #2
0
        public PointF LocationIndex(Cyotek.Windows.Forms.ImageBox i, Graphics e)
        {
            var s  = new SizeF();
            var v1 = new System.Windows.Vector(this.pointOfProfile.Point.X - this.pointOnProfile.Point.X, this.pointOfProfile.Point.Y - this.pointOnProfile.Point.Y);
            //v1.Normalize();
            var v2           = new System.Windows.Vector(1, 0);
            var angleBetween = System.Windows.Vector.AngleBetween(v1, v2);

            angleBetween = angleBetween * Math.PI / 180;

            if (angleBetween < 0)
            {
                angleBetween = 2 * pi + angleBetween;
            }
            if (GlobalSettings.lineFringeNumber && GlobalSettings.linesDesc)
            {
                s = e.MeasureString(this.Index.ToString() + "/" + this.F_Index, GlobalSettings.fontLines);
            }
            else if (GlobalSettings.lineFringeNumber && !GlobalSettings.linesDesc)
            {
                s = e.MeasureString(this.F_Index, GlobalSettings.fontLines);
            }
            else if (!GlobalSettings.lineFringeNumber && GlobalSettings.linesDesc)
            {
                s = e.MeasureString(this.Index.ToString(), GlobalSettings.fontLines);
            }
            s = new SizeF((float)(s.Width / i.ZoomFactor), (float)(s.Height / i.ZoomFactor));

            var tmpPoint = new PointF(pointOfProfile.Point.X + (float)(s.Width * xFactor(angleBetween)), pointOfProfile.Point.Y + (float)(s.Height * yFactor(angleBetween)));

            return(i.GetOffsetPoint(tmpPoint));
        }
    public FormMain()
    {
      InitializeComponent();
      this.Text = AppInfo.GetApplicationName();

      // Create PictureBoxPreview from special component;
      this.PictureBoxPreview = new Cyotek.Windows.Forms.ImageBox();
      this.PictureBoxPreview.Dock = System.Windows.Forms.DockStyle.Fill;
      this.PictureBoxPreview.TabStop = false;
      this.PictureBoxPreview.BorderStyle = BorderStyle.None;
      this.PictureBoxPreview.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
      this.PanelPreview.Controls.Add(this.PictureBoxPreview);

      fAppSettings = new AppSettings();

      fScanner = new Scanner();
      fPrinter = new Printer();
      fPdfExporter = new PdfExporter();
      fPdfImporter = new PdfImporter();
      fImageLoader = new ImageLoader();
      fImageSaver = new ImageSaver();

      fDocument = new Document();
      fDocument.OnPageAdded += fDocument_OnPageAdded;
      fDocument.OnPageRemoved += fDocument_OnPageRemoved;
      fDocument.OnPageUpdated += fDocument_OnPageUpdated;
      fDocument.OnPageMoved += fDocument_OnPageMoved;

      fClosing = false;
      fDeleting = false;

      MenuSettingsPrinterUsePreview.Checked = true;
    }
Example #4
0
 private void InitializeComponent()
 {
     this.comboMaps = new System.Windows.Forms.ComboBox();
     this.imgboxMap = new Cyotek.Windows.Forms.ImageBox();
     this.SuspendLayout();
     //
     // btnClose
     //
     this.btnClose.FlatAppearance.BorderSize = 0;
     this.btnClose.Location = new System.Drawing.Point(1166, 9);
     //
     // comboMaps
     //
     this.comboMaps.BackColor         = System.Drawing.Color.Black;
     this.comboMaps.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboMaps.FlatStyle         = System.Windows.Forms.FlatStyle.Flat;
     this.comboMaps.ForeColor         = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(225)))), ((int)(((byte)(225)))));
     this.comboMaps.FormattingEnabled = true;
     this.comboMaps.Items.AddRange(new object[] {
         "Howling Abyss",
         "Old Summoner\'s Rift",
         "Summoner\'s Rift",
         "Twisted Treeline"
     });
     this.comboMaps.Location              = new System.Drawing.Point(29, 29);
     this.comboMaps.Margin                = new System.Windows.Forms.Padding(20, 20, 20, 10);
     this.comboMaps.Name                  = "comboMaps";
     this.comboMaps.Size                  = new System.Drawing.Size(144, 22);
     this.comboMaps.Sorted                = true;
     this.comboMaps.TabIndex              = 3;
     this.comboMaps.SelectedIndexChanged += new System.EventHandler(this.comboMaps_SelectedIndexChanged);
     //
     // imgboxMap
     //
     this.imgboxMap.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                    | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.imgboxMap.BorderStyle  = System.Windows.Forms.BorderStyle.None;
     this.imgboxMap.Location     = new System.Drawing.Point(29, 71);
     this.imgboxMap.Margin       = new System.Windows.Forms.Padding(20, 10, 20, 20);
     this.imgboxMap.Name         = "imgboxMap";
     this.imgboxMap.Size         = new System.Drawing.Size(1137, 727);
     this.imgboxMap.TabIndex     = 4;
     this.imgboxMap.ZoomChanged += new System.EventHandler(this.imgboxMap_ZoomChanged);
     //
     // formMaps
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1195, 827);
     this.Controls.Add(this.imgboxMap);
     this.Controls.Add(this.comboMaps);
     this.Name  = "formMaps";
     this.Text  = "formMaps";
     this.Load += new System.EventHandler(this.formMaps_Load);
     this.Controls.SetChildIndex(this.btnClose, 0);
     this.Controls.SetChildIndex(this.comboMaps, 0);
     this.Controls.SetChildIndex(this.imgboxMap, 0);
     this.ResumeLayout(false);
 }
Example #5
0
        public bool IsHitLabel(PointF p, Cyotek.Windows.Forms.ImageBox i, bool isFringeLabel = false)
        {
            PointF offsetPoint;

            if (isFringeLabel)
            {
                SizeF size = i.CreateGraphics().MeasureString(this.label, GlobalSettings.fringeLabelsFont);
                var   l    = i.GetOffsetPoint(location);
                //click = i.GetOffsetPoint(p);
                offsetPoint = i.GetOffsetPoint(new PointF(location.X + labelOffsetX, location.Y + labelOffsetY));
                if (p.X < offsetPoint.X + size.Width &&
                    p.X > offsetPoint.X - 4 &&
                    p.Y < offsetPoint.Y + size.Height + (float)(8 * ((i.ZoomFactor - 0.7) / 0.3)) &&
                    p.Y > offsetPoint.Y + (float)(8 * ((i.ZoomFactor - 0.7) / 0.3)))
                {
                    return(true);
                }
                return(false);
            }

            p           = i.GetOffsetPoint(p);
            offsetPoint = i.GetOffsetPoint(new PointF(location.X + labelOffsetX, location.Y + labelOffsetY));
            if (p.X < offsetPoint.X + sizeString.Width &&
                p.X > offsetPoint.X &&
                p.Y < offsetPoint.Y + sizeString.Height + (float)(8 * ((i.ZoomFactor - 0.7) / 0.3)) &&
                p.Y > offsetPoint.Y + (float)(8 * ((i.ZoomFactor - 0.7) / 0.3)))
            {
                return(true);
            }
            return(false);
        }
Example #6
0
        public bool IsHit(PointF p, Cyotek.Windows.Forms.ImageBox i)
        {
            p = i.GetOffsetPoint(p);
            PointF offsetPointOn = i.GetOffsetPoint(pointOnProfile.Point);
            PointF offsetPointOf = i.GetOffsetPoint(pointOfProfile.Point);

            System.Windows.Vector vAC = new System.Windows.Vector(p.X - offsetPointOn.X, p.Y - offsetPointOn.Y);
            System.Windows.Vector vAB = new System.Windows.Vector(offsetPointOf.X - offsetPointOn.X, offsetPointOf.Y - offsetPointOn.Y);

            double distanceOfProfile   = GetDistanceBetween(offsetPointOn, p);
            double distanceFromProfile = GetDistanceBetween(offsetPointOf, p);

            double distace = GetDistanceBetween(offsetPointOn, offsetPointOf);
            double Ca      = ((distanceOfProfile * distanceOfProfile) - (distanceFromProfile * distanceFromProfile) + (distace * distace)) / (2 * distace);
            double Vc      = Math.Sqrt((distanceOfProfile * distanceOfProfile) - (Ca * Ca));

            double angle = System.Windows.Vector.AngleBetween(vAB, vAC);
            //angle = angle * (180 / Math.PI);
            double distanceFromLine = distanceFromProfile * Math.Sin(angle);

            distanceFromLine /= i.ZoomFactor;
            if (Vc <= 5 && distanceOfProfile < distace && distanceFromProfile < distace)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #7
0
        public bool IsHit(PointF p, Cyotek.Windows.Forms.ImageBox i)
        {
            p = i.GetOffsetPoint(p);
            PointF offsetPoint = i.GetOffsetPoint(location);

            if ((p.X - offsetPoint.X) * (p.X - offsetPoint.X) + (p.Y - offsetPoint.Y) * (p.Y - offsetPoint.Y) <= ratio * ratio)
            {
                return(true);
            }
            return(false);
        }
Example #8
0
        public PointF LocationIndexSuper(Cyotek.Windows.Forms.ImageBox i)
        {
            System.Windows.Vector v = new System.Windows.Vector(pointOfProfile.Point.X - pointOnProfile.Point.X, pointOfProfile.Point.Y - pointOnProfile.Point.Y);
            v.Normalize();
            double distancePlus = GetDistanceBetween(pointOnProfile.Point, pointOfProfile.Point) + (20);

            v = System.Windows.Vector.Multiply(distancePlus, v);
            PointF p = new PointF((float)(pointOnProfile.Point.X + v.X), (float)(pointOnProfile.Point.Y + v.Y));

            p.X -= 3;
            p.Y -= 3;

            return(p);
        }
Example #9
0
        public bool isDesHit(PointF p, Cyotek.Windows.Forms.ImageBox i)
        {
            p = i.GetOffsetPoint(p);
            PointF offsetPoint = i.GetOffsetPoint(locationDesc);

            if (p.X < offsetPoint.X + sizeString.Width &&
                p.X > offsetPoint.X &&
                p.Y < offsetPoint.Y + sizeString.Height &&
                p.Y > offsetPoint.Y)
            {
                return(true);
            }
            return(false);
        }
Example #10
0
        public bool IsHitLabel(PointF p, Cyotek.Windows.Forms.ImageBox i)
        {
            p = i.GetOffsetPoint(p);
            PointF offsetPoint = i.GetOffsetPoint(new PointF(location.X + labelOffsetX, location.Y + labelOffsetY));

            if (p.X < offsetPoint.X + sizeString.Width &&
                p.X > offsetPoint.X &&
                p.Y < offsetPoint.Y + sizeString.Height + (float)(8 * ((i.ZoomFactor - 0.7) / 0.3)) &&
                p.Y > offsetPoint.Y + (float)(8 * ((i.ZoomFactor - 0.7) / 0.3)))
            {
                return(true);
            }
            return(false);
        }
Example #11
0
        /// <summary>
        /// Implements an image viewer.
        /// </summary>
        public ScanImageViewer()
        {
            // Adding the rullers.
            InitializeComponent();

            // The implementation of the image box.
            ImageBox = new Cyotek.Windows.Forms.ImageBox();
            this.imageBoxContainer.Controls.Add(ImageBox);
            ImageBox.Dock          = DockStyle.Fill;
            MouseAnnotationToolTip = new ToolTip();
            MouseAnnotationToolTip.InitialDelay = 20;
            MouseAnnotationToolTip.IsBalloon    = false;
            MouseAnnotationToolTip.SetToolTip(this, "");

            // The layers.
            Layers = new List <Tuple <Point, Image> >();
            InitializeEvents();
        }
Example #12
0
        public bool IsHit(Point p, Cyotek.Windows.Forms.ImageBox i, bool isFringe = false)
        {
            if (isFringe)
            {
                p = i.PointToImage(p);
                if ((p.X - location.X) * (p.X - location.X) + (p.Y - location.Y) * (p.Y - location.Y) <= ratio * ratio)
                {
                    return(true);
                }
                return(false);
            }

            p = i.GetOffsetPoint(p);
            PointF offsetPoint = i.GetOffsetPoint(location);

            if ((p.X - offsetPoint.X) * (p.X - offsetPoint.X) + (p.Y - offsetPoint.Y) * (p.Y - offsetPoint.Y) <= ratio * ratio)
            {
                return(true);
            }
            return(false);
        }
Example #13
0
        public Settings(ref Cyotek.Windows.Forms.ImageBox ib)
        {
            InitializeComponent();
            initComboBox();

            imageBox = ib;

            btn_cross.BackColor    = GlobalSettings.crossPen.Color;
            btn_lines.BackColor    = GlobalSettings.linesPen.Color;
            btn_profil.BackColor   = GlobalSettings.profilPen.Color;
            btn_selected.BackColor = GlobalSettings.selectedPen.Color;

            btn_colorIndex.BackColor = GlobalSettings.indexBrush.Color;
            btn_colorDesc.BackColor  = GlobalSettings.descriptionBrush.Color;

            tb_length.Text = GlobalSettings.lineLength.ToString();


            cb_description.Checked          = GlobalSettings.desc;
            cb_physical_points.Checked      = GlobalSettings.points;
            cb_physical_points_desc.Checked = GlobalSettings.pointsDesc;
            cb__lines.Checked      = GlobalSettings.lines;
            cb_lines_index.Checked = GlobalSettings.linesDesc;
            cb_lineNumber.Checked  = GlobalSettings.lineFringeNumber;
            cb__profil.Checked     = GlobalSettings.profil;

            textBox1.Text = GlobalSettings.roundTime.ToString();
            textBox2.Text = GlobalSettings.roundPitchPlunge.ToString();
            textBox3.Text = GlobalSettings.roundOthers.ToString();

            cb_fringeLabelsPanel.Checked   = GlobalSettings.fringeLabelsPanel;
            cb_fringeLabels.Checked        = GlobalSettings.fringeLabels;
            tb_fringeLabelsCircleSize.Text = GlobalSettings.fringeCircleSize.ToString();
            tb_from.Text = GlobalSettings.fringeLabelsFrom.ToString();
            tb_to.Text   = GlobalSettings.fringeLabelsTo.ToString();
            btn_fringeLabelsColor.BackColor = GlobalSettings.fringeLabelsColor;


            afterInit = true;
        }
Example #14
0
        public Settings(ref Cyotek.Windows.Forms.ImageBox ib)
        {
            InitializeComponent();
            initComboBox();

            imageBox = ib;

            btn_cross.BackColor = GlobalSettings.crossPen.Color;
            btn_lines.BackColor = GlobalSettings.linesPen.Color;
            btn_profil.BackColor = GlobalSettings.profilPen.Color;
            btn_selected.BackColor = GlobalSettings.selectedPen.Color;

            btn_colorIndex.BackColor = GlobalSettings.indexBrush.Color;
            btn_colorDesc.BackColor = GlobalSettings.descriptionBrush.Color;

            tb_length.Text = GlobalSettings.lineLength.ToString();

            cb_description.Checked = GlobalSettings.desc;
            cb_physical_points.Checked = GlobalSettings.points;
            cb_physical_points_desc.Checked = GlobalSettings.pointsDesc;
            cb__lines.Checked = GlobalSettings.lines;
            cb_lines_index.Checked = GlobalSettings.linesDesc;
            cb_lineNumber.Checked = GlobalSettings.lineFringeNumber;
            cb__profil.Checked = GlobalSettings.profil;

            textBox1.Text = GlobalSettings.roundTime.ToString();
            textBox2.Text = GlobalSettings.roundPitchPlunge.ToString();
            textBox3.Text = GlobalSettings.roundOthers.ToString();

            cb_fringeLabelsPanel.Checked = GlobalSettings.fringeLabelsPanel;
            cb_fringeLabels.Checked = GlobalSettings.fringeLabels;
            tb_fringeLabelsCircleSize.Text = GlobalSettings.fringeCircleSize.ToString();
            tb_from.Text = GlobalSettings.fringeLabelsFrom.ToString();
            tb_to.Text = GlobalSettings.fringeLabelsTo.ToString();
            btn_fringeLabelsColor.BackColor = GlobalSettings.fringeLabelsColor;

            afterInit = true;
        }
Example #15
0
 public bool IsHit(PointF p, Cyotek.Windows.Forms.ImageBox i)
 {
     if (!Point.IsEmpty)
     {
         PointF offsetPoint = i.GetOffsetPoint(Point);
         p = i.GetOffsetPoint(p);
         double s = size * 1;
         if ((offsetPoint.X + (s / 2)) >= p.X &&
             (offsetPoint.X - (s / 2)) <= p.X &&
             (offsetPoint.Y + (s / 2)) >= p.Y &&
             (offsetPoint.Y - (s / 2)) <= p.Y)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }
    private void Window_Loaded(object sender, RoutedEventArgs e)
    {
      this.ListViewPages.AllowDrop = true;
 
      PictureBoxPreview = new Cyotek.Windows.Forms.ImageBox();

      this.PictureBoxPreview.Dock = System.Windows.Forms.DockStyle.Fill;
      this.PictureBoxPreview.TabStop = false;
      this.PictureBoxPreview.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;

      RightBarWindowsFormsHost.Child = PictureBoxPreview;

      lblCursorPosition.Text = "";
      lblDragDropInfo.Text = "";
      RefreshControls();
      RefreshEditingControls(false);

      fScanner.Open(fScanner_OpenCallback);
    }
Example #17
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(formMaps));
     this.comboMaps = new System.Windows.Forms.ComboBox();
     this.imgboxMap = new Cyotek.Windows.Forms.ImageBox();
     ((System.ComponentModel.ISupportInitialize)(this.picLoading)).BeginInit();
     this.SuspendLayout();
     //
     // picLoading
     //
     this.picLoading.Location = new System.Drawing.Point(157, 176);
     //
     // comboMaps
     //
     this.comboMaps.BackColor         = System.Drawing.Color.Black;
     this.comboMaps.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboMaps.FlatStyle         = System.Windows.Forms.FlatStyle.Flat;
     this.comboMaps.ForeColor         = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(225)))), ((int)(((byte)(225)))));
     this.comboMaps.FormattingEnabled = true;
     this.comboMaps.Items.AddRange(new object[] {
         "Howling Abyss",
         "Summoner\'s Rift",
         "Twisted Treeline"
     });
     this.comboMaps.Location              = new System.Drawing.Point(29, 29);
     this.comboMaps.Margin                = new System.Windows.Forms.Padding(20, 20, 20, 10);
     this.comboMaps.Name                  = "comboMaps";
     this.comboMaps.Size                  = new System.Drawing.Size(144, 22);
     this.comboMaps.Sorted                = true;
     this.comboMaps.TabIndex              = 3;
     this.comboMaps.SelectedIndexChanged += new System.EventHandler(this.comboMaps_SelectedIndexChanged);
     //
     // imgboxMap
     //
     this.imgboxMap.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                    | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.imgboxMap.BorderStyle  = System.Windows.Forms.BorderStyle.None;
     this.imgboxMap.Location     = new System.Drawing.Point(29, 71);
     this.imgboxMap.Margin       = new System.Windows.Forms.Padding(20, 10, 20, 20);
     this.imgboxMap.Name         = "imgboxMap";
     this.imgboxMap.Size         = new System.Drawing.Size(1137, 727);
     this.imgboxMap.TabIndex     = 4;
     this.imgboxMap.ZoomChanged += new System.EventHandler(this.imgboxMap_ZoomChanged);
     //
     // formMaps
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1195, 827);
     this.Controls.Add(this.imgboxMap);
     this.Controls.Add(this.comboMaps);
     this.Icon        = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MinimumSize = new System.Drawing.Size(470, 300);
     this.Name        = "formMaps";
     this.Text        = "Maps";
     this.Controls.SetChildIndex(this.picLoading, 0);
     this.Controls.SetChildIndex(this.comboMaps, 0);
     this.Controls.SetChildIndex(this.imgboxMap, 0);
     ((System.ComponentModel.ISupportInitialize)(this.picLoading)).EndInit();
     this.ResumeLayout(false);
 }
Example #18
0
 public PointF GetLabelLocation(Cyotek.Windows.Forms.ImageBox i)
 {
     return(new PointF(i.GetOffsetPoint(new PointF(location.X + labelOffsetX, location.Y + labelOffsetY)).X, i.GetOffsetPoint(new PointF(location.X + labelOffsetX, location.Y + labelOffsetY)).Y + (float)(8 * ((i.ZoomFactor - 0.7) / 0.3))));
 }