(@NotNull Pixmap dst, SamplingMode samplingMode, boolean cache)
| 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); |
no test coverage detected