绘制矩形中间不透明。
代码如下,我和其它矩形正常的代码对比过了,没有 什么不同啊:
- public static void DrawRect(HWindow hwin, ImageInfo info)
- {
- HOperatorSet.DrawRectangle1(hwin,out HTuple row1, out HTuple column1, out HTuple row2, out HTuple column2);
- HOperatorSet.DispRectangle1(hwin,row1, column1, row2, column2);
- info.Row1 = row1;
- info.Row2 = row2;
- info.Column1 = column1;
- info.Column2 = column2;
- Comm.Log($"draw:{info}");
- }
复制代码
其中:ImageInfo就是辅助类,方便传递数据,如下:
- public class ImageInfo
- {
- public double Row1 { get; set; }
- public double Column1 { get; set; }
- public double Row2 { get; set; }
- public double Column2 { get; set; }
- }
复制代码 |