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

Method isEmpty

shared/java/IHasImageInfo.java:83–83  ·  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

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

Implementers 3

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

Calls

no outgoing calls

Tested by 3

executeMethod · 0.52
checksMethod · 0.52
finishTestingMethod · 0.52