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

Method SkiaVolatileImage

examples/scenes/src/SwingScene.java:836–842  ·  view source on GitHub ↗
(int width, int height, java.awt.ImageCapabilities caps, int transparency)

Source from the content-addressed store, hash-verified

834 }
835
836 public SkiaVolatileImage(int width, int height, java.awt.ImageCapabilities caps, int transparency) {
837 log("new SkiaVolatileImage(%d, %d, %s, %d)", width, height, caps, transparency);
838 this.width = width;
839 this.height = height;
840 this.caps = caps;
841 this.surface = Surface.makeRaster(ImageInfo.makeN32Premul(width, height));
842 }
843
844 @Override
845 public java.awt.image.BufferedImage getSnapshot() {

Callers

nothing calls this directly

Calls 3

logMethod · 0.95
makeRasterMethod · 0.95
makeN32PremulMethod · 0.95

Tested by

no test coverage detected