capture mesurements of canvas #612
Unanswered
solutionsforu999
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Can you provide more details about your setup and code that you're using? My first guess is that you're pulling the canvas data out from a scene that doesn't have anything rendered, hence you're getting black. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
after getting the DataURL of canvas ,it gives black image ,is there any other approach so i can transform the selected canvas .toBlob() or .toDataUrl() please thank you ?
🔢 Example of base64 image data :
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVYAAAGvCAYAAAAAMv1SAAAAAXNSR0IArs4c6QAADZNJREFUeF7t1LENAAAIwzD6/9M8kdEc0MFC2TkCBAgQSAWWrhkjQIAAgRNWT0CAAIFYQFhjUHMECBAQVj9AgACBWEBYY1BzBAgQEFY/QIAAgVhAWGNQcwQIEBBWP0CAAIFYQFhjUHMECBAQVj9AgACBWEBYY1BzBAgQEFY/QIAAgVhAWGNQcwQIEBBWP0CAAIFYQFhjUHMECBAQVj9AgACBWEBYY1BzBAgQEFY/QIAAgVhAWGNQcwQIEBBWP0CAAIFYQFhjUHMECBAQVj9AgACBWEBYY1BzBAgQEFY/QIAAgVhAWGNQcwQIEBBWP0CAAIFYQFhjUHMECBAQVj9AgACBWEBYY1BzBAgQEFY/QIAAgVhAWGNQcwQIEBBWP0CAAIFYQFhjUHMECBAQVj9AgACBWEBYY1BzBAgQEFY/QIAAgVhAWGNQcwQIEBBWP0CAAIFYQFhjUHMECBAQVj9AgACBWEBYY1BzBAgQEFY/QIAAgVhAWGNQcwQIEBBWP0CAAIFYQFhjUHMECBAQVj9AgACBWEBYY1BzBAgQEFY/QIAAgVhAWGNQcwQIEBBWP0CAAIFYQFhjUHMECBAQVj9AgACBWEBYY1BzBAgQEFY/QIAAgVhAWGNQcwQIEBBWP0CAAIFYQFhjUHMECBAQVj9AgACBWEBYY1BzBAgQEFY/QIAAgVhAWGNQcwQIEBBWP0CAAIFYQFhjUHMECBAQVj9AgACB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