ControlBase.DrawToBitmap is obsolete. This method is not supported.

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!


The intellisense is showing that this method is obsolete and not supported.

What’s the other way to get a Bitmap representation of a UserControl ?


  • You must to post comments

It’s not really possible on the server. We’d have to run a hidden browser and pass back all the HTML from the client, including image links, session, etc.

It can be done on the client and send the image back, so the call DrawToBitmap() would have an async callback that receives the image from the client. This is probably better in an extension. A new library that does’t require to install any extension on the browser is this one: but it’s in beta and they say it’s still a bit limited.

Another way would be to use phantomjs but you’d need to spoof the session.

Another way is the new getUserMedia() but it needs a flag to be enabled on the browser.

So, it’s not an easy task.

  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json mixin.theme