Border
class Border extends BaseAction
Adds a solid border around an image or video.
Learn more: Adding image borders
Methods
Action 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
Adds a border around the image.
Sets the width of the border.
Sets the style of the border.
Sets the color of the border.
Rounds the specified corners of an image.
Details
__construct(mixed ...$qualifiers)
Action 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 Border
solid(int $width = null, string $color = null)
Adds a border around the image.
$this
width(int|string $width)
Sets the width of the border.
$this
style(string $style)
Sets the style of the border.
$this
color(string $color)
Sets the color of the border.
Border
roundCorners(int|string|CornerRadius $radiusOrTopLeft, int $topRight = null, int $bottomRight = null, int $bottomLeft = null)
Rounds the specified corners of an image.
Only $radiusOrTopLeft specified: All four corners are rounded equally according to the value.
Only $radiusOrTopLeft and $topRight specified: Round the top-left & bottom-right corners according
to $radiusOrTopLeft, round the top-right & bottom-left corners according to $topRight.
Only $radiusOrTopLeft, $topRight and $bottomRight specified: Round the top-left corner according
to $radiusOrTopLeft, round the top-right & bottom-left corners according to $topRight, round the bottom-right
corner according to $bottomRight.
All qualifiers specified: Each corner is rounded accordingly.
Constants
MAIN_QUALIFIER |
|