computeByteSize

Returns minimum memory required for pixel storage. Does not include unused memory on last row when getRowBytesAsPixels() exceeds getWidth(). Returns zero if height() or width() is 0. Returns getHeight() times getRowBytes() if getColorType() is ColorType.UNKNOWN.

Return

size in bytes of image buffer