首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 其他开发语言 >

IDL中DISP_GET_LOCATION这个的具体用法,拜托哪位高手能给小弟我讲讲,实在是找不到了,多谢啦

2012-10-11 
IDL中DISP_GET_LOCATION这个的具体用法,拜托谁能给我讲讲,实在是找不到了,谢谢啦!RT[解决办法] SyntaxDISP

IDL中DISP_GET_LOCATION这个的具体用法,拜托谁能给我讲讲,实在是找不到了,谢谢啦!
RT

[解决办法]
Syntax

DISP_GET_LOCATION
Arguments
DN

The display number corresponding to an open display.
XFLOC

Upon return, this variable contains the x location of the current pixel, in modified file coordinates.
YFLOC

Upon return, this variable contains the y location of the current pixel, in modified file coordinates.
Keywords
FLOATING (optional)

Set this keyword if you want the XFLOC and YFLOC coordinates to be returned as floating point values. If this keyword is not set, then XFLOC and YFLOC will be long integer values.
NO_OFFSET (optional)

Set this keyword to return the current pixel location in ordinary zero-based file coordinates (without (xy) start values being added).
Example

Python code
;  ; This example prints out the location of   ; the current pixel for each display  ;  pro example_disp_get_location    ;     ; Get all the display numbers and     ; check to make sure at least one    ; display is present.    ;    display = envi_get_display_numbers()    if (display[0] eq -1) then return    ;    ; Print out the location of the     ; current pixel for each display    ;     for i=0, n_elements(display)-1 do begin      disp_get_location, display[i], xloc, yloc      print, display[i], xloc, yloc    endfor  end 

热点排行