我試圖在 Swing 中將圖像繪制為多邊形,但我不知道如何。現(xiàn)在我只有繪制填充多邊形的代碼。這不是裁剪的圖像,它是扭曲的。我需要什么(帶紋理的多邊形):我所擁有的 - 填充多邊形gr.fillPolygon(x_points, y_points, points.length); 查看完整描述