Format of TYPE_INT_RGB and TYPE_INT_ARGB

前端 未结 3 1225
情歌与酒
情歌与酒 2020-12-13 20:47

Could anyone explain for me how java stores color in TYPE_INT_RGB and TYPE_INT_ARGB ?
Do these lines of code work properly for calculating red, green and blue ?

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 21:14

    These are constant values that indicate the color model of an instance of BufferedImage. These values do not themselves store the color.

提交回复
热议问题