Shape中添加字体,设置透明度问题

新建了一个shape,通过IPortion添加了文本内容,请问如何给这个文本设置透明度
IAutoShape shp = sld.getShapes().addAutoShape(ShapeType.Rectangle, 0, 0, 100, 100);
shp.getFillFormat().setFillType(FillType.NoFill);
shp.getLineFormat().getFillFormat().setFillType(FillType.NoFill);
ITextFrame txtFrame = shp.getTextFrame();
txtFrame.getTextFrameFormat().setRotationAngle((float)watermark.getRotation());
IPortion port = txtFrame.getParagraphs().get_Item(0).getPortions().get_Item(0);
//请问如何给这个text设置透明度
port.setText(watermark.getWatermarkText());

@lvyoufang

您能否尝试使用下面的示例代码。

        int alpha = 155, red = 255, green = 0, blue = 0;
        port.getPortionFormat().getFillFormat().getSolidFillColor().setColor(new java.awt.Color(red,green,blue,alpha));