Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

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

Test code:

class test
{

public static void main(String[] args)
{

int n1 = 0xFFFFFFFF&0xFFFFFFFF;
System.out.println("0xFFFFFFFF=" + n1);

int n2 = 0x80000000&0xFFFFFFFF;

System.out.println("0x80000000=" + n2);

}

}

Output:
0xFFFFFFFF=-1
0x80000000=-2147483648

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)
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.69636 sec.)

We're Hiring!