MCPcopy Create free account
hub / github.com/JetBrains/skija / drawsNothing

Method drawsNothing

shared/java/Bitmap.java:132–134  ·  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

130 * @return true if drawing has no effect
131 */
132 public boolean drawsNothing() {
133 return isEmpty() || isNull();
134 }
135
136 /**
137 * 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