DrawToBitmap

[Top]  [Chapter]  [Previous]  [Next]

public void DrawToBitmap(Bitmap bmp, Rectangle Rect)

 

This method (only defined in .NET wrapper) makes a screenshot of the complete editor and the toolbars at the position Rect.Left and Rect.Top on the provided bitmap. Please note that the scrollbars will not be visible if the editor is hidden.

 

Note: Rect.Width and Rect.Height are currently not used.

 

Example:

Bitmap ScreenShot = new Bitmap(wpdllInt1.Width, wpdllInt1.Height);

wpdllInt1.DrawToBitmap(ScreenShot, new Rectangle(00, wpdllInt1.Width, wpdllInt1.Height));

ScreenShot.Save(@"c:\printed.bmp");


[drawtobitmap.htm]    Copyright © 2007 by WPCubed GmbH