Adding Image to a Polygon

前端 未结 2 495
广开言路
广开言路 2021-01-23 19:00

I have been looking around to for help with this and no luck so I thought I would ask.

I am creating a series of diamond polygons and want to add an image onto them but

相关标签:
2条回答
  • 2021-01-23 19:57
    graphics.setClip( Shape );
    graphics.drawImage(...);
    
    0 讨论(0)
  • 2021-01-23 20:01

    This may help:

    http://download.oracle.com/javase/6/docs/api/java/awt/TexturePaint.html

    0 讨论(0)
提交回复
热议问题