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
149
rainloop/v/0.0.0/app/libraries/Imagine/Draw/DrawerInterface.php
Normal file
149
rainloop/v/0.0.0/app/libraries/Imagine/Draw/DrawerInterface.php
Normal file
|
|
@ -0,0 +1,149 @@
|
|||
<?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\Draw;
|
||||
|
||||
use Imagine\Image\AbstractFont;
|
||||
use Imagine\Image\BoxInterface;
|
||||
use Imagine\Image\Palette\Color\ColorInterface;
|
||||
use Imagine\Image\PointInterface;
|
||||
use Imagine\Exception\RuntimeException;
|
||||
|
||||
/**
|
||||
* Interface for the drawer
|
||||
*/
|
||||
interface DrawerInterface
|
||||
{
|
||||
/**
|
||||
* Draws an arc on a starting at a given x, y coordinates under a given
|
||||
* start and end angles
|
||||
*
|
||||
* @param PointInterface $center
|
||||
* @param BoxInterface $size
|
||||
* @param integer $start
|
||||
* @param integer $end
|
||||
* @param ColorInterface $color
|
||||
* @param integer $thickness
|
||||
*
|
||||
* @throws RuntimeException
|
||||
*
|
||||
* @return DrawerInterface
|
||||
*/
|
||||
public function arc(PointInterface $center, BoxInterface $size, $start, $end, ColorInterface $color, $thickness = 1);
|
||||
|
||||
/**
|
||||
* Same as arc, but also connects end points with a straight line
|
||||
*
|
||||
* @param PointInterface $center
|
||||
* @param BoxInterface $size
|
||||
* @param integer $start
|
||||
* @param integer $end
|
||||
* @param ColorInterface $color
|
||||
* @param Boolean $fill
|
||||
* @param integer $thickness
|
||||
*
|
||||
* @throws RuntimeException
|
||||
*
|
||||
* @return DrawerInterface
|
||||
*/
|
||||
public function chord(PointInterface $center, BoxInterface $size, $start, $end, ColorInterface $color, $fill = false, $thickness = 1);
|
||||
|
||||
/**
|
||||
* Draws and ellipse with center at the given x, y coordinates, and given
|
||||
* width and height
|
||||
*
|
||||
* @param PointInterface $center
|
||||
* @param BoxInterface $size
|
||||
* @param ColorInterface $color
|
||||
* @param Boolean $fill
|
||||
* @param integer $thickness
|
||||
*
|
||||
* @throws RuntimeException
|
||||
*
|
||||
* @return DrawerInterface
|
||||
*/
|
||||
public function ellipse(PointInterface $center, BoxInterface $size, ColorInterface $color, $fill = false, $thickness = 1);
|
||||
|
||||
/**
|
||||
* Draws a line from start(x, y) to end(x, y) coordinates
|
||||
*
|
||||
* @param PointInterface $start
|
||||
* @param PointInterface $end
|
||||
* @param ColorInterface $outline
|
||||
* @param integer $thickness
|
||||
*
|
||||
* @return DrawerInterface
|
||||
*/
|
||||
public function line(PointInterface $start, PointInterface $end, ColorInterface $outline, $thickness = 1);
|
||||
|
||||
/**
|
||||
* Same as arc, but connects end points and the center
|
||||
*
|
||||
* @param PointInterface $center
|
||||
* @param BoxInterface $size
|
||||
* @param integer $start
|
||||
* @param integer $end
|
||||
* @param ColorInterface $color
|
||||
* @param Boolean $fill
|
||||
* @param integer $thickness
|
||||
*
|
||||
* @throws RuntimeException
|
||||
*
|
||||
* @return DrawerInterface
|
||||
*/
|
||||
public function pieSlice(PointInterface $center, BoxInterface $size, $start, $end, ColorInterface $color, $fill = false, $thickness = 1);
|
||||
|
||||
/**
|
||||
* Places a one pixel point at specific coordinates and fills it with
|
||||
* specified color
|
||||
*
|
||||
* @param PointInterface $position
|
||||
* @param ColorInterface $color
|
||||
*
|
||||
* @throws RuntimeException
|
||||
*
|
||||
* @return DrawerInterface
|
||||
*/
|
||||
public function dot(PointInterface $position, ColorInterface $color);
|
||||
|
||||
/**
|
||||
* Draws a polygon using array of x, y coordinates. Must contain at least
|
||||
* three coordinates
|
||||
*
|
||||
* @param array $coordinates
|
||||
* @param ColorInterface $color
|
||||
* @param Boolean $fill
|
||||
* @param integer $thickness
|
||||
*
|
||||
* @throws RuntimeException
|
||||
*
|
||||
* @return DrawerInterface
|
||||
*/
|
||||
public function polygon(array $coordinates, ColorInterface $color, $fill = false, $thickness = 1);
|
||||
|
||||
/**
|
||||
* Annotates image with specified text at a given position starting on the
|
||||
* top left of the final text box
|
||||
*
|
||||
* The rotation is done CW
|
||||
*
|
||||
* @param string $string
|
||||
* @param AbstractFont $font
|
||||
* @param PointInterface $position
|
||||
* @param integer $angle
|
||||
* @param integer $width
|
||||
*
|
||||
* @throws RuntimeException
|
||||
*
|
||||
* @return DrawerInterface
|
||||
*/
|
||||
public function text($string, AbstractFont $font, PointInterface $position, $angle = 0, $width = null);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue