MCPcopy Create free account
hub / github.com/HumbleUI/Skija / drawsNothing

Method drawsNothing

shared/java/Bitmap.java:133–135  ·  view source on GitHub ↗

Returns true if width or height are zero, or if PixelRef is null. If true, Bitmap has no effect when drawn or drawn into. @return true if drawing has no effect

()

Source from the content-addressed store, hash-verified

131 * @return true if drawing has no effect
132 */
133 public boolean drawsNothing() {
134 return isEmpty() || isNull();
135 }
136
137 /**
138 * Returns row bytes, the interval from one pixel row to the next. Row bytes

Callers

nothing calls this directly

Calls 2

isNullMethod · 0.95
isEmptyMethod · 0.65

Tested by

no test coverage detected