poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 58216] New: provide picture-shape resize that maintains the aspect ratio
Date Thu, 06 Aug 2015 06:04:10 GMT
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: dev@poi.apache.org
          Reporter: Mark.Olesen@gmx.net

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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message