| ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > HtmlElement Class : DrawToBitmap Method |
Type: System.Boolean
true if the tag of this of the element is "img", otherwise, false.
Type: System.String
The parameter use only in demo version. Default value is String.Empty.
Type: System.Boolean
true if the tag of this of the element is "img", otherwise, false.
Type: System.String
The parameter use only in demo version. Default value is String.Empty.
Type: System.String
The image as a string value.
// find element by attribute HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0); // draw to bitmap element, this element is not image and does not contain image string toBitmap1 = he.DrawToBitmap(false); // find element by attribute he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("a", "href", "http://lessons.zennolab.com/ru/index", "regexp", 0); // draw to bitmap element, this element is image or contains image string toBitmap2 = he.DrawToBitmap(true);
// find element by attribute $he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0); // draw to bitmap element, this element is not image and does not contain image $toBitmap1 = $he->DrawToBitmap(false); // find element by attribute $he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("a", "href", "http://lessons.zennolab.com/ru/index", "regexp", 0); // draw to bitmap element, this element is image or contains image $toBitmap2 = $he->DrawToBitmap(true);
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.
HtmlElement Class
HtmlElement Members
DrawPartToBitmap Method
DrawPartAsBitmap Method
DrawAsBitmap Method
FindChildByAttribute Method
FindChildById Method
FindChildByName Method
FindChildByTag Method
FindChildByXPath Method