Computer Engineering and Applications ›› 2007, Vol. 43 ›› Issue (14): 84-86.

• 产品、研发、测试 • Previous Articles     Next Articles

Implementation of Cross-platform BMP Image Processing Program

Yongzhi PAN Yuhe LI Dongyue LIU   

  • Received:2006-11-15 Revised:1900-01-01 Online:2007-05-10 Published:2007-05-10
  • Contact: Yongzhi PAN

跨平台BMP图像处理程序的实现

潘永之 李玉和 刘东岳   

  1. 清华大学精密仪器与机械学系仪器科学与技术研究所 清华大学精密仪器与机械学系仪器科学与技术研究所 海军装备研究院
  • 通讯作者: 潘永之

Abstract: In this article the concept and characteristics of cross-platform are introduced. Based on the analysis of the structure of BMP images, several key points of cross-platform image processing programming are brought forward. Following these points, a number of cross-platform BMP image processing programs are written in the C++ language, and are built successfully under several platforms such as Linux/x86, FreeBSD, SunOS/sparc and Windows/x86-64. The experimental results show that cross-platform programming can boost the universality and compatibility of programs, broadening the way of programming techniques.

摘要: 本文介绍了跨平台的概念和特点,以及跨平台编程的思想,在对BMP图像结构分析的基础上,提出了编写跨平台图像处理程序的几个关键问题。并遵循这些要点,利用C++语言编写了若干跨平台BMP图像处理的程序,这些程序在Linux/x86, FreeBSD, SunOS/sparc, Windows/x86-64等多个平台下成功编译和运行。实验结果表明,跨平台编程可以大大提高程序的通用性和兼容性,为编程技术拓宽了思路。