I am trying to add a shadow effect to an image using docx4j. I am creating the image using the following:
- Code: Select all
// ByteBuffer myImage ...
byte[] bytes = myImage.array();
BinaryPartAbstractImage imagePart = BinaryPartAbstractImage
.createImagePart(wordMLPackage, bytes);
int docPrId = 1;
int cNvPrId = 2;
Inline inline = imagePart.createImageInline(image_ID,
image_description, docPrId, cNvPrId, true);
I tried using the tool to convert a docx into code and obtained the following code for setting my shapeProperties:
...