承接 sagittariusx/beluga.drawing 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sagittariusx/beluga.drawing

Composer 安装命令:

composer require sagittariusx/beluga.drawing

包简介

Some helpful image drawing tools.

README 文档

README

Some helpful image and drawing tools.

composer require sagittariusx/beluga.drawing

or include it inside you're composer.json

{
   "require": {
      "php": ">=7.0",
      "sagittariusx/beluga.drawing": "^0.1.0"
   }
}

The library declares the main classes inside the Beluga\Drawing namespace:

  • Beluga\Drawing\Size: Declares the 2 dimensional size of an object (width + height) and some helpful methods
  • Beluga\Drawing\Point: Declares the 2 dimensional location of an object (x + y) and some helpful methods.
  • Beluga\Drawing\Rectangle: Declares the 2 dimensional size and location of an object. It is an combination of the 2 classes Size and Point.
  • Beluga\Drawing\Gravity: Interface that declares constants for define the 2 dimensional gravity of an object. The gravity means values that define the align of an object inside an other. (e.G. Gravity::TOP_LEFT)
  • Beluga\Drawing\ContentAlign: An other way to define the content align of an object inside an other
  • Beluga\Drawing\ColorTool: A static helper class for color handling.
  • Beluga\Drawing\Color This class define and handle all information of a color. (R, G, B, Opacity/Alpha, HEX-Format, Color name).
  • Beluga\Drawing\ColorGd extends from Color class and is more GD specific.

The sub namespace Beluga\Drawing\Image declares the following:

  • Beluga\Drawing\Image\IImage: This interfaces defines all features, required by a valid image implementation.
  • Beluga\Drawing\Image\AbstractImage: This abstract class implements the main image functionality (not much) usable by all IImage implementations.
  • Beluga\Drawing\Image\GdImage: This is currently the only usable IImage implementation. It works completely with PHPs basic GD graphics library.
  • Beluga\Drawing\Image\ImageSizeReducer: A tool for resizing an IImage implementation, that can store and restore the current size reducing settings from XML (writing=XMLWriter and reading=SimpleXMLElement), Array and JSON string
  • Beluga\Drawing\Image\ImageSizeReducerType: Declares all usable image size reducer types. (e.g.: ImageSizeReducerType::LONG_SIDE)
  • Beluga\Drawing\Image\ImageSizeReducerCollection: Defines a collection of Beluga\Drawing\Image\ImageSizeReducer items.

统计信息

  • 总下载量: 19
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPLv3
  • 更新时间: 2016-08-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固