示例#1
0
        public void SizeChanged(double w, double h, double dpi)
        {
            int width  = (int)(w < 0 ? 0 : Math.Ceiling(w * dpi));
            int height = (int)(h < 0 ? 0 : Math.Ceiling(h * dpi));

            d3d11Image.SetPixelSize(width, height);

            var tt = new LaigeRect()
            {
                Height = height, Width = width
            };

            _SetScreenMatrix(new LaigeRect[] { tt });
        }
示例#2
0
 public void SetData(LaigeLine[] lines, LaigeRect laigeRect)
 {
     this.lines = lines;
     this.rect  = laigeRect;
 }