ZennoLab Assemblies Documentation
DrawToBitmap Method
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > HtmlElement Class : DrawToBitmap Method
isImage

Type: System.Boolean

true if the tag of this of the element is "img", otherwise, false.

Glossary Item Box

Supports rendering to the bitmap.

Syntax

C# 
public string DrawToBitmap( 
   bool isImage
)

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.

Remarks

If the html element has the tag "img" and the method's parameter is true, then this method executes faster.

Example

The following code example demonstrates uses of the DrawToBitmap method
C#Copy Code
HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
            
string toBitmap1 = he.DrawToBitmap(false);
            
he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("a", "href", "http://lessons.zennolab.com/ru/index", "regexp", 0);
            
string toBitmap2 = he.DrawToBitmap(true);
PHPCopy Code
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
            
$toBitmap1 = $he->DrawToBitmap(false);
            
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("a", "href", "http://lessons.zennolab.com/ru/index", "regexp", 0);
            
$toBitmap2 = $he->DrawToBitmap(true);

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.