首页

  1. 首页
  2. 测绘论文
  3. 内容

如何利用Mapbasic语言打开bmp图像

1.首先向tab文件中写入一些相关信息
 open file "D:testbmp" & danyuan_name & ".tab" for output as #1
  print #1, "!table"
  print #1, "!version 300"
  print #1, "!charset WindowsSimpChinese"
  print #1, ""   
  print #1, "Definition Table"
  print #1, "  File "& """" & danyuan_name & ".bmp" & """" 
  print #1, "  Type " & """" & "RASTER" & """"
  print #1, "  (0,0) (0,0) Label " & """""" & ","
  print #1, "  (1,0) (1,0) Label """","
  print #1, "  (0,1) (0,1) Label """""
  print #1, "  CoordSys NonEarth Units " & """" & "ft" & """"
  print #1, "  Units " & """" & "ft" & """"
 close file #1

2.打开该tab文件(表)
 Open Table "D:testbmp" & danyuan_name & ".tab" Interactive
 Map From "_" & danyuan_name 或者:Map From danyuan_name
 

相关文章

回到顶部
请复制以下网址分享
如何利用Mapbasic语言打开bmp图像
https://m.gc5.com/chgc/chlw/10171154.html