matrix array question

Blitz3D Forums/Blitz3D Beginners Area/matrix array question

tsmpaul(Posted 2006) [#1]
Hi guys. Just wondering, I'm trying to write code so that I can capture the screen as an image, apply an effect to the image, then display the new image. I can capture the screen easily enough, and I've pretty much worked out what I need to do to apply graphic effects to my generated image, but I need to make use of a data matrix. I found a good website that explains in C how to generate image effects like image blurring, and I've been translating the samples into Blitz code. How do you define data matrixes in Blitz3d?

Ie, in C it might look something like this

#Define gauss_width 7
int gauss_fact[gauss_width]={1,6,15,20,15,6,1};

If anyone understands C programming, or matrixes, any comments could help me? Thanks!


b32(Posted 2006) [#2]
Use "Dim gauss_fact(gauss_width)"
and then assign the values to it manually
gauss_fact(0) = 1
gauss_fact(1) = 6
gauss_fact(2) = 15
etc.


tsmpaul(Posted 2006) [#3]
thanks!