成人精品一区二区三区中文字幕-成人精品一区二区三区-成人精品一级毛片-成人精品亚洲-日本在线视频一区二区-日本在线视频免费

導航首頁 ? 技術教程 ? PHP:imageflip()的用法_GD庫圖像處理函數
全站頭部文字 我要出現在這里
PHP:imageflip()的用法_GD庫圖像處理函數 800 2023-12-15   

imageflip

(PHP 5 >= 5.5.0)

imageflip — Flips an image using a given mode

說明

bool imageflip ( resource $image , int $mode )

Flips the image image using the given mode.

參數

image

由圖象創建函數(例如imagecreatetruecolor())返回的圖象資源。

mode

Flip mode, this can be one of the IMG_FLIP_* constants:

Constant Meaning IMG_FLIP_HORIZONTAL Flips the image horizontally. IMG_FLIP_VERTICAL Flips the image vertically. IMG_FLIP_BOTH Flips the image both horizontally and vertically.

返回值

成功時返回 TRUE, 或者在失敗時返回 FALSE

范例

Example #1 Flips an image vertically

This example uses the IMG_FLIP_VERTICAL constant.

<?php
// File
$filename = 'phplogo.png';

// Content type
header('Content-type: image/png');

// Load
$im = imagecreatefrompng($filename);

// Flip it vertically
imageflip($im, IMG_FLIP_VERTICAL);

// Output
imagejpeg($im);
imagedestroy($im);
?>

以上例程的輸出類似于:

Example #2 Flips the image horizontally

This example uses the IMG_FLIP_HORIZONTAL constant.

<?php
// File
$filename = 'phplogo.png';

// Content type
header('Content-type: image/png');

// Load
$im = imagecreatefrompng($filename);

// Flip it horizontally
imageflip($im, IMG_FLIP_HORIZONTAL);

// Output
imagejpeg($im);
imagedestroy($im);
?>

以上例程的輸出類似于:

注釋

Note: 此函數僅在與 GD 庫捆綁編譯的 PHP 版本中可用。


主站蜘蛛池模板: 七年级下册英语第二单元作文| 电影《上一当》| 脚 vk| 光遇安卓官服下载| 蔡雅同| 小清水亚美| fate动漫| 性的张力短片集| 葛思然| 绿门背后| 大众故事1974意大利| 大众点评开放平台| 深夜在线播放| 晓彤| cgtn news| 幼儿园课题研究| 裸舞在线观看| 江湖大风暴| 锤娜丽莎演的电视剧| stylistic device| 抗日电影免费| 奇幻旅程| 灰姑娘电影| 风在吹韩国电影| 有为有不为思维导图| 璐·德·拉格| 朱莉安妮全集在线观看免费| bbb.| 又见阿郎电视剧免费观看| 《黑帮少爷爱上我》| 江南style歌词翻译成中文| 徐有容| 茶山情歌伴奏| 老大不小在线观看免费完整版| 王渝萱最火的三部电影| 五年级下册语文第七单元口语交际 | 双男主电影完整版| 国产破处视频在线播放| 重口视频| 大甜甜| 初夜在线观看|

!!!站長長期在線接!!!

網站、小程序:定制開發/二次開發/仿制開發等

各種疑難雜癥解決/定制接口/定制采集等

站長微信:lxwl520520

站長QQ:1737366103