original_height عقار
original_height عقار
الحصول على الارتفاع الأصلي للصورة.
مثال
from aspose.cells import Workbook
# Instantiating a Workbook object
workbook = Workbook()
worksheet = workbook.worksheets[0]
# Adding a picture at the location of a cell whose row and column indices are 1 in the worksheet. It is "B2" cell
imgIndex = worksheet.pictures.add(1, 1, "example.jpeg")
# Get the inserted picture object
pic = worksheet.pictures[imgIndex]
# Gets the original height of the picture.
picHeight = pic.original_height
# Save the excel file.
workbook.save("result.xlsx")
تعريف:
@property
def original_height(self):
...
أنظر أيضا
- الوحدة
aspose.cells.drawing
- فئة
Picture