_flip_image_resource [ WordPress Function ]
_flip_image_resource ( $img, $horz, $vert )
| Defined at: |
|
Soorgelijke functies: _crop_image_resource, _rotate_image_resource, wp_image_editor, image_resize, gd_edit_image_support
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, $img, 0, 0, $sx, $sy, $w, $h, $sw, $sh) ) {
imagedestroy($img);
$img = $dst;
}
}
return $img;
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Docs for page image-edit.php
void _flip_image_resource ( $img, $horz, $vert). $img; $horz; $vert. _image_get_preview_ratio (line 236). void _image_get_preview_ratio ( $w, $h). $w; $h ...
phpdoc.wordpress.org - _get_dropins | A HitchHackers guide through WordPress
Feb 12, 2011... Documentation, Files, Functions, _ · idbad583efdfec4e7d2dda5bee62ca6806, _get_dropins · _flip_image_resource · _get_meta_table ...
hitchhackerguide.com - PHPXRef 0.7 : WordPress : /wp-admin/includes/image-edit.php source
0 ) 339 $img = _flip_image_resource($img, ($operation->axis & 1) != 0, ($ operation->axis & 2) != 0); 340 break; 341 case 'crop': 342 $sel = $operation->sel; 343 ...
phpxref.ftwr.co.uk - Browse WordPress Functions, Constants and Template Tags on ...
... (WordPress Function); _fix_attachment_links (WordPress Function); _flip_image_resource (WordPress Function); _future_post_hook (WordPress Function) ...
wpseek.com