Create  Edit  Diff  FrontPage  Index  Search  Changes  History  Source  RSS  wikifarm  Login

MapScript.Ja - classObj.createLegendIcon Diff

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

!!classObj.createLegendIcon メソッド

!!!説明
凡例用のアイコンを作成して返す。
public imageObj createLegendIcon(
   mapObj map,
   layerObj layer,
   int width,
   int height
);

Public Function createLegendIcon(ByVal map As mapObj, ByVal layer As layerObj, _
ByVal width As Integer, ByVal height As Integer) As imageObj
!!!サンプル
!!!!コード
Dim _map As mapObj = New mapObj("")
Dim _layer As layerObj = New layerObj(_map)
Dim _class As classObj = New classObj(_layer)
Dim _image As imageObj
_image = _class.createLegendIcon(_map, _layer, 30, 10)
Debug.WriteLine(_image.format.mimetype)
→結果 image/gif
!!!!マップファイル
   CLASS
     METADATA
     END
   END

※影響なし
!!!参照
[[classObj メンバ]] | [[(global) 名前空間|http://wiki.fdiary.net/MapScriptJa]]