Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drawImage() function is toooo slooow #7

Closed
sarandogou opened this issue Jul 26, 2014 · 1 comment
Closed

drawImage() function is toooo slooow #7

sarandogou opened this issue Jul 26, 2014 · 1 comment

Comments

@sarandogou
Copy link
Owner

No description provided.

sarandogou added a commit that referenced this issue Jul 27, 2014
	- Add new JavaScript function: <b>Webrtc::getScreenShot()</b>. This function converts the RGB32 raw image to bitmap then to base64. The process is instantaneous and the base64 image could be used in JavaScript like this:
  ```
	var image = new Image();
	image.onload = function () {
		document.getElementById("mycanvas").getContext("2d").drawImage(image, 0, 0, width, height);
	};
	image.src = "data:image/png;base64," + base64;
  ```
   - Bug fix:
    	- [Issue #6](../../issues/6): The active element tag flashes when the window is resized or scrolled
    	- [Issue #7](../../issues/7): drawImage() function is toooo slooow
    	- [Issue #8](../../issues/8): Color alignment issue in drawImage()
@sarandogou
Copy link
Owner Author

Fixed in 442ac42e85694c0cc857351680eda0c7b281febc2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant