Czy mógłby mi ktośwytłumaczyć jak się używa metody ```
setpixels
setpixel ogarniam, ale w Setpixels nie rozumiem parametrów
Czy mógłby mi ktośwytłumaczyć jak się używa metody ```
setpixels
setpixel ogarniam, ale w Setpixels nie rozumiem parametrów
https://developer.xamarin.com/api/member/Android.Graphics.Bitmap.SetPixels/p/System.Int32[]/System.Int32/System.Int32/System.Int32/System.Int32/System.Int32/System.Int32/
pixels=new int[Screen.width];
for(int i = 0;i<Screen.width/2;++i)
{
pixels[i]=Color.RED;
}
...
bitmap.setPixels(pixels, 0, Screen.width, 0, 0,Screen.width, Screen.height);
dostaję error
java.lang.ArrayIndexOutOfBoundsException
nie rozumiem parametru stride