Home

LP5 differrence LP6,LP7 Util.Run (dump bitmap inside the called script)

I have experienced difference in processing Util.Run in LP5 and in LP6,LP7

Script 1:
dump_bitmap.linq

var b = new System.Drawing.Bitmap(30,30);
var g = System.Drawing.Graphics.FromImage(b);
var r = new System.Drawing.Rectangle(5, 5, 20, 20);
g.DrawEllipse(new System.Drawing.Pen(System.Drawing.Color.Blue, 3), r);

b.Dump();

Script 2:
call_dump_bitmap.linq

LINQPad.ObjectModel.QueryExecuter qx = Util.Run("dump_bitmap.linq", QueryResultFormat.Html, null);
if (qx != null)
{
    qx.Wait();
    qx.Dump();
    Console.WriteLine();
}

When I run the Script 2 in LP5, the result is the blue circle image in Results pane.
When I run thne Script 2 in LP6,LP7, the result is object visualiser with Bitmap object in Results pane

Is it any way to achive LP5 behavior in LP6,LP7 ?

Comments

Sign In or Register to comment.