Вход Регистрация
Файл: vendor/intervention/image/src/Interfaces/ColorChannelInterface.php
Строк: 62
<?php

declare(strict_types=1);

namespace 
InterventionImageInterfaces;

use 
Stringable;

interface 
ColorChannelInterface extends Stringable
{
    
/**
     * Create color channel from normalized (0.0 - 1.0) value.
     */
    
public static function fromNormalized(float $normalized): self;

    
/**
     * Return the channels value normalized to a float value from 0.0 to 1.0.
     */
    
public function normalized(int $precision 32): float;

    
/**
     * Return the the minimal possible value of the color channel.
     */
    
public static function min(): float;

    
/**
     * Return the the maximal possible value of the color channel.
     */
    
public static function max(): float;

    
/**
     * Return color channels value.
     */
    
public function value(): int|float;

    
/**
     * Scale channel value by given percent.
     */
    
public function scale(int $percent): self;

    
/**
     * Transform color channel's value to string.
     */
    
public function toString(): string;
}
Онлайн: 1
Реклама