[mapserver-commits] [mapserver/mapserver] 025ffe: MapScript colorObj SWIG/PHP alignment and methods ...

GitHub noreply at github.com
Mon Jul 20 07:05:43 PDT 2015


  Branch: refs/heads/branch-7-0
  Home:   https://github.com/mapserver/mapserver
  Commit: 025ffe147a977041e5d5c6960c3a48645bbb24e3
      https://github.com/mapserver/mapserver/commit/025ffe147a977041e5d5c6960c3a48645bbb24e3
  Author: ejn <edward.nash at gmx.de>
  Date:   2015-07-20 (Mon, 20 Jul 2015)

  Changed paths:
    M mapscript/php/color.c
    M mapscript/swiginc/color.i

  Log Message:
  -----------
  MapScript colorObj SWIG/PHP alignment and methods with alpha

Changes in the SWIG bindings:
- add the methods setRGBA() and toHexWithAlpha()
- extend the method setHex() to accept #rrggbbaa hex values

Changes in the PHP bindings:
- add the methods setRGBA() and toHexWithAlpha()
- adds the methods toHex() and setHex() which were already in the SWIG bindings


  Commit: d7c26bcd686bf251a046e3ef4f61b8f623eca663
      https://github.com/mapserver/mapserver/commit/d7c26bcd686bf251a046e3ef4f61b8f623eca663
  Author: ejn <edward.nash at gmx.de>
  Date:   2015-07-20 (Mon, 20 Jul 2015)

  Changed paths:
    M mapscript/php/color.c
    M mapscript/swiginc/color.i

  Log Message:
  -----------
  Refactor changes in Mapscript colorObj to optional arguments

Instead of introducing separate setRGBA and toHexWithAlpha we alter the
existing method setRGB to take an optional fourth argument and toHex such
that it outputs a 4-byte hex string if the alpha value is other than 255
and a 3-byte hex string as previously if the alpha is the default 255.


  Commit: 8fdcb3921c9c6bc87461f93bbe582651877814f0
      https://github.com/mapserver/mapserver/commit/8fdcb3921c9c6bc87461f93bbe582651877814f0
  Author: Thomas Bonfort <thomas.bonfort at gmail.com>
  Date:   2015-07-20 (Mon, 20 Jul 2015)

  Changed paths:
    M mapscript/php/color.c
    M mapscript/swiginc/color.i

  Log Message:
  -----------
  Merge pull request #5078 from faegi/mapscriptColorAlpha70

MapScript colorObj SWIG/PHP alignment and methods with alpha (#5078)


Compare: https://github.com/mapserver/mapserver/compare/a504deb37be7...8fdcb3921c9c


More information about the mapserver-commits mailing list