jaragunde commented on code in PR #990:
URL: https://github.com/apache/poi/pull/990#discussion_r2681917989
##########
poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFPictureShape.java:
##########
@@ -225,6 +225,10 @@ public Insets getClipping(){
POIXMLUnits.parsePercent(r.xgetR()));
}
+ public int getAlpha() {
+ return getBlip().sizeOfAlphaModFixArray() > 0 ?
POIXMLUnits.parsePercent(getBlip().getAlphaModFixArray(0).xgetAmt()) : 100000;
Review Comment:
I changed the wording of the comments I wrote. Instead of percentage, I call
it "range between 0 and 100000".
Unfortunately, the use of "percentage scaled by 1000" is everywhere, in the
method `parsePercent()` for example, and even the XML bean
`STPositivePercentage` may either return a percentage in the hundreds, ended in
`%`, or a percentage multipled by 1000.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]