HumHub Documentation (unofficial)

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

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)


        
On this page

Search results