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

MapScript.Ja - mapObj.appendOutputFormat Diff

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

!!mapObj.appendOutputFormat メソッド
!!!説明
この地図に地図画像フォーマットを追加する
public int appendOutputFormat(
    outputFormatObj format
);

Public Function appendOutputFormat(ByVal format As outputFormatObj) As Integer

!!!サンプル
!!!!コード
Dim _map As mapObj = New mapObj("")
Dim _outputformat As New outputFormatObj("GD/PNG", "Bugna")

_outputformat.setOption("INTERLACE", "ON")
_outputformat.transparent = mapscript.MS_TRUE

_map.appendOutputFormat(_outputformat)
_map.setImageType("Bugna")

For Each _of As outputFormatObj In _map.outputformatlist
    Debug.WriteLine(_of.name)
Next

→結果
gif
png
png24
jpeg
wbmp
swf
imagemap
pdf
GTiff
svg
Bugna
!!!!マップファイル
MAP
  EXTENT -141 24.3571428571429 -52 100.642857142857
  FONTSET "c:\temp\fonts.list"
  IMAGECOLOR 180 180 250
  IMAGETYPE Bugna
  SYMBOLSET "c:\temp\symbolset.list"
  SHAPEPATH "c:\temp"
  SIZE 700 600
  STATUS ON
  TRANSPARENT TRUE
  UNITS DD
  NAME "MS"

  OUTPUTFORMAT
    NAME "Bugna"
    MIMETYPE "image/png"
    DRIVER "GD/PNG"
    EXTENSION "png"
    IMAGEMODE "PC256"
    TRANSPARENT TRUE
    FORMATOPTION "INTERLACE=ON"
  END
!!!参照

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