Overview

Packages

  • akismet
  • None
  • PHP
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • plugins
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Signatures
    • Signed
    • Transport
  • wa-apps
    • blog
      • actions
        • backend
        • blog
        • comment
        • cron
        • design
        • frontend
        • page
        • plugin
        • post
      • api
        • v1
      • cli
      • layout
      • model
      • plugin
        • aksimet
        • category
        • emailsubscription
        • favorite
        • gravatar
        • import
        • markdown
        • myposts
        • tag
        • troll
      • settings
    • checklists
      • backend
      • json
    • contacts
      • backend
    • developer
    • dummy
    • guestbook
    • guestbook2
    • photos
      • album
      • api
        • v1
      • backend
      • design
      • dialog
      • frontend
      • page
      • photo
      • plugin
        • comment
        • imageeffects
        • import
        • publicgallery
        • watermark
      • search
      • settings
      • stack
      • tag
      • upload
    • site
      • backend
      • blocks
      • config
      • design
      • domains
      • files
      • frontend
      • helper
      • layout
      • pages
      • routing
      • setting
    • stickies
      • api
        • v1
      • sheet
      • stiky
  • wa-plugin
    • payment
    • shipping
    • sms
  • wa-plugins
    • shipping
      • usps
  • wa-system
    • API
    • Auth
      • Adapters
    • Autoload
    • Cache
      • Adapter
    • Captcha
    • Config
    • Contact
    • controller
    • currency
    • database
    • datetime
    • design
    • event
    • exception
    • files
    • image
    • layout
    • locale
    • log
    • mail
    • page
      • action
      • model
    • payment
    • plugin
    • request
    • response
    • routing
    • shipping
    • sms
    • storage
    • user
    • util
    • validator
    • view
    • webasyst
      • api
      • backend
      • cli
      • config
      • layout
      • login
      • model
      • password
      • payment
      • profile
      • settings
      • shipment
    • widget
    • workflow
  • waPlugins
    • Payment
  • webasyst
    • wa-system
      • helper

Classes

  • waImage
  • waImageGd
  • waImageImagick

Functions

  • imagecopymerge_alpha
  • imagestring_rotate
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class waImageGd

This file is part of Webasyst framework.

Licensed under the terms of the GNU Lesser General Public License (LGPL). http://www.webasyst.com/framework/license/

waImage
Extended by waImageGd
Package: wa-system\image
Copyright: 2011 Webasyst LLC
Author: Webasyst LLC
Link: http://www.webasyst.com/
Located at wa-system/image/waImageGd.class.php
Methods summary
public
# __construct( mixed $file )

Overrides

waImage::__construct()
private
# createGDImageResourse( mixed $file, mixed $type )
public static
# check( )
protected
# _create( mixed $width, mixed $height )
protected
# _resize( mixed $width, mixed $height )
protected
# _rotate( mixed $degrees )
protected
# updateInfo( mixed $image = null )
protected
# _crop( mixed $width, mixed $height, mixed $offset_x, mixed $offset_y )
protected
# _sharpen( mixed $amount )
protected
# _save( mixed $file, mixed $quality )
protected
# _save_function( mixed $extension, mixed & $quality )
protected
# _filter( mixed $type, mixed $params = array() )
protected mixed
# _watermark( array $options )

Parameters

$options
array
$options 'watermark' => waImage|string $watermark 'opacity' => float|int 0..1 'align' => self::ALIGN_* const 'font_file' => null|string If null - will be used some default font. Note: use when watermark option is text 'font_size' => float Size of font. Note: use when watermark option is text 'font_color' => string Hex-formatted of color (without #). Note: use when watermark option is text 'text_orientation' => self::ORIENTATION_* const. Note: use when watermark option is text

Returns

mixed

Throws

waException
private
# calcWatermarkOffset( mixed $width, mixed $height, mixed $align )
private
# watermarkOffsetFix( mixed $offset, mixed $width, mixed $height, mixed $align, mixed $orientation )
public
# __destruct( )
Methods inherited from waImage
crop(), factory(), filter(), getExt(), resize(), rotate(), save(), sharpen(), watermark()
Constants inherited from waImage
ALIGN_BOTTOM_LEFT, ALIGN_BOTTOM_RIGHT, ALIGN_TOP_LEFT, ALIGN_TOP_RIGHT, AUTO, BOTTOM, CENTER, FILTER_BRIGHTNESS, FILTER_CONTRAST, FILTER_GRAYSCALE, FILTER_SEPIA, Gd, HEIGHT, INVERSE, Imagick, NONE, ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL, WIDTH
Properties summary
protected mixed $image
#
Properties inherited from waImage
$checked, $default_adapter, $ext, $file, $height, $type, $width
My fork of Webasyst Framework API documentation generated by ApiGen 2.8.0