android - drawBitmap() and setPixels(): what's the stride? -
could please explain me (ascii welcome) stride argument stands in canvas.drawbitmap() , in bitmap.setpixels()/getpixels()? understand it's way skip elements in colors array, how?
in cases stride same width. stride useful if trying copy/draw sub-region of bitmap. instance, if have 100x100 bitmap , want draw 50x50 top-right corner, can use width of 50px , stride of 100px.
Comments
Post a Comment