public class ImgBuffer<T>
{
public T[] buf;
public int width;
public int height;
public ImgBuffer () {}
public ImgBuffer (int w, int h)
{
buf = new T[w*h];
width = w;
height = h;
}
public void Mirror()
{
ImageTools.Mirror (ref buf, width, height);
}
}
And the ImageTools class has Mirror defined for byte[], short[], and Color32[] on the fist argument. In particular:
public void Mirror(ref Color32[] buf, int width, int height) { ....
But I get this error:
error CS1502: The best overloaded method match for `ImageTools.Mirror(ref Color32[], int, int)' has some invalid arguments
What am I doing wrong?
string[]? Because I totally want to make aImgBuffer<string>. I'll follow that up with anImgBuffer<DateTime>.