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

MapScript.Ja - classObj.drawLegendIcon Diff

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

!!classObj.drawLegendIcon メソッド

!!!説明
imageObjで指定された画像を dstx, dsty に描画する。結果はMS_SUCCESS か MS_FAILURE
public int drawLegendIcon(
    mapObj map,
    layerObj layer,
    int width,
    int height,
    imageObj dstImage,
    int dstX,
    int dstY
);

Public Function drawLegendIcon(ByVal map As mapObj, ByVal layer As layerObj, ByVal width As Integer, ByVal height As Integer, ByVal dstImage As imageObj, ByVal dstX As Integer, ByVal dstY As Integer) As Integer

!!!サンプル
!!!!コード
Dim _map As mapObj = New mapObj("")
Dim _layer As layerObj = New layerObj(_map)
Dim _class As classObj = New classObj(_layer)
Dim _image As imageObj
Dim intRet As Integer
_image = _class.createLegendIcon(_map, _layer, 30, 10)
intRet = _class.drawLegendIcon(_map, _layer, 30, 10, _image, 5, 5)
→結果 1(MS_FAILURE) あれ?
!!!!マップファイル
   CLASS
     METADATA
     END
   END

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