ZennoLab Assemblies Documentation
GetPagePreview Method
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > Tab Class : GetPagePreview Method

Glossary Item Box

Gets preview of page.

Syntax

C# 
public string GetPagePreview()

Return Value

Type: System.String

The image as a string value.

Remarks

The preview size does not exceed 2000 * 2000 pixels.

Example

The following code example demonstrates uses of the GetPagePreview method
C#Copy Code
var preview = instance.ActiveTab.GetPagePreview();
var ms = new System.IO.MemoryStream(Convert.FromBase64String(preview));
var bmp = new Bitmap(ms);
ms.Close();
bmp.Save("example.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);

Requirements

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

See Also

© 2013 All Rights Reserved.