original_height_cm propiedad
original_height_cm propiedad
Obtiene la altura original de la imagen, en unidades de centímetros.
Ejemplo
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.
picHeightCM = pic.original_height_cm
# Save the excel file.
workbook.save("result.xlsx")
Definición:
@property
def original_height_cm(self):
...
Ver también
- módulo
aspose.cells.drawing
- clase
Picture