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

MapScript.Ja - mapObj.drawScalebar Diff

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

!!mapObj.drawScalebar メソッド
!!!説明
この地図のスケールバーを描画する
public imageObj drawScalebar();

Public Function drawScalebar() As imageObj
!!!サンプル
!!!!コード
Dim _map As mapObj = New mapObj("")
Dim _img2 As imageObj

With _map.scalebar
    .status = mapscript.MS_ON
    .units = MS_UNITS.MS_KILOMETERS
End With

_img2 = _map.drawScalebar
_img2.save("c:\temp\bugnar." & _img.format.extension, _map)
!!!!マップファイル
  SCALEBAR
    COLOR 0 0 0
    IMAGECOLOR 255 255 255
    INTERVALS 4
    LABEL
      SIZE MEDIUM
      TYPE BITMAP
      BUFFER 0
      COLOR 0 0 0
      FORCE FALSE
      MINDISTANCE -1
      MINFEATURESIZE -1
      OFFSET 0 0
      PARTIALS TRUE
      POSITION CR
    END
    POSITION LL
    SIZE 200 3
    STATUS ON
    STYLE 0
    UNITS KILOMETERS
  END
!!!参照

[[mapObj メンバ]] | [[(global) 名前空間|http://wiki.fdiary.net/MapScriptJa]]