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

Method isEmpty

shared/java/IHasImageInfo.java:82–82  ·  view source on GitHub ↗

Returns true if either getWidth() or getHeight() are zero. Does not check if PixelRef is null; call Bitmap#drawsNothing() to check getWidth(), getHeight(), and PixelRef. @return true if dimensions do not enclose area

()

Source from the content-addressed store, hash-verified

80 * @return true if dimensions do not enclose area
81 */
82 default boolean isEmpty() {
83 return getImageInfo().isEmpty();
84 }
85

Implementers 4

Codecshared/java/Codec.java
Bitmapshared/java/Bitmap.java
Pixmapshared/java/Pixmap.java
Imageshared/java/Image.java

Calls

no outgoing calls

Tested by 4

baseMethod · 0.52
checksMethod · 0.52
fillWithPaintMethod · 0.52
finishTestingMethod · 0.52