-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathResolutionInterface.php
More file actions
51 lines (40 loc) Β· 1.01 KB
/
ResolutionInterface.php
File metadata and controls
51 lines (40 loc) Β· 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
declare(strict_types=1);
namespace Intervention\Image\Interfaces;
use Intervention\Image\Length;
use Stringable;
interface ResolutionInterface extends Stringable
{
/**
* Factory method to create resolution with given dots per inch.
*/
public static function dpi(float $x, float $y): self;
/**
* Factory method to create resolution with given pixels per inch.
*/
public static function ppi(float $x, float $y): self;
/**
* Convert resolution to units per inch.
*/
public function perInch(): self;
/**
* Convert resolution to units per centimeter.
*/
public function perCm(): self;
/**
* Return resolution of x-axis value.
*/
public function x(): float;
/**
* Return resolution on y-axis value.
*/
public function y(): float;
/**
* Return length unit of resolution.
*/
public function length(): Length;
/**
* Transform object to string.
*/
public function toString(): string;
}