https://bz.apache.org/bugzilla/show_bug.cgi?id=58216
Bug ID: 58216
Summary: provide picture-shape resize that maintains the aspect
ratio
Product: POI
Version: 3.13-dev
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: XSLF
Assignee: [email protected]
Reporter: [email protected]
Created attachment 32974
--> https://bz.apache.org/bugzilla/attachment.cgi?id=32974&action=edit
patch with proposed changes
This functionality is useful when using placeholder anchor information when
placing images.
(pseudo-)code example:
// content placeholders
LinkedList<XSLFTextShape> placeContent = ...;
LOOP:
{
XSLFShape place = placeContent.poll();
Rectangle2D anchor = place.getAnchor();
slide.removeShape(place);
XSLFPictureShape shape = slide.createPicture
(
slide.getSlideShow().addPicture
(
...
)
);
shape.resize(anchor, RectAlign.TOP_RIGHT);
}
Depends on #58207
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]