Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
出于某种原因,Google API 需要 long而不是对象(如 Color)。这个格式是什么,我该如何传递它?
您可以直接在调用中以十六进制定义它。每对代表 Alpha(透明度)、红色、绿色和蓝色:
例如:0xFF00FF00 是纯绿色
通过在十六进制后放置“L”来定义您的长:
Image i = imageService.composite(images, 100, 100, 0xff00ff00L);