
## ShapeBase.can_have_image property

Returns ``True`` if the shape type allows the shape to have an image.



```python
@property
def can_have_image(self) -> bool:
    ...

```

### Remarks

Although Microsoft Word has a special shape type for images, it appears that in Microsoft Word documents any shape
except a group shape can have an image, therefore this property returns ``True`` for all shapes except [GroupShape](../../groupshape/).




### Examples

Shows how to insert and rotate an image.

```python
doc = aw.Document()
builder = aw.DocumentBuilder(doc=doc)
# Insert a shape with an image.
shape = builder.insert_image(file_name=IMAGE_DIR + 'Logo.jpg')
self.assertTrue(shape.can_have_image)
self.assertTrue(shape.has_image)
# Rotate the image 45 degrees clockwise.
shape.rotation = 45
doc.save(file_name=ARTIFACTS_DIR + 'Shape.Rotate.docx')
```

### See Also

* module [aspose.words.drawing](../../)
* class [ShapeBase](../)

