michael@0: michael@0: michael@0:
michael@0:michael@0: For image types that do not support an alpha channel, the image must be michael@0: composited onto a solid black background using the source-over operator, michael@0: and the resulting image must be the one used to create the data: URL. michael@0:
michael@0:See: michael@0: michael@0: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-canvas-todataurl michael@0: michael@0:
michael@0:Mozilla michael@0: Bug 650720 michael@0:
michael@0:Output:
michael@0: michael@0:Type: | michael@0:image/png | michael@0:image/jpeg | michael@0:image/bmp (24 bpp) |
michael@0: image/bmp (32 bpp) |
michael@0:
---|---|---|---|---|
rgba(128, 255, 128, 0.5) | michael@0:michael@0: | michael@0: | michael@0: | michael@0: |
rgba(255, 128, 128, 0.75) | michael@0:michael@0: | michael@0: | michael@0: | michael@0: |
rgba(128, 128, 255, 0.25) | michael@0:michael@0: | michael@0: | michael@0: | michael@0: |
rgba(255, 255, 255, 1.0) | michael@0:michael@0: | michael@0: | michael@0: | michael@0: |
rgba(255, 255, 255, 0) | michael@0:michael@0: | michael@0: | michael@0: | michael@0: |
rgba(0, 0, 0, 1.0) | michael@0:michael@0: | michael@0: | michael@0: | michael@0: |
rgba(0, 0, 0, 0) | michael@0:michael@0: | michael@0: | michael@0: | michael@0: |