* Copyright 2012 Google Inc.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
Object, whereas calling it with "experimental-webgl" returns a
data: URL containing a representation of the image in the format specified by
type (defaults to PNG).
"data:," representing the empty string, is returned.
image/png, and the returned value starts with
data:image/png, then the requested type is not supported.
image/webp, then the second argument, if it is between 0.0 and 1.0, is treated as indicating image quality; if the second argument is anything else, the default value for image quality is used. Other arguments are ignored.