摘要
介绍了基于VC++的测井曲线的绘制与放大原理;分析了曲线绘制过程中屏幕的闪烁原因;提出了采用内存DC和内存位图绘图的双缓冲技术,并重点指明了当测井图形太大,特别是放大后图形成倍增大,利用双缓冲时内存位图不足的情况下,使用内存位图拼接的改进双缓冲技术解决闪烁的方法。最终事实表明,利用改进后的双缓冲技术实现了大量测井曲线的无闪烁显示,当用户进行拉动滚动条,图形放大等引起图形重绘的操作时,图形可以快速,无闪烁的进行浏览,这种方法可以应用到测井软件的开发中。
This article introduces the drawing and amplification principle of logging curves based on VC++; analyses the reason for screen flashing in curve drawing; puts forward the double buffering technology which adopts the memory DC and memory bitmap; and especially points out that because the memory bitmap cannot be too big, when the logging bitmap is too big to draw, we can adopt the memory bitmap mosaic technology which is called as improved double buffering technology. It turns out that improved double buffering technology can show the logging curve without flicker, and when the user pull the scroll bar or amplify the bitmap,the curves can also be browsed fast and non-flickeringly. This logging curve drawing method can be applied in the logging software development.
出处
《国外测井技术》
2014年第6期9-14,3,共6页
World Well Logging Technology
关键词
VC++
绘制与放大
闪烁
双缓冲技术
滚动条
VC++,drawing and amplification,flashing,the double buffering technology,the scroll bar