⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chapter09paddedimage.pro

📁 IDL可视化分析与应用的源代码
💻 PRO
字号:
; Chapter09PaddedImage.pro
PRO Chapter09PaddedImage
  earth = READ_PNG (FILEPATH ('avhrr.png', $
    SUBDIRECTORY = ['examples', 'data']), R, G, B)
  TVLCT, R, G, B
  maxColor = !D.TABLE_SIZE - 1
  TVLCT, 255, 255, 255, maxColor
  DEVICE, DECOMPOSED = 0, RETAIN = 2
  earthSize = SIZE(earth, /DIMENSIONS)
  paddedEarth = REPLICATE(BYTE(maxColor), earthSize[0] + 20, $
  earthSize[1] + 40)
  paddedEarth [10,10] = earth
  WINDOW, 0, XSIZE = earthSize[0] + 20, YSIZE = earthSize[1] + 40
  TV, paddedEarth
  x = (earthSize[0]/2) + 10
  y = earthSize[1] + 15
  XYOUTS, x, y, 'World Map', ALIGNMENT = 0.5, COLOR = 0, /DEVICE
END

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -