Skip to main content

ClipOval

Overview

Clips the child widget to an oval (circle) shape. For example, show a profile image as a round avatar.

Properties

PropertyDescriptionValueDefault
clipperSets the reference rectangle the oval is drawn into. The rectangle is defined by a position (Left, Top) and a size (Width, Height), and the clip shape itself is the oval inscribed in that rectangle, filling it completely. So Left and Top set where the oval sits, and Width and Height set its horizontal and vertical diameters. Leave it unset, or set Width and Height to 0, and the child is clipped to the oval inscribed in its entire area.Rectangle (Rect)
Position: Left, Top + Size: Width, Height
Not set
clipBehaviorSets how the edge is treated when clipping along the oval boundary.none, hardEdge, antiAlias, antiAliasWithSaveLayerantiAlias