Graphics绘图中rectangle的tooltip提示和鼠标双击相应问题。
我的情况是为了实现缩放和滚动条,form中建立了panel,panel中创建了pictrueBox,pictrueBox中新建一张空白bitmap,使用Graphics.FromImagg在这张空白bitmap上绘图。
图中根据需要用
Rectangle[,] RectArray = new Rectangle[111, 51]; for (int x = 1; x <= 110; x++) { for (int y = 1; y <= 50; y++) { RectArray[x, y] = new Rectangle(rounddoubletoint(12 * x * k - 4 * k), rounddoubletoint(12 * y * k - 4 * k), rounddoubletoint(8 * k), rounddoubletoint(8 * k)); gph.DrawEllipse(mypen1, RectArray[x, y]); gph.FillEllipse(mySolidBrush1, RectArray[x, y]); } }