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

Method getSubset

shared/java/Bitmap.java:331–335  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

329 * Returns the bounds of this bitmap, offset by its PixelRef origin.
330 */
331 @NotNull
332 public IRect getSubset() {
333 IPoint origin = getPixelRefOrigin();
334 return IRect.makeXYWH(origin.getX(), origin.getY(), getWidth(), getHeight());
335 }
336
337 /**
338 * <p>Sets width, height, ColorAlphaType, ColorType, ColorSpace.

Callers 1

drawImageWithFiltersMethod · 0.80

Calls 5

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

Tested by

no test coverage detected