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

Method convert

shared/java/ColorSpace.java:37–45  ·  view source on GitHub ↗
(ColorSpace to, Color4f color)

Source from the content-addressed store, hash-verified

35 }
36
37 public Color4f convert(ColorSpace to, Color4f color) {
38 to = to == null ? getSRGB() : to;
39 try {
40 return new Color4f(_nConvert(_ptr, Native.getPtr(to), color.getR(), color.getG(), color.getB(), color.getA()));
41 } finally {
42 Reference.reachabilityFence(this);
43 Reference.reachabilityFence(to);
44 }
45 }
46
47 @ApiStatus.Internal
48 public ColorSpace(long ptr) {

Callers 1

linearCSMethod · 0.80

Calls 7

getSRGBMethod · 0.95
_nConvertMethod · 0.95
getPtrMethod · 0.95
getRMethod · 0.45
getGMethod · 0.45
getBMethod · 0.45
getAMethod · 0.45

Tested by

no test coverage detected