size_in_points property

ShapeBase.size_in_points property

Gets the size of the shape in points.

@property
def size_in_points(self) -> aspose.pydrawing.SizeF:
    ...

Examples

Shows how to verify a shape’s size and markup language.

doc = aw.Document()
builder = aw.DocumentBuilder(doc=doc)
shape = builder.insert_image(file_name=IMAGE_DIR + 'Transparent background logo.png')
self.assertEqual(aw.drawing.ShapeMarkupLanguage.DML, shape.markup_language)
self.assertEqual(aspose.pydrawing.SizeF(300, 300), shape.size_in_points)

See Also