Paste
in package
implements
FilterInterface
A paste filter.
Table of Contents
Interfaces
- FilterInterface
- Interface for imagine filters.
Properties
- $alpha : int
- How to paste the image, from 0 (fully transparent) to 100 (fully opaque).
- $image : ImageInterface
- $start : PointInterface
Methods
- __construct() : mixed
- Constructs a Paste filter with given ImageInterface to paste and x, y coordinates of target position.
- apply() : ImageInterface
- Applies scheduled transformation to an ImageInterface instance.
Properties
$alpha
How to paste the image, from 0 (fully transparent) to 100 (fully opaque).
private
int
$alpha
$image
private
ImageInterface
$image
$start
private
PointInterface
$start
Methods
__construct()
Constructs a Paste filter with given ImageInterface to paste and x, y coordinates of target position.
public
__construct(ImageInterface $image, PointInterface $start[, int $alpha = 100 ]) : mixed
Parameters
- $image : ImageInterface
- $start : PointInterface
- $alpha : int = 100
-
how to paste the image, from 0 (fully transparent) to 100 (fully opaque)
apply()
Applies scheduled transformation to an ImageInterface instance.
public
apply(ImageInterface $image) : ImageInterface
Parameters
- $image : ImageInterface
Tags
Return values
ImageInterface —returns the processed ImageInterface instance