internal void WriteToImage(int bx, int by, Image <Rgba32> image) { Block8x8 block = this.SpectralBlocks[bx, by]; for (int y = 0; y < 8; y++) { for (int x = 0; x < 8; x++) { float val = this.GetBlockValue(block, x, y); var v = new Vector4(val, val, val, 1); Rgba32 color = default; color.FromVector4(v); int yy = (by * 8) + y; int xx = (bx * 8) + x; image[xx, yy] = color; } } }