def ResizingSelectedImages(height = 10000, width = 8000):
oDoc = getReady()
cSelection = oDoc.getCurrentSelection()
for loopi in range(cSelection.Count) :
tmpImage = cSelection.getByIndex(loopi)
tmpSize = tmpImage.Size
tmpSize.Width = width
tmpSize.Height = height
tmpImage.setSize(tmpSize)
2. Resizing the first images (getByIndex(0)) in the selected sheet.
oSheet = oDoc.getSheets().getByIndex(0)
oDraw = oSheet.getDrawPage()
oImage = oDraw.getByIndex(0)
newSize = oImage.Size
newSize.Height = 20000
newSize.Width = 20000
oImage.setSize(newSize)
댓글 없음:
댓글 쓰기