Hi i have few questions about gradient stops. You can see in the code bellow that im trying to get transparency from the first stop, which is set to 43% in power point, but i get 3, also i want to know how to get brightness?
presentation: Tijana.pptx.zip (21.9 KB)
code:
String path = "Tijana.pptx";
Presentation presentation = new Presentation(path);
ISlide slide = presentation.getSlides().get_Item(0);
AutoShape shape = (AutoShape) slide.getShapes().get_Item(0);
IParagraph paragrph = shape.getTextFrame().getParagraphs().get_Item(0);
IPortion portion = paragrph.getPortions().get_Item(0);
IPortionFormatEffectiveData formatEffective = portion.createPortionFormatEffective();
IGradientStopEffectiveData gradientStop = formatEffective.getLineFormat().getFillFormat().getGradientFormat()
.getGradientStops().get_Item(0);
System.out.println(gradientStop.getColor().getTransparency());
Also can you tell me how would one set transparency and brightness ?-
Thanks,
Zeljko