I need an easy way of alternative of getPixel()
for this code.
And some Explanation. I am new to image manipulation.
I dont want to use getpixel and setpixel.
color tempPix ;
srcImage
is my Image element.
x,y,filterx,filtery,s
are variables.
int x, y, filterx, filtery;
int s = fmat.Size / 2;
int r, g, b;
Color tempPix;
tempPix = srcImage.GetPixel(x + filterx - s, y + filtery - s);
Here instead of getPixel
I want to use some other thing, because getPixel
and setPixel
are little bit slower.