fix #2003
This commit is contained in:
parent
cf55d3ffd7
commit
2fd1355042
|
|
@ -1620,6 +1620,11 @@ begin
|
|||
|
||||
var sz := Size(host.DataContext);
|
||||
|
||||
if sz.Width = 0 then
|
||||
sz.Width := GraphWindow.Width;
|
||||
if sz.Height = 0 then
|
||||
sz.Height := GraphWindow.Height;
|
||||
|
||||
var bmp := new RenderTargetBitmap(Round(sz.Width*scalex), Round(sz.Height*scaley), dpiX, dpiY, PixelFormats.Pbgra32);
|
||||
|
||||
var myvis := new DrawingVisual();
|
||||
|
|
|
|||
Loading…
Reference in a new issue