Hi
We have use case where application reads proprietary format from the file and renders graphics using GoDiagram. There are cases where lines are thinner than 1 pixel. I’m using GoDrawing to draw lines and curves. The issue is when I set pen size less than 1 and also scale (DocScale) is reduced to be less than 1 at some point of time such lines cannot be selected using mouse. I could not determine exact combination of line width and document scale where GoDiagram stops selecting such lines but If I increase document scale, then at some point of time these lines (having pen size less than 1) starts getting selected.
Sample code is provide at the end of this post. Can you please help resolving this issue?
Thanks,
Tushar
If you try this, you can see that Black line cannot be selected
goView1.DocScale = 0.25f;
GoDrawing pGD1 = new GoDrawing();
pGD1.PenColor = System.Drawing.Color.Black;
pGD1.PenWidth = 0.25f;
pGD1.StartAt(10, 10);
pGD1.LineTo(10, 200);
GoDrawing pGD2 = new GoDrawing();
pGD2.PenColor = System.Drawing.Color.Red;
pGD2.PenWidth = 0.5f;
pGD2.StartAt(60, 10);
pGD2.LineTo(60, 200);
GoDrawing pGD3 = new GoDrawing();
pGD3.PenColor = System.Drawing.Color.Green;
pGD3.PenWidth = 1.0f;
pGD3.StartAt(110, 10);
pGD3.LineTo(110, 200);
GoDrawing pGD4 = new GoDrawing();
pGD4.PenColor = System.Drawing.Color.Blue;
pGD4.PenWidth = 2.0f;
pGD4.StartAt(160, 10);
pGD4.LineTo(160, 200);
goView1.Document.Add(pGD1);
goView1.Document.Add(pGD2);
goView1.Document.Add(pGD3);
goView1.Document.Add(pGD4);