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

Method scalePixels

shared/java/Image.java:352–360  ·  view source on GitHub ↗
(@NotNull Pixmap dst, SamplingMode samplingMode, boolean cache)

Source from the content-addressed store, hash-verified

350 }
351
352 public boolean scalePixels(@NotNull Pixmap dst, SamplingMode samplingMode, boolean cache) {
353 try {
354 assert dst != null : "Can’t scalePixels with dst == null";
355 return _nScalePixels(_ptr, Native.getPtr(dst), samplingMode._pack(), cache);
356 } finally {
357 Reference.reachabilityFence(this);
358 Reference.reachabilityFence(dst);
359 }
360 }
361
362 @ApiStatus.Internal public static native long _nMakeRaster(int width, int height, int colorType, int alphaType, long colorSpacePtr, byte[] pixels, long rowBytes);
363 @ApiStatus.Internal public static native long _nMakeRasterData(int width, int height, int colorType, int alphaType, long colorSpacePtr, long dataPtr, long rowBytes);

Calls 3

_nScalePixelsMethod · 0.95
getPtrMethod · 0.95
_packMethod · 0.65

Tested by

no test coverage detected