Returns storage required by pixel array, given ImageInfo dimensions, ColorType, and rowBytes. rowBytes is assumed to be at least as large as #getMinRowBytes(). Returns zero if height is zero. @param rowBytes size of pixel row or larger @return memory required by pix
(long rowBytes)
| 225 | * @see <a href="https://fiddle.skia.org/c/@ImageInfo_computeByteSize">https://fiddle.skia.org/c/@ImageInfo_computeByteSize</a> |
| 226 | */ |
| 227 | public long computeByteSize(long rowBytes) { |
| 228 | if (0 == _height) return 0; |
| 229 | return (_height - 1) * rowBytes + _width * getBytesPerPixel(); |
| 230 | } |
| 231 | |
| 232 | /** |
| 233 | * <p>Returns storage required by pixel array, given ImageInfo dimensions, and |
no test coverage detected