[Mono-bugs] [Bug 570566] New: MonoTouch.UIKit.UIColor.FromRGB(byte, byte, byte) doesn't give you the colors you would expect.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 13 20:04:53 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=570566

http://bugzilla.novell.com/show_bug.cgi?id=570566#c0


           Summary: MonoTouch.UIKit.UIColor.FromRGB(byte, byte, byte)
                    doesn't give you the colors you would expect.
    Classification: Mono
           Product: MonoTouch
           Version: SVN
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: gnorton at novell.com
        ReportedBy: kevin at powelltech.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-us)
AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10

There are no gradients of colors.  It just gives you one solid color (yellow,
red, blue, etc) white, or black.  If you use the overloaded method passing in
float values you can get all the shades of colors you would expect.

Reproducible: Always

Steps to Reproduce:
1.MonoTouch.UIKit.UIColor.FromRGB((byte)255,(byte)100, (byte)100) - should be
light red but it's dark red
2.MonoTouch.UIKit.UIColor.FromRGB((byte)255,(byte)255, (byte), 204) - should be
light yellow but it's dark yellow
3.
Actual Results:  
I got the incorrect colors on the screen.

Expected Results:  
It should have displayed varying shades of the colors.

The workaround is to use the overloaded method FromRGB that expects float
values.  It seems to be working properly.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list