MapScript 4.02 colorObjクラス

Mapserver V4.0から、色はcolorObjインスタンスに変わりました、colorObjは独立のオブジェクトでも、他のオブジェクトの属性としても可能です。

4.2.1 colorObj属性

connoteablue : int

青色 [0-255]

connoteagreen : int

緑色 [0-255]

connoteared : int

赤色 [0-255]

connoteapen : int

何をしているかについてわかっていない限り、これに設定しないでください

4.2.2 colorObjメソッド

connoteanew colorObj( [ int red=0, int green=0, int blue=0, int pens=-4 ] ) : colorObj

colorObjを新規作成します。色パラメータはオプションです。

connoteasetRGB( int red, int green, int blue ) : int

RGBで色を設定します。戻り値はMS_SUCCESS或いはMS_FAILURE。

connoteasetHex( string hexcolor ) : int

16進数形式の色で色を設定します。例:setHex('#ffffff')。戻り値はMS_SUCCESS或いはMS_FAILURE。

connoteatoHex() : string

16進数形式の色文字列を返します。

                                                                                                                                                                                                                                 

Add a new comment
Page tags: mapscript mapserver
page_revision: 6, last_edited: 1210511721|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License