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

MapScript.Ja - scalebarObj.imagecolor Diff

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

!!scalebarObj.imagecolor プロパティ
!!!説明
背景色
public colorObj imagecolor {get; set;}

Public Property imagecolor() As colorObj
!!!サンプル
!!!!コード
Dim _scalebar As scalebarObj

_scalebar = _map.scalebar

With _scalebar
     .status = mapscript.MS_EMBED
     .units = MS_UNITS.MS_KILOMETERS
     .color = New colorObj(255, 0, 0, 0)
     .backgroundcolor = New colorObj(0, 255, 0, 0)
     .imagecolor = New colorObj(0, 0, 255, 0)
     .style = 1
End With
!!!!マップファイル
  SCALEBAR
    BACKGROUNDCOLOR 0 255 0
    COLOR 255 0 0
    IMAGECOLOR 0 0 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 EMBED
    STYLE 1
    UNITS KILOMETERS
  END
!!!参照

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