Make WordPress Core


Ignore:
Timestamp:
11/16/2012 10:02:21 PM (12 years ago)
Author:
ryan
Message:

Add abstract methods back to WP_Image_Editor and refresh phpdoc.

Props DH-Shredder, markoheijnen, kurtpayne, nacin
see #6821

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-image-editor-imagick.php

    r22581 r22619  
    4545
    4646    /**
    47      * Loads image from $this->file into new Imagick Object
     47     * Loads image from $this->file into new Imagick Object.
    4848     *
    4949     * @since 3.5.0
     
    110110
    111111    /**
    112      * Sets or updates current image size
     112     * Sets or updates current image size.
    113113     *
    114114     * @since 3.5.0
     
    139139
    140140    /**
    141      * Checks to see if editor supports mime-type specified
     141     * Checks to see if editor supports the mime-type specified.
    142142     *
    143143     * @since 3.5.0
     
    163163    /**
    164164     * Resizes current image.
     165     *
     166     * @since 3.5.0
     167     * @access public
    165168     *
    166169     * @param int $max_w
     
    199202     * Processes current image and saves to disk
    200203     * multiple sizes from single source.
     204     *
     205     * @since 3.5.0
     206     * @access public
    201207     *
    202208     * @param array $sizes
     
    247253     * @param int $dst_w Optional. The destination width.
    248254     * @param int $dst_h Optional. The destination height.
    249      * @param int $src_abs Optional. If the source crop points are absolute.
     255     * @param boolean $src_abs Optional. If the source crop points are absolute.
    250256     * @return boolean|WP_Error
    251257     */
    252258    public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false ) {
    253         // Not sure this is compatible.
    254259        if ( $src_abs ) {
    255260            $src_w -= $src_x;
     
    303308
    304309    /**
    305      * Flips current image
    306      *
    307      * @since 3.5.0
    308      * @access public
    309      *
    310      * @param boolean $horz Horizontal Flip
     310     * Flips current image.
     311     *
     312     * @since 3.5.0
     313     * @access public
     314     *
     315     * @param boolean $horz Horizonal Flip
    311316     * @param boolean $vert Vertical Flip
    312      * @returns boolean
     317     * @returns boolean|WP_Error
    313318     */
    314319    public function flip( $horz, $vert ) {
     
    327332
    328333    /**
    329      * Saves current image to file
     334     * Saves current image to file.
     335     *
     336     * @since 3.5.0
     337     * @access public
    330338     *
    331339     * @param string $destfilename
     
    386394
    387395    /**
    388      * Streams current image to browser
     396     * Streams current image to browser.
     397     *
     398     * @since 3.5.0
     399     * @access public
    389400     *
    390401     * @param string $mime_type
Note: See TracChangeset for help on using the changeset viewer.