Skip to content

XWPFPicture: easy access to width and depth#150

Closed
dourouc05 wants to merge 4 commits intoapache:trunkfrom
dourouc05:dourouc05-patch-xwpfpicture
Closed

XWPFPicture: easy access to width and depth#150
dourouc05 wants to merge 4 commits intoapache:trunkfrom
dourouc05:dourouc05-patch-xwpfpicture

Conversation

@dourouc05
Copy link
Copy Markdown

I suppose adding a test case wouldn't hurt (something like calling XWPFRun.addPicture then calling these two new methods).

(BTW, would a pull request to add an overload to XWPFRun.addPicture be accepted? It would be to compute the width and depth from the input file, using javax.ImageIO -- an acceptable dependency or not?)

@asfgit
Copy link
Copy Markdown

asfgit commented May 26, 2019

Can one of the admins verify this patch?

}

/**
* Returns the width of the picture (in EMU).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

width was copied from above.

Most of the other API use Units.toPoints() to convert out of EMU to more human understandable points.

@dourouc05
Copy link
Copy Markdown
Author

I've just added a test for the new methods. Is this enough for merging?

@dourouc05
Copy link
Copy Markdown
Author

@pjfanning @Alain-Bearez is this OK to merge?

@asfgit asfgit closed this in 6672611 Jul 19, 2019
@pjfanning
Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants