mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 14:07:04 +03:00
Added: Incorrect image orientation
This commit is contained in:
parent
217207883f
commit
e3b62d24d8
87 changed files with 10461 additions and 21 deletions
107
rainloop/v/0.0.0/app/libraries/Imagine/Image/LayersInterface.php
Normal file
107
rainloop/v/0.0.0/app/libraries/Imagine/Image/LayersInterface.php
Normal file
|
|
@ -0,0 +1,107 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Imagine package.
|
||||
*
|
||||
* (c) Bulat Shakirzyanov <mallluhuct@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Imagine\Image;
|
||||
|
||||
use Imagine\Exception\RuntimeException;
|
||||
use Imagine\Exception\InvalidArgumentException;
|
||||
use Imagine\Exception\OutOfBoundsException;
|
||||
|
||||
/**
|
||||
* The layers interface
|
||||
*/
|
||||
interface LayersInterface extends \Iterator, \Countable, \ArrayAccess
|
||||
{
|
||||
/**
|
||||
* Merge layers into the original objects
|
||||
*
|
||||
* @throws RuntimeException
|
||||
*/
|
||||
public function merge();
|
||||
|
||||
/**
|
||||
* Animates layers
|
||||
*
|
||||
* @param string $format The output output format
|
||||
* @param integer $delay The delay in milliseconds between two frames
|
||||
* @param integer $loops The number of loops, 0 means infinite
|
||||
*
|
||||
* @return LayersInterface
|
||||
*
|
||||
* @throws InvalidArgumentException In case an invalid argument is provided
|
||||
* @throws RuntimeException In case the driver fails to animate
|
||||
*/
|
||||
public function animate($format, $delay, $loops);
|
||||
|
||||
/**
|
||||
* Coalesce layers. Each layer in the sequence is the same size as the first and composited with the next layer in
|
||||
* the sequence.
|
||||
*/
|
||||
public function coalesce();
|
||||
|
||||
/**
|
||||
* Adds an image at the end of the layers stack
|
||||
*
|
||||
* @param ImageInterface $image
|
||||
*
|
||||
* @return LayersInterface
|
||||
*
|
||||
* @throws RuntimeException
|
||||
*/
|
||||
public function add(ImageInterface $image);
|
||||
|
||||
/**
|
||||
* Set an image at offset
|
||||
*
|
||||
* @param integer $offset
|
||||
* @param ImageInterface $image
|
||||
*
|
||||
* @return LayersInterface
|
||||
*
|
||||
* @throws RuntimeException
|
||||
* @throws InvalidArgumentException
|
||||
* @throws OutOfBoundsException
|
||||
*/
|
||||
public function set($offset, ImageInterface $image);
|
||||
|
||||
/**
|
||||
* Removes the image at offset
|
||||
*
|
||||
* @param integer $offset
|
||||
*
|
||||
* @return LayersInterface
|
||||
*
|
||||
* @throws RuntimeException
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public function remove($offset);
|
||||
|
||||
/**
|
||||
* Returns the image at offset
|
||||
*
|
||||
* @param integer $offset
|
||||
*
|
||||
* @return ImageInterface
|
||||
*
|
||||
* @throws RuntimeException
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public function get($offset);
|
||||
|
||||
/**
|
||||
* Returns true if a layer at offset is preset
|
||||
*
|
||||
* @param integer $offset
|
||||
*
|
||||
* @return Boolean
|
||||
*/
|
||||
public function has($offset);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue