注册 登录
编程论坛 VFP论坛

哪位能还原数组中的值为图像文件

radiofan 发布于 2021-02-20 13:17, 1014 次点击
Returns current video frame image as array of RGB values.
Syntax
Function GetRGB

Return value
(none)

Remarks
.
Example
Dim a() As Byte
a = VideoCapX1.GetRGB
For y = 0 To 239 慽mage height is 240 pixels in this case
For x = 0 To 319 �320 pixels
i = (y * (320 * 3)) + (x * 3)
'NOTE: byte order isn't RGB, it's BGR
PSet (x, y), RGB(a(i + 2), a(i + 1), a(i))
Next x
Next y

请问,如何还原为图像文件?
2 回复
#2
吹水佬2021-02-20 19:11
VideoCapX控件没有输出到文件吗?
了解一下BMP文件结构,自己写BMP图像文件
#3
radiofan2021-02-20 20:42
以下是引用吹水佬在2021-2-20 19:11:33的发言:

VideoCapX控件没有输出到文件吗?
了解一下BMP文件结构,自己写BMP图像文件


1、有!
2、只是好奇,没有研究从像素到文件
3、上次那个报表到图片还是你帮我搞定的,多谢了,很好用。
1