Hi,
I’m new here and have encountered an annoyance when working with bitmapData and Matrix:
cam = Camera.get();
vid.attachVideo(cam);
var videoW = vid._width; //1024
var videoH = vid._height; //768
var pxSize = 256;
grid = new BitmapData(videoW/pxSize, videoH/pxSize, false, 0x006600FF);
gridSrc.attachBitmap(grid, 2);
scaleMatrix.scale(1/pxSize,1/pxSize);
grid.draw(vid,scaleMatrix);
gives only the color #6600FF,while you should see a four by three (1024/256…) pixelgrid…
Any ideas how I could resolve this issue?
Thx in advance,
gmr