[Lazarus] to the BGRABitmap maintainer...
Graeme Geldenhuys
graemeg.lists at gmail.com
Tue Apr 19 12:39:49 CEST 2011
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/
More information about the Lazarus
mailing list