Parameters
- isImage
Type: System.Boolean
true if the tag of this of the element is "img", otherwise, false.
Return Value
Type: System.String
The image as a string value.
If the html element has the tag "img" and the method's parameter is true, then this method executes faster.
The following code example demonstrates uses of the DrawToBitmap method
C# | ![]() |
---|---|
// 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); |
PHP | ![]() |
---|---|
// 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: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family