RoundCorners
class RoundCorners extends BaseAction
Round one or more corners of an image or video.
Learn more: Rounded images | Rounded videos
Methods
RoundCorners constructor.
Adds the qualifier to the action.
Adds qualifiers to the action.
Adds (sets) generic (raw) action.
Sets the flag.
Removes the flag.
Serializes to json.
Serializes to Cloudinary URL format
Generates an asset with a circular crop using the 'max' radius value.
Rounds the specified corners of an image by specifying 1-4 pixel values as follows:
Sets top-left corner radius
Sets top-right corner radius.
Sets bottom-right corner radius.
Sets bottom-left corner radius.
Sets the corner radius.
Sets radius separately for (top-left, bottom-right) and (top-right, bottom-left) corners.
Sets radius separately for top-left, (top-right, bottom-left) and bottom-right corners.
Details
__construct(mixed ...$qualifiers)
RoundCorners constructor.
$this
addQualifier(BaseComponent $qualifier = null)
Adds the qualifier to the action.
$this
addQualifiers(array ...$qualifiers)
Adds qualifiers to the action.
BaseAction
setGenericAction(string $action)
Adds (sets) generic (raw) action.
$this
setFlag(FlagQualifier $flag, bool $set = true)
Sets the flag.
$this
unsetFlag(FlagQualifier $flag)
Removes the flag.
$this
importAction(BaseAction|null $action)
Imports (merges) qualifiers and flags from another action.
mixed
jsonSerialize()
Serializes to json.
string
__toString()
Serializes to Cloudinary URL format
static CornerRadiusTrait
max()
Generates an asset with a circular crop using the 'max' radius value.
static CornerRadiusTrait
byRadius(array ...$values)
Rounds the specified corners of an image by specifying 1-4 pixel values as follows:
1 value: All four corners are rounded equally according to the specified value. 2 values: 1st value => top-left & bottom-right. 2nd value => top-right & bottom-left. 3 values: 1st value => top-left. 2nd value => top-right & bottom-left. 3rd value => bottom-right. 4 values: Each corner specified separately, in clockwise order, starting with top-left.
CornersTrait
topLeft(int $radius)
Sets top-left corner radius
CornersTrait
topRight(int $radius)
Sets top-right corner radius.
CornersTrait
bottomRight(int $radius)
Sets bottom-right corner radius.
CornersTrait
bottomLeft(int $radius)
Sets bottom-left corner radius.
RoundCorners
setRadius(int|string|array|mixed ...$values)
Sets the corner radius.
CornersTrait
setSymmetricRadius(int $topLeftBottomRight, int $topRightBottomLeft)
Sets radius separately for (top-left, bottom-right) and (top-right, bottom-left) corners.
CornersTrait
setPartiallySymmetricRadius(int $topLeft, int $topRightBottomLeft, int $bottomRight)
Sets radius separately for top-left, (top-right, bottom-left) and bottom-right corners.
Constants
MAIN_QUALIFIER |
|