-1
我一直在使用Java API 2D,我試圖找出如何使我的廣場充滿了鏡面效果的顏色,例如,如何畫有虛線邊框透明形狀
g.drawRect(0,0,40,40)
g.fill(Color) //is it possible to get a translucid color? like a mirror effect
我一直在使用Java API 2D,我試圖找出如何使我的廣場充滿了鏡面效果的顏色,例如,如何畫有虛線邊框透明形狀
g.drawRect(0,0,40,40)
g.fill(Color) //is it possible to get a translucid color? like a mirror effect
當您繪製Shape
時,您想要更改Graphics
上下文使用的Stroke
。看看Stroking and Filling Graphics Primitives瞭解更多詳情