Lines Matching refs:dst
43 fun blendEachPair(blendFunction: (src: Rgba, dst: Rgba) -> Rgba) { in <lambda>()
53 BlendingMode.SRC_OVER -> blendEachPair { src, dst -> blendOver(src, dst) } in <lambda>() method
54 BlendingMode.DST_OVER -> blendEachPair { src, dst -> blendOver(dst, src) } in <lambda>() method
55 BlendingMode.SRC_IN -> blendEachPair { src, dst -> blendIn(src, dst) } in <lambda>() method
56 BlendingMode.DST_IN -> blendEachPair { src, dst -> blendIn(dst, src) } in <lambda>() method
57 BlendingMode.SRC_OUT -> blendEachPair { src, dst -> blendOut(src, dst) } in <lambda>() method
58 BlendingMode.DST_OUT -> blendEachPair { src, dst -> blendOut(dst, src) } in <lambda>() method
59 BlendingMode.SRC_ATOP -> blendEachPair { src, dst -> blendAtop(src, dst) } in <lambda>() method
60 BlendingMode.DST_ATOP -> blendEachPair { src, dst -> blendAtop(dst, src) } in <lambda>() method
61 BlendingMode.XOR -> blendEachPair { src, dst -> src xor dst } in <lambda>() method
62 BlendingMode.MULTIPLY -> blendEachPair { src, dst -> src * dst } in <lambda>() method
63 BlendingMode.ADD -> blendEachPair { src, dst -> dst + src } in <lambda>() method
64 BlendingMode.SUBTRACT -> blendEachPair { src, dst -> dst - src } in <lambda>() method
69 private fun blendOver(src: Rgba, dst: Rgba) = src + (dst * (255 - src.a)) in blendOver()
72 private fun blendIn(src: Rgba, dst: Rgba) = src * dst.a in blendOver()
75 private fun blendOut(src: Rgba, dst: Rgba) = src * (255 - dst.a) in blendOver()
78 private fun blendAtop(src: Rgba, dst: Rgba): Rgba { in blendOver()
79 val value = src * dst.a + dst * (255 - src.a) in blendOver()
80 value.a = dst.a in blendOver()