Skip to content

Commit

Permalink
[o] (2) How to handle transparent images for toDataURL(). Just allow …
Browse files Browse the repository at this point in the history
…the UA to premultiply the alpha and output that whie dropping the alpha channel, instead of worrying about the background color or whatnot. It's up to authors to make the background color non-transparent.

git-svn-id: http://svn.whatwg.org/webapps@2004 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 5, 2008
1 parent 03eccd3 commit 6127e34
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -20799,6 +20799,11 @@ interface <dfn id=cuerangecallback>CueRangeCallback</dfn> {
or even maybe <code>image/svg+xml</code> if the implementation actually
keeps enough information to reliably render an SVG image from the canvas.

<p>For image types that do not support an alpha channel, the image must be
composited onto a solid black background using the source-over operator,
and the resulting image must be the one used to create the <code
title="">data:</code> URL.

<p>Only support for <code>image/png</code> is required. User agents may
support other types. If the user agent does not support the requested
type, it must return the image using the PNG format.
Expand Down
5 changes: 5 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -18002,6 +18002,11 @@ interface <dfn>CueRangeCallback</dfn> {
enough information to reliably render an SVG image from the
canvas.</p>

<p>For image types that do not support an alpha channel, the image
must be composited onto a solid black background using the
source-over operator, and the resulting image must be the one used
to create the <code title="">data:</code> URL.</p>

<p>Only support for <code>image/png</code> is required. User agents
may support other types. If the user agent does not support the
requested type, it must return the image using the PNG format.</p>
Expand Down

0 comments on commit 6127e34

Please sign in to comment.