CompassGravity
class CompassGravity extends GravityQualifier
Defines the gravity based on directional values from a compass.
Learn more: Control gravity for images | Control gravity for videos
Methods
North west corner (top left).
North center part (top center).
North east corner (top right).
Middle west part (left).
The center of the image.
Middle east part (right).
South west corner (bottom left).
South center part (bottom center).
South east corner (bottom right).
Sets the center of gravity to the given x & y coordinates.
Creates a new instance of the CompassGravity class.
CompassGravity constructor.
Details
static CompassGravity|CompassPosition
northWest(array ...$args)
North west corner (top left).
static CompassGravity|CompassPosition
north(array ...$args)
North center part (top center).
static CompassGravity|CompassPosition
northEast(array ...$args)
North east corner (top right).
static CompassGravity|CompassPosition
west(array ...$args)
Middle west part (left).
static CompassGravity|CompassPosition
center(array ...$args)
The center of the image.
static CompassGravity|CompassPosition
east(array ...$args)
Middle east part (right).
static CompassGravity|CompassPosition
southWest(array ...$args)
South west corner (bottom left).
static CompassGravity|CompassPosition
south(array ...$args)
South center part (bottom center).
static CompassGravity|CompassPosition
southEast(array ...$args)
South east corner (bottom right).
static CompassGravity|CompassPosition
xyCenter(array ...$args)
Sets the center of gravity to the given x & y coordinates.
static CompassGravity
compass(string $direction, array ...$args)
Creates a new instance of the CompassGravity class.
__construct(string $direction = null)
CompassGravity constructor.
Constants
VALUE_CLASS |
|