mapObj.zoomPoint
mapObj.zoomPoint メソッド
説明
地図のズーム。与えられた倍率(整数倍)に拡大縮小し、指定点にセンタリングする
public int zoomPoint( int zoomfactor, pointObj poPixPos, int width, int height, rectObj poGeorefExt, rectObj poMaxGeorefExt );
Public Function zoomPoint(ByVal zoomfactor As Integer, 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.zoomPoint(2, ClickPt, _map.width, _map.height, _map.extent, Nothing)
ここでのMouseArgs は、マウスの位置情報である。2番目の引数は、地図上のポイントではなく、画像上の位置を示す。
マップファイル
影響なし
Keyword(s):
References:[mapObj メンバ]