提高VB6.0处理图像的速度的方法
来源:互联网 发布:怎么宣传淘宝店铺 编辑:程序博客网 时间:2024/05/21 21:48
通常我们都觉得VB6.0在处理图像的能力方面表现很差,一般很少有它来做图像处理。如果把图像先装入数组,再做各种运算,最后将图像显示到图像控件,速度还是比较快的。以下是我用imagxpress控件配合此方法的代码:
模块
'Imagx是自定义变量类型
Public Type ImageX
ImageArray() As Byte
End Type
'将imagxpress控件中的图像写入数组
Function GetImage(imageOBJ As ImagXpress) As ImageX
Dim PBag As New PropertyBag
PBag.WriteProperty "Picture", imageOBJ.Picture
GetImage.ImageArray = PBag.Contents '获取容器Byte 到 B() 数组中
End Function
'将数组内容写入imagxpress控件
Sub PutImage(imageOBJ As ImagXpress,image As ImageX )
Dim PBag As New PropertyBag
PBag.Contents = image .ImageArray
Set imageOBJ.Picture = PBag.ReadProperty("Picture")
End Sub
- 提高VB6.0处理图像的速度的方法
- 使用GPU提高OpenCV的图像处理运算速度
- 30种提高mysql处理速度的方法
- 数据库-面试题-提高数据库处理查询速度的方法
- 处理百万级数据提高查询速度的方法
- 提高查询速度的方法
- 提高查询速度的方法
- 提高查询速度的方法
- 提高查询速度的方法
- 提高网站速度的方法
- 各种图像处理库的处理速度
- VB6 中处理 INI 文件的方法
- 提高IMP速度的几个方法
- 提高网页浏览速度的方法
- 提高数据库查询速度的方法
- 提高SQL SERVER运行速度的方法
- 提高IMP速度的几个方法
- 提高数据库访问速度的方法
- div 拖动2
- SQL
- 【标题】
- ORACLE生成数据字典的语句
- Ubuntu 10.10 驱动开发环境IDE 配置 ---基于kate
- 提高VB6.0处理图像的速度的方法
- SRM 504.5 DIV2
- PHP网页抓取
- 关于coverity 的使用文档
- 关于coverity 的使用文档
- 软件设计的十二个步骤
- 转:Source Insight经典教程
- GInfoWindow()和GInfoWindowTabs()的应用
- div 拖动3(1)