[Mono-list] System.Drawing.Color.FromArgb(), why int parameters?

Alex xtzgzorex at gmail.com
Thu Aug 25 03:01:54 EDT 2011


Hi,

I would guess for some sort of crazy API design guideline. Other than
that, I can't see any reason.

Regards,
Alex

On Thu, Aug 25, 2011 at 8:15 AM, Stifu <stifu at free.fr> wrote:
> Hi,
>
> I have a quick question about the System.Drawing.Color.FromArgb() method
> (which also applies to other similar methods).
>
> http://msdn.microsoft.com/en-us/library/at1k42eh.aspx
>
> Does anyone know why it takes int parameters, rather than bytes, considering
> expected values should go from 0 to 255?
>
> Thanks!
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/System-Drawing-Color-FromArgb-why-int-parameters-tp3767434p3767434.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>


More information about the Mono-list mailing list