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

MapScript.Ja - mapObj.zoomScale Diff

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

!!mapObj.zoomScale メソッド
!!!説明
public int zoomScale(
    double scale,
    pointObj poPixPos,
    int width,
    int height,
    rectObj poGeorefExt,
    rectObj poMaxGeorefExt
);

Public Function zoomScale(ByVal scale As Double, ByVal poPixPos As pointObj, ByVal width As Integer, ByVal height As Integer, ByVal poGeorefExt As rectObj, ByVal poMaxGeorefExt As rectObj) As Integer
!!!サンプル
!!!!コード
Dim _map As New mapObj("")
Dim MouseArgs As System.Windows.Forms.MouseEventArgs = DirectCast(e, System.Windows.Forms.MouseEventArgs)
Dim ClickPt As New pointObj(MouseArgs.X, MouseArgs.Y, Nothing, Nothing)

_map.zoomScale(_map.scale * 1.2, ClickPt, _map.width, _map.height, _map.extent, Nothing)

""ClickPtは、マウスなどで指示した画像上の座標値を表す。
!!!!マップファイル
影響なし
!!!参照

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