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

Method getSubset

shared/java/Bitmap.java:305–309  ·  view source on GitHub ↗

Returns the bounds of this bitmap, offset by its PixelRef origin.

()

Source from the content-addressed store, hash-verified

303 * Returns the bounds of this bitmap, offset by its PixelRef origin.
304 */
305 @NotNull
306 public IRect getSubset() {
307 IPoint origin = getPixelRefOrigin();
308 return IRect.makeXYWH(origin.getX(), origin.getY(), getWidth(), getHeight());
309 }
310
311 /**
312 * <p>Sets width, height, ColorAlphaType, ColorType, ColorSpace.

Callers

nothing calls this directly

Calls 6

getPixelRefOriginMethod · 0.95
makeXYWHMethod · 0.95
getXMethod · 0.80
getYMethod · 0.80
getWidthMethod · 0.65
getHeightMethod · 0.65

Tested by

no test coverage detected