int android.graphics.Bitmap.getRowBytes()

int android.graphics.Bitmap.getRowBytes()

Return the number of bytes between rows in the bitmap's pixels. Note that this refers to the pixels as stored natively by the bitmap. If you call getPixels() or setPixels(), then the pixels are uniformly treated as 32bit values, packed according to the Color class.

Returns:
number of bytes between rows of the native bitmap pixels.

原文地址:https://www.cnblogs.com/fengzhblog/p/3227454.html