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

MapScript.Ja - mapObj.transparent Diff

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

!!mapObj.transparent プロパティ
!!!説明
背景色透過の設定
public int transparent {get; set;}

Public Property transparent() As Integer

!!!サンプル
!!!!コード
Dim _map As mapObj = New mapObj("")

_map.transparent = mapscript.MS_ON
_map.getOutputFormatByName("PNG").transparent = mapscript.MS_TRUE
!!!!マップファイル
MAP
  EXTENT -141 24.3571428571429 -52 100.642857142857
  FONTSET "c:\temp\fonts.list"
  IMAGECOLOR 180 180 250
  IMAGETYPE png
  SYMBOLSET "c:\temp\symbolset.list"
  SHAPEPATH "c:\temp"
  SIZE 700 600
  STATUS ON
  TRANSPARENT TRUE
  UNITS KILOMETERS
  CONFIG PROJ_LIB "c:\ms4w\proj\bin\nad\""c:\ms4w\proj\nad\"
  NAME "MS"

  OUTPUTFORMAT
    NAME "png"
    MIMETYPE "image/png"
    DRIVER "GD/PNG"
    EXTENSION "png"
    IMAGEMODE "PC256"
    TRANSPARENT TRUE
  END
!!!参照

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