Computing the combined color of two colors (Over operator)

后端 未结 3 591
南旧
南旧 2021-01-15 08:28

This is for an Android application. Let\'s say that I have two colors with alpha

int color1 = 0x12345678  // aarrggbb
int color2 = 0x87654321
3条回答
  •  悲&欢浪女
    2021-01-15 08:55

    It's part of the Java Advanced Imaging API:

    http://download.java.net/media/jai/javadoc/1.1.3/jai-apidocs/javax/media/jai/operator/CompositeDescriptor.html

    http://www.oracle.com/technetwork/java/current-142188.html

提交回复
热议问题