Autodoc
  • Namespace
  • Class
  • Tree

Namespaces

  • BlueTihi
    • Context
  • Brickrouge
    • Element
      • Nodes
    • Renderer
    • Widget
  • ICanBoogie
    • ActiveRecord
    • AutoConfig
    • CLDR
    • Composer
    • Core
    • Event
    • Exception
    • HTTP
      • Dispatcher
      • Request
    • I18n
      • Translator
    • Mailer
    • Modules
      • Taxonomy
        • Support
      • Thumbnailer
        • Versions
    • Object
    • Operation
      • Dispatcher
    • Prototype
    • Routes
    • Routing
      • Dispatcher
    • Session
  • Icybee
    • ActiveRecord
      • Model
    • ConfigOperation
    • Document
    • EditBlock
    • Element
      • ActionbarContextual
      • ActionbarSearch
      • ActionbarToolbar
    • FormBlock
    • Installer
    • ManageBlock
    • Modules
      • Articles
      • Cache
        • Collection
        • ManageBlock
      • Comments
        • ManageBlock
      • Contents
        • ManageBlock
      • Dashboard
      • Editor
        • Collection
      • Files
        • File
        • ManageBlock
      • Forms
        • Form
        • ManageBlock
      • I18n
      • Images
        • ManageBlock
      • Members
      • Modules
        • ManageBlock
      • Nodes
        • ManageBlock
        • Module
      • Pages
        • BreadcrumbElement
        • LanguagesElement
        • ManageBlock
        • NavigationBranchElement
        • NavigationElement
        • Page
        • PageController
      • Registry
      • Search
      • Seo
      • Sites
        • ManageBlock
      • Taxonomy
        • Terms
          • ManageBlock
        • Vocabulary
          • ManageBlock
      • Users
        • ManageBlock
        • NonceLogin
        • Roles
      • Views
        • ActiveRecordProvider
        • Collection
        • View
    • Operation
      • ActiveRecord
      • Constructor
      • Module
      • Widget
    • Rendering
  • None
  • Patron
  • PHP

Classes

  • ActiveRecord
  • Cache
  • Configs
  • Core
  • DateTime
  • Debug
  • DeleteOperation
  • Errors
  • Event
  • EventHook
  • Events
  • FileCache
  • FormattedString
  • Helpers
  • I18n
  • Image
  • Inflections
  • Inflector
  • Models
  • Module
  • Modules
  • Object
  • Operation
  • PingOperation
  • Prototype
  • Route
  • Routes
  • SaveOperation
  • Session
  • TimeZone
  • TimeZoneLocation
  • Uploaded
  • Vars
  • VarsIterator

Interfaces

  • StorageInterface
  • ToArray
  • ToArrayRecursive

Traits

  • PrototypeTrait
  • ToArrayRecursiveTrait

Exceptions

  • AlreadyAuthenticated
  • AuthenticationRequired
  • Exception
  • ModuleConstructorMissing
  • ModuleIsDisabled
  • ModuleNotDefined
  • OffsetError
  • OffsetNotDefined
  • OffsetNotReadable
  • OffsetNotWritable
  • PermissionRequired
  • PropertyError
  • PropertyIsReserved
  • PropertyNotDefined
  • PropertyNotReadable
  • PropertyNotWritable
  • RouteNotDefined
  • SecurityException

Constants

  • TOKEN_ALPHA
  • TOKEN_ALPHA_UPCASE
  • TOKEN_NUMERIC
  • TOKEN_SYMBOL
  • TOKEN_SYMBOL_WIDE

Functions

  • array_flatten
  • array_insert
  • array_merge_recursive
  • camelize
  • capitalize
  • downcase
  • dump
  • escape
  • escape_all
  • exact_array_merge_recursive
  • excerpt
  • format
  • generate_token
  • generate_token_wide
  • generate_v4_uuid
  • get_autoconfig
  • humanize
  • hyphenate
  • log
  • log_error
  • log_info
  • log_success
  • log_time
  • normalize
  • normalize_namespace_part
  • normalize_url_path
  • pbkdf2
  • pluralize
  • remove_accents
  • shorten
  • singularize
  • sort_by_weight
  • stable_sort
  • strip_root
  • titleize
  • unaccent_compare
  • unaccent_compare_ci
  • underscore
  • upcase

Class Image

Namespace: ICanBoogie
Located at vendor/icanboogie/image/lib/image.php

Methods summary

public static
# load( mixed $file, mixed & $info )
public static array
# compute_final_size( integer $w, integer $h, string $method, string|array $src )

Compute the final dimensions of a resized image.

Compute the final dimensions of a resized image.

The final dimensions and the

Parameters

$w
integer
$w Destination width.
$h
integer
$h Destination height.
$method
string
$method Resizing method, one of RESIZE_*.
$src
string|array
$src Pathname of the image, or an array with the original width and height of the image to resize.

Returns

array
The final width and height of the resized image.
public static boolean
# assert_sizes( string $m, integer $w, integer $h )

Asserts that the specified width and height can be used with the specified resize method.

Asserts that the specified width and height can be used with the specified resize method.

Parameters

$m
string
$m The resize method.
$w
integer
$w The destination width.
$h
integer
$h The destination height.

Returns

boolean

Throws

InvalidArgumentException
if the width or height is invalid for the resize method.
public static resource
# resize( resource $source, integer & $t_w, integer & $t_h, string $method, callable $fill_callback = null )

Resize a source image and return its resized version.

Resize a source image and return its resized version.

Parameters

$source
resource
$source The source image.
$t_w
integer
$t_w The desired width of the resized version. You need to provide a variable and not a value. If using the ICanBoogie\Image::RESIZE_SURFACE method, the variable is set to the result width of the resized image.
$t_h
integer
$t_h The desired height of the resized version. You need to provide a variable and not a value. If using the ICanBoogie\Image::RESIZE_SURFACE method, the variable is set to the result height of the resized image.
$method
string
$method One of the resize methods.
$fill_callback
callable
$fill_callback An optional callback used to fill the resized image, before any pixel are actually copied.

Returns

resource
The resized image.
public static
# draw_grid( mixed $image, mixed $x1, mixed $y1, mixed $x2, mixed $y2, mixed $color1 = 0xFFFFFF, mixed $color2 = 0xCCCCCC, mixed $size = 4 )
public static array
# decode_color( mixed $color )

Decodes a color into an array of RGB values.

Decodes a color into an array of RGB values.

Parameters

$color
mixed
$color mixed The color to decode.

Returns

array
The RGB value decoded as an array of components value
public static
# allocate_color( mixed $image, mixed $color )

Magic methods summary

Constants summary

string RESIZE_NONE 'none'
#
string RESIZE_FIT 'fit'
#
string RESIZE_FILL 'fill'
#
string RESIZE_FIXED_HEIGHT 'fixed-height'
#
string RESIZE_FIXED_HEIGHT_CROPPED 'fixed-height-cropped'
#
string RESIZE_FIXED_WIDTH 'fixed-width'
#
string RESIZE_FIXED_WIDTH_CROPPED 'fixed-width-cropped'
#
string RESIZE_SURFACE 'surface'
#
string RESIZE_SIMPLE 'simple'
#
string RESIZE_CONSTRAINED 'constrained'
#

Properties summary

public static array $grid_sizes
#
public static array $grid_color_schemes
#
public static array $color_names
#
Autodoc API documentation generated by ApiGen 2.8.0