Implementing Cursor in Java with some Transparency

后端 未结 4 1424
情深已故
情深已故 2021-01-18 14:52

I have a 35x40 px. png image I want to use as a custom cursor in a Swing application. The image has a glow so contains alpha transparency values. Problem is when I attempt t

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-18 15:36

    Your code and cursor image actually produces the desired result on MacOS X 10.7.5 (jdk 1.6.0_31) with semi-transparent blue border. But I did notice an off comment in this answer saying that partial transparency is not supported in the default Windows look and feel.

提交回复
热议问题