resize
changes the width and height of the given quad by altering its vertices.
@param width the new width of the Quad
.
@param height the new height of the Quad
.
Uses bi-linear filtering. @param w The new width. @param h The new height.
setSize(int, int)
.
newSize
.
@throws IllegalArgumentException if newSize
is negative.
resize(1.0)
sets the original size, resize(0.5)
resize to 50% of the original, resize(2.0)
resizes to 200% of the original.
Please note, that this method works correctly only for workbooks with the default font size (Calibri 11pt for .xlsx). If the default font is changed the resized image can be streched vertically or horizontally.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|