mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
* Support rendering transparent bitmaps in presentations. Add PictureShape.getAlpha() method and implementations for HSLF and XSLF. Then make use of it in DrawPictureShape to apply the right alpha value to the picture being drawn. Fixed a bug in BitmapImageRenderer that considered alpha value 0 as "fully opaque", when it means "fully transparent" instead. Finally, added a test for this feature in TestDrawPictureShape for XSLF. A test for HSLF could not be created because it was not possible to generate a test file with today's tools; MS Office removes the bitmap transparency effect when saving as .ppt, and LibreOffice blends it into the bitmap. * Address reviewer comments. * Add comment about default alpha value. * Prevent NPE in XSLFPictureShape.getAlpha(). * Change wording in comments to avoid the word "percentage". * Use static vars for extreme alpha values.