On 19/04/2011 11:34, Aleksa Todorovic wrote:
> 
> red-green-blue is "standard" order of RGB components, so changing it
> to blue-green-red wouldn't be very wise. Maybe changing function names
> to something more suitable is better?


That is exactly the point I'm trying to make. Everybody knows the order
as being R-G-B, but the function BGRA() seems to imply B-G-R order.

I think renaming those two functions to RGBA() would be more logical -
even if you don't know the parameter names (ie: just by looking at a
code sample).


> I believe this is little
> annoyance - once you take a look at parameter names, you see what is
> their meaning.

Yes, but just looking at a code sample, like the ones in BGRABitmap
Tutorial wiki page, is rather confusing. The function name implies a
non-standard order.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to