Returns row bytes, the interval from one pixel row to the next. Row bytes is at least as large as: getWidth() getBytesPerPixel(). Returns zero if getColorType() is ColorType#UNKNOWN, or if row bytes supplied to #setImageInfo(ImageInfo) is not large enough to hold a row of pixels. @
()
| 144 | * @return byte length of pixel row |
| 145 | */ |
| 146 | public long getRowBytes() { |
| 147 | try { |
| 148 | Stats.onNativeCall(); |
| 149 | return _nGetRowBytes(_ptr); |
| 150 | } finally { |
| 151 | ReferenceUtil.reachabilityFence(this); |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * <p>Sets alpha type, if argument is compatible with current color type. |