Task #8807 (new)
Opened 12 years ago
Last modified 12 years ago
Incorrect or inconsistent specification of colour — at Version 3
Reported by: | rleigh | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | OMERO-4.4 |
Component: | Specification | Version: | n.a. |
Keywords: | n.a. | Cc: | ajpatterson, jburel, cxallan, mlinkert |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description (last modified by ajpatterson)
In the current specification:
<xsd:documentation>A color used render this channel - encoded as RGBA The default value "-2147483648" is #FFFFFFFF so solid white (it is a signed 32 bit value)</xsd:documentation>
Two problems with this:
1) "-2147483648" is #FFFFFFFF
This is from what I can tell, false. 0xFFFFFFFF is -1 and 0x80000000 is -2147483648.
2) For the default, -2147483648 would be 0x80000000 i.e. mid intensity transparent red, i.e. completely invisible. 0xFFFFFFFF would be opaque white, i.e. completely visible.
(The above assumes A=0 is transparent, A=255 is opaque; is this the interpretation used in our spec?)
Regards,
Roger
Change History (3)
comment:1 Changed 12 years ago by rleigh
comment:2 Changed 12 years ago by jmoore
- Cc ajpatterson jburel cxallan mlinkert-x added
comment:3 Changed 12 years ago by ajpatterson
- Description modified (diff)
Test code:
class test
{
}
Output:
0xFFFFFFFF=-1
0x80000000=-2147483648