Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




_flip_image_resource [ WordPress Function ]

_flip_image_resource ( $img, $horz, $vert )
Defined at:



No description yet.

Source


<?php
function _flip_image_resource($img$horz$vert) {
    
$w imagesx($img);
    
$h imagesy($img);
    
$dst wp_imagecreatetruecolor($w$h);
    if ( 
is_resource($dst) ) {
        
$sx $vert ? ($w 1) : 0;
        
$sy $horz ? ($h 1) : 0;
        
$sw $vert ? -$w $w;
        
$sh $horz ? -$h $h;

        if ( 
imagecopyresampled($dst$img00$sx$sy$w$h$sw$sh) ) {
            
imagedestroy($img);
            
$img $dst;
        }
    }
    return 
$img;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics