![](/img/trans.png)
[英]Android How to add icon on each listvIew list item and change the text color,Background color
[英]Add text on video, text color should change dynamically with background color
我正在與Xuggler&Java合作。 我已經從視頻中提取了圖像幀,並且可以在圖像幀上添加文本並通過圖像幀重新創建視頻。
Graphics2D g = (Graphics2D)Image.getGraphics();
g.drawString(data, x, y);
我想要一種根據背景圖像像素顏色更改文本顏色的方法,以便每次都能保持文本可見。
為文本使用半透明的顏色,或在文本上放置半透明的背景。
這並不完全是您所要求的,但它是可行的,並且是“下一件好事”。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.