<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>13085</bug_id>
          
          <creation_ts>2011-06-29 10:44:11 +0000</creation_ts>
          <short_desc>Enhancement: Set component for whole image?</short_desc>
          <delta_ts>2011-12-02 20:56:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML Canvas 2D Context</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NEEDSINFO</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>under discussion</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="j.chetwynd">jay</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ayg</cc>
    
    <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>mike</cc>
    
    <cc>plh</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50449</commentid>
    <comment_count>0</comment_count>
    <who name="j.chetwynd">jay</who>
    <bug_when>2011-06-29 10:44:11 +0000</bug_when>
    <thetext>CanvasPixelArray requires &quot;pixel&apos;s red, green, blue, and alpha components being given in that order for each pixel.&quot;

However in many cases, anyone one or more of these components may be common to all the pixels in the image, for instance the alpha may be common to all pixels, or as at http://www.peepo.com, only red is varied with green = 127, blue = 127  and alpha = 63 for all canvas pixels.

if this isn&apos;t appropriate please could someone in the WG please clarify why this is best done by setting all four components, for each and every pixel? or perhaps more likely, what aspect I have failed to understand?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50460</commentid>
    <comment_count>1</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-06-29 18:20:42 +0000</bug_when>
    <thetext>Yes, if a particular component is identical for every pixel in your canvas, just fill it in the same for every pixel.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50466</commentid>
    <comment_count>2</comment_count>
    <who name="j.chetwynd">jay</who>
    <bug_when>2011-06-29 19:46:23 +0000</bug_when>
    <thetext>#1 your solution relates to the current practice, but not this enhancement bug: Set component for whole image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50468</commentid>
    <comment_count>3</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-06-29 20:36:20 +0000</bug_when>
    <thetext>Oh, sorry, I misread your email.  You&apos;re asking for clarification as to why setting everything is necessary.

The answer is simplicity.  Most use-cases will be adjusting all four components, so there&apos;s not much value to fixing one or more components steady.

The one case that&apos;s relatively high-value is creating an &quot;opaque&quot; canvas where the alpha is held at 255.  Mozilla is currently handling this with a moz-opaque attribute.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50469</commentid>
    <comment_count>4</comment_count>
    <who name="j.chetwynd">jay</who>
    <bug_when>2011-06-29 21:04:28 +0000</bug_when>
    <thetext>no doubt the alpha case for opacity is most likely to be the popular one currently, see CSS.
However it is readily apparent there is an excellent use case for data visualisation with each of RGB.

peepo.com provides a simple example using canvas, common to many maps, click on the board and observe the change in red saturation, screengrab:
http://www.flickr.com/photos/49932622@N05/5623363217/in/photostream/lightbox/

Screens tend to grow with processor speed, and experience (CSS?) suggests that changing a single component at the browser/graphics chip level would considerably reduce temporal artefacts.

perhaps a more complex example might be similar to colour separation as used in printmaking.
for instance the opacity of each colour layer may more easily be related to the hue.

It is possible to manipulate this all on a pixel basis, it certainly appears slower and more complex than the aformentioned CSS method.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50482</commentid>
    <comment_count>5</comment_count>
    <who name="j.chetwynd">jay</who>
    <bug_when>2011-06-30 04:25:45 +0000</bug_when>
    <thetext>please provide a rationale for changing priority</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50492</commentid>
    <comment_count>6</comment_count>
    <who name="j.chetwynd">jay</who>
    <bug_when>2011-06-30 11:05:44 +0000</bug_when>
    <thetext>bug 13096 - Enhancement: Set single component for pixel is related.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50519</commentid>
    <comment_count>7</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-06-30 20:33:09 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; please provide a rationale for changing priority

See the bug priority policy as announced by the chairs:

http://lists.w3.org/Archives/Public/public-html/2011Jun/0315.html

I usually give P5 to feature requests (because they&apos;ll often be left alone for a long time) and P4 to minor non-technical issues like typos (because they should be fixed sooner), but there&apos;s no real difference and I&apos;m not so consistent.  Normally I&apos;ll give P2 or P3 to feature requests only if they&apos;re particularly important or urgent.

The policy outlines what the bug originator should do if they disagree with the bug&apos;s assigned priority.  I could link to the policy every time I change a bug&apos;s priority, but it would be clutter on almost every new bug, and most people don&apos;t care.

Hope that helps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60848</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-12-02 20:56:24 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Did Not Understand Request
Change Description: no spec change
Rationale: Is there a specific change request here? I don&apos;t really understand what the problem is.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>