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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -