You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gd.php 90KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021
  1. <?php
  2. /**
  3. * @strict-properties
  4. * @not-serializable
  5. */
  6. final class GdImage {}
  7. /**
  8. * Retrieve information about the currently installed GD library
  9. * @link https://php.net/manual/en/function.gd-info.php
  10. * @return array an associative array.
  11. * </p>
  12. * <p>
  13. * <table>
  14. * Elements of array returned by <b>gd_info</b>
  15. * <tr valign="top">
  16. * <td>Attribute</td>
  17. * <td>Meaning</td>
  18. * </tr>
  19. * <tr valign="top">
  20. * <td>GD Version</td>
  21. * <td>string value describing the installed
  22. * libgd version.</td>
  23. * </tr>
  24. * <tr valign="top">
  25. * <td>FreeType Support</td>
  26. * <td>boolean value. <b>TRUE</b>
  27. * if FreeType Support is installed.</td>
  28. * </tr>
  29. * <tr valign="top">
  30. * <td>FreeType Linkage</td>
  31. * <td>string value describing the way in which
  32. * FreeType was linked. Expected values are: 'with freetype',
  33. * 'with TTF library', and 'with unknown library'. This element will
  34. * only be defined if FreeType Support evaluated to
  35. * <b>TRUE</b>.</td>
  36. * </tr>
  37. * <tr valign="top">
  38. * <td>T1Lib Support</td>
  39. * <td>boolean value. <b>TRUE</b>
  40. * if T1Lib support is included.</td>
  41. * </tr>
  42. * <tr valign="top">
  43. * <td>GIF Read Support</td>
  44. * <td>boolean value. <b>TRUE</b>
  45. * if support for reading GIF
  46. * images is included.</td>
  47. * </tr>
  48. * <tr valign="top">
  49. * <td>GIF Create Support</td>
  50. * <td>boolean value. <b>TRUE</b>
  51. * if support for creating GIF
  52. * images is included.</td>
  53. * </tr>
  54. * <tr valign="top">
  55. * <td>JPEG Support</td>
  56. * <td>boolean value. <b>TRUE</b>
  57. * if JPEG support is included.</td>
  58. * </tr>
  59. * <tr valign="top">
  60. * <td>PNG Support</td>
  61. * <td>boolean value. <b>TRUE</b>
  62. * if PNG support is included.</td>
  63. * </tr>
  64. * <tr valign="top">
  65. * <td>WBMP Support</td>
  66. * <td>boolean value. <b>TRUE</b>
  67. * if WBMP support is included.</td>
  68. * </tr>
  69. * <tr valign="top">
  70. * <td>XBM Support</td>
  71. * <td>boolean value. <b>TRUE</b>
  72. * if XBM support is included.</td>
  73. * </tr>
  74. * <tr valign="top">
  75. * <td>WebP Support</td>
  76. * <td>boolean value. <b>TRUE</b>
  77. * if WebP support is included.</td>
  78. * </tr>
  79. * </table>
  80. * </p>
  81. * <p>
  82. * Previous to PHP 5.3.0, the JPEG Support attribute was named
  83. * JPG Support.
  84. */
  85. function gd_info () {}
  86. /**
  87. * Draws an arc
  88. * @link https://php.net/manual/en/function.imagearc.php
  89. * @param resource $image
  90. * @param int $cx <p>
  91. * x-coordinate of the center.
  92. * </p>
  93. * @param int $cy <p>
  94. * y-coordinate of the center.
  95. * </p>
  96. * @param int $width <p>
  97. * The arc width.
  98. * </p>
  99. * @param int $height <p>
  100. * The arc height.
  101. * </p>
  102. * @param int $start <p>
  103. * The arc start angle, in degrees.
  104. * </p>
  105. * @param int $end <p>
  106. * The arc end angle, in degrees.
  107. * 0° is located at the three-o'clock position, and the arc is drawn
  108. * clockwise.
  109. * </p>
  110. * @param int $color <p>
  111. * A color identifier created with
  112. * <b>imagecolorallocate</b>.
  113. * </p>
  114. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  115. */
  116. function imagearc ($image, $cx, $cy, $width, $height, $start, $end, $color) {}
  117. /**
  118. * Draw an ellipse
  119. * @link https://php.net/manual/en/function.imageellipse.php
  120. * @param resource $image
  121. * @param int $cx <p>
  122. * x-coordinate of the center.
  123. * </p>
  124. * @param int $cy <p>
  125. * y-coordinate of the center.
  126. * </p>
  127. * @param int $width <p>
  128. * The ellipse width.
  129. * </p>
  130. * @param int $height <p>
  131. * The ellipse height.
  132. * </p>
  133. * @param int $color <p>
  134. * The color of the ellipse. A color identifier created with
  135. * <b>imagecolorallocate</b>.
  136. * </p>
  137. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  138. */
  139. function imageellipse ($image, $cx, $cy, $width, $height, $color) {}
  140. /**
  141. * Draw a character horizontally
  142. * @link https://php.net/manual/en/function.imagechar.php
  143. * @param resource $image
  144. * @param int $font
  145. * @param int $x <p>
  146. * x-coordinate of the start.
  147. * </p>
  148. * @param int $y <p>
  149. * y-coordinate of the start.
  150. * </p>
  151. * @param string $c <p>
  152. * The character to draw.
  153. * </p>
  154. * @param int $color <p>
  155. * A color identifier created with
  156. * <b>imagecolorallocate</b>.
  157. * </p>
  158. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  159. */
  160. function imagechar ($image, $font, $x, $y, $c, $color) {}
  161. /**
  162. * Draw a character vertically
  163. * @link https://php.net/manual/en/function.imagecharup.php
  164. * @param resource $image
  165. * @param int $font
  166. * @param int $x <p>
  167. * x-coordinate of the start.
  168. * </p>
  169. * @param int $y <p>
  170. * y-coordinate of the start.
  171. * </p>
  172. * @param string $c <p>
  173. * The character to draw.
  174. * </p>
  175. * @param int $color <p>
  176. * A color identifier created with
  177. * <b>imagecolorallocate</b>.
  178. * </p>
  179. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  180. */
  181. function imagecharup ($image, $font, $x, $y, $c, $color) {}
  182. /**
  183. * Get the index of the color of a pixel
  184. * @link https://php.net/manual/en/function.imagecolorat.php
  185. * @param resource $image
  186. * @param int $x <p>
  187. * x-coordinate of the point.
  188. * </p>
  189. * @param int $y <p>
  190. * y-coordinate of the point.
  191. * </p>
  192. * @return int|false the index of the color or <b>FALSE</b> on failure
  193. */
  194. function imagecolorat ($image, $x, $y) {}
  195. /**
  196. * Allocate a color for an image
  197. * @link https://php.net/manual/en/function.imagecolorallocate.php
  198. * @param resource $image
  199. * @param int $red <p>Value of red component.</p>
  200. * @param int $green <p>Value of green component.</p>
  201. * @param int $blue <p>Value of blue component.</p>
  202. * @return int|false A color identifier or <b>FALSE</b> if the allocation failed.
  203. */
  204. function imagecolorallocate ($image, $red, $green, $blue) {}
  205. /**
  206. * Copy the palette from one image to another
  207. * @link https://php.net/manual/en/function.imagepalettecopy.php
  208. * @param resource $destination <p>
  209. * The destination image resource.
  210. * </p>
  211. * @param resource $source <p>
  212. * The source image resource.
  213. * </p>
  214. * @return void No value is returned.
  215. */
  216. function imagepalettecopy ($destination, $source) {}
  217. /**
  218. * Create a new image from the image stream in the string
  219. * @link https://php.net/manual/en/function.imagecreatefromstring.php
  220. * @param string $image <p>
  221. * A string containing the image data.
  222. * </p>
  223. * @return resource|false An image resource will be returned on success. <b>FALSE</b> is returned if
  224. * the image type is unsupported, the data is not in a recognised format,
  225. * or the image is corrupt and cannot be loaded.
  226. */
  227. function imagecreatefromstring ($image) {}
  228. /**
  229. * Get the index of the closest color to the specified color
  230. * @link https://php.net/manual/en/function.imagecolorclosest.php
  231. * @param resource $image
  232. * @param int $red <p>Value of red component.</p>
  233. * @param int $green <p>Value of green component.</p>
  234. * @param int $blue <p>Value of blue component.</p>
  235. * @return int|false the index of the closest color, in the palette of the image, to
  236. * the specified one or <b>FALSE</b> on failure
  237. */
  238. function imagecolorclosest ($image, $red, $green, $blue) {}
  239. /**
  240. * Get the index of the color which has the hue, white and blackness
  241. * @link https://php.net/manual/en/function.imagecolorclosesthwb.php
  242. * @param resource $image
  243. * @param int $red <p>Value of red component.</p>
  244. * @param int $green <p>Value of green component.</p>
  245. * @param int $blue <p>Value of blue component.</p>
  246. * @return int|false an integer with the index of the color which has
  247. * the hue, white and blackness nearest the given color or <b>FALSE</b> on failure
  248. */
  249. function imagecolorclosesthwb ($image, $red, $green, $blue) {}
  250. /**
  251. * De-allocate a color for an image
  252. * @link https://php.net/manual/en/function.imagecolordeallocate.php
  253. * @param resource $image
  254. * @param int $color <p>
  255. * The color identifier.
  256. * </p>
  257. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  258. */
  259. function imagecolordeallocate ($image, $color) {}
  260. /**
  261. * Get the index of the specified color or its closest possible alternative
  262. * @link https://php.net/manual/en/function.imagecolorresolve.php
  263. * @param resource $image
  264. * @param int $red <p>Value of red component.</p>
  265. * @param int $green <p>Value of green component.</p>
  266. * @param int $blue <p>Value of blue component.</p>
  267. * @return int|false a color index or <b>FALSE</b> on failure
  268. */
  269. function imagecolorresolve ($image, $red, $green, $blue) {}
  270. /**
  271. * Get the index of the specified color
  272. * @link https://php.net/manual/en/function.imagecolorexact.php
  273. * @param resource $image
  274. * @param int $red <p>Value of red component.</p>
  275. * @param int $green <p>Value of green component.</p>
  276. * @param int $blue <p>Value of blue component.</p>
  277. * @return int|false the index of the specified color in the palette, -1 if the
  278. * color does not exist, or <b>FALSE</b> on failure
  279. */
  280. function imagecolorexact ($image, $red, $green, $blue) {}
  281. /**
  282. * Set the color for the specified palette index
  283. * @link https://php.net/manual/en/function.imagecolorset.php
  284. * @param resource $image
  285. * @param int $index <p>
  286. * An index in the palette.
  287. * </p>
  288. * @param int $red <p>Value of red component.</p>
  289. * @param int $green <p>Value of green component.</p>
  290. * @param int $blue <p>Value of blue component.</p>
  291. * @param int $alpha [optional] <p>
  292. * Value of alpha component.
  293. * </p>
  294. * @return void No value is returned.
  295. */
  296. function imagecolorset ($image, $index, $red, $green, $blue, $alpha = 0) {}
  297. /**
  298. * Define a color as transparent
  299. * @link https://php.net/manual/en/function.imagecolortransparent.php
  300. * @param resource $image
  301. * @param int $color [optional] <p>
  302. * A color identifier created with
  303. * <b>imagecolorallocate</b>.
  304. * </p>
  305. * @return int|false The identifier of the new (or current, if none is specified)
  306. * transparent color is returned. If <i>color</i>
  307. * is not specified, and the image has no transparent color, the
  308. * returned identifier will be -1. If an error occurs, <b>FALSE</b> is returned.
  309. */
  310. function imagecolortransparent ($image, $color = null) {}
  311. /**
  312. * Find out the number of colors in an image's palette
  313. * @link https://php.net/manual/en/function.imagecolorstotal.php
  314. * @param resource $image <p>
  315. * An image resource, returned by one of the image creation functions, such
  316. * as <b>imagecreatefromgif</b>.
  317. * </p>
  318. * @return int|false the number of colors in the specified image's palette, 0 for
  319. * truecolor images, or <b>FALSE</b> on failure
  320. */
  321. function imagecolorstotal ($image) {}
  322. /**
  323. * Get the colors for an index
  324. * @link https://php.net/manual/en/function.imagecolorsforindex.php
  325. * @param resource $image
  326. * @param int $index <p>
  327. * The color index.
  328. * </p>
  329. * @return array|false an associative array with red, green, blue and alpha keys that
  330. * contain the appropriate values for the specified color index or <b>FALSE</b> on failure
  331. */
  332. function imagecolorsforindex ($image, $index) {}
  333. /**
  334. * Copy part of an image
  335. * @link https://php.net/manual/en/function.imagecopy.php
  336. * @param resource $dst_im <p>
  337. * Destination image link resource.
  338. * </p>
  339. * @param resource $src_im <p>
  340. * Source image link resource.
  341. * </p>
  342. * @param int $dst_x <p>
  343. * x-coordinate of destination point.
  344. * </p>
  345. * @param int $dst_y <p>
  346. * y-coordinate of destination point.
  347. * </p>
  348. * @param int $src_x <p>
  349. * x-coordinate of source point.
  350. * </p>
  351. * @param int $src_y <p>
  352. * y-coordinate of source point.
  353. * </p>
  354. * @param int $src_w <p>
  355. * Source width.
  356. * </p>
  357. * @param int $src_h <p>
  358. * Source height.
  359. * </p>
  360. * @return bool true on success or false on failure.
  361. */
  362. function imagecopy ($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h) {}
  363. /**
  364. * Copy and merge part of an image
  365. * @link https://php.net/manual/en/function.imagecopymerge.php
  366. * @param resource $dst_im <p>
  367. * Destination image link resource.
  368. * </p>
  369. * @param resource $src_im <p>
  370. * Source image link resource.
  371. * </p>
  372. * @param int $dst_x <p>
  373. * x-coordinate of destination point.
  374. * </p>
  375. * @param int $dst_y <p>
  376. * y-coordinate of destination point.
  377. * </p>
  378. * @param int $src_x <p>
  379. * x-coordinate of source point.
  380. * </p>
  381. * @param int $src_y <p>
  382. * y-coordinate of source point.
  383. * </p>
  384. * @param int $src_w <p>
  385. * Source width.
  386. * </p>
  387. * @param int $src_h <p>
  388. * Source height.
  389. * </p>
  390. * @param int $pct <p>
  391. * The two images will be merged according to pct
  392. * which can range from 0 to 100. When pct = 0,
  393. * no action is taken, when 100 this function behaves identically
  394. * to imagecopy for pallete images, while it
  395. * implements alpha transparency for true colour images.
  396. * </p>
  397. * @return bool true on success or false on failure.
  398. */
  399. function imagecopymerge ($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct) {}
  400. /**
  401. * Copy and merge part of an image with gray scale
  402. * @link https://php.net/manual/en/function.imagecopymergegray.php
  403. * @param resource $dst_im <p>
  404. * Destination image link resource.
  405. * </p>
  406. * @param resource $src_im <p>
  407. * Source image link resource.
  408. * </p>
  409. * @param int $dst_x <p>
  410. * x-coordinate of destination point.
  411. * </p>
  412. * @param int $dst_y <p>
  413. * y-coordinate of destination point.
  414. * </p>
  415. * @param int $src_x <p>
  416. * x-coordinate of source point.
  417. * </p>
  418. * @param int $src_y <p>
  419. * y-coordinate of source point.
  420. * </p>
  421. * @param int $src_w <p>
  422. * Source width.
  423. * </p>
  424. * @param int $src_h <p>
  425. * Source height.
  426. * </p>
  427. * @param int $pct <p>
  428. * The src_im will be changed to grayscale according
  429. * to pct where 0 is fully grayscale and 100 is
  430. * unchanged. When pct = 100 this function behaves
  431. * identically to imagecopy for pallete images, while
  432. * it implements alpha transparency for true colour images.
  433. * </p>
  434. * @return bool true on success or false on failure.
  435. */
  436. function imagecopymergegray ($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct) {}
  437. /**
  438. * Copy and resize part of an image
  439. * @link https://php.net/manual/en/function.imagecopyresized.php
  440. * @param resource $dst_image
  441. * @param resource $src_image
  442. * @param int $dst_x <p>
  443. * x-coordinate of destination point.
  444. * </p>
  445. * @param int $dst_y <p>
  446. * y-coordinate of destination point.
  447. * </p>
  448. * @param int $src_x <p>
  449. * x-coordinate of source point.
  450. * </p>
  451. * @param int $src_y <p>
  452. * y-coordinate of source point.
  453. * </p>
  454. * @param int $dst_w <p>
  455. * Destination width.
  456. * </p>
  457. * @param int $dst_h <p>
  458. * Destination height.
  459. * </p>
  460. * @param int $src_w <p>
  461. * Source width.
  462. * </p>
  463. * @param int $src_h <p>
  464. * Source height.
  465. * </p>
  466. * @return bool true on success or false on failure.
  467. */
  468. function imagecopyresized ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) {}
  469. /**
  470. * Create a new palette based image
  471. * @link https://php.net/manual/en/function.imagecreate.php
  472. * @param int $width <p>
  473. * The image width.
  474. * </p>
  475. * @param int $height <p>
  476. * The image height.
  477. * </p>
  478. * @return resource|false an image resource identifier on success, false on errors.
  479. */
  480. function imagecreate ($width, $height) {}
  481. /**
  482. * Create a new true color image
  483. * @link https://php.net/manual/en/function.imagecreatetruecolor.php
  484. * @param int $width <p>
  485. * Image width.
  486. * </p>
  487. * @param int $height <p>
  488. * Image height.
  489. * </p>
  490. * @return resource|false an image resource identifier on success, false on errors.
  491. */
  492. function imagecreatetruecolor ($width, $height) {}
  493. /**
  494. * Finds whether an image is a truecolor image
  495. * @link https://php.net/manual/en/function.imageistruecolor.php
  496. * @param resource $image
  497. * @return bool true if the image is truecolor, false
  498. * otherwise.
  499. */
  500. function imageistruecolor ($image) {}
  501. /**
  502. * Convert a true color image to a palette image
  503. * @link https://php.net/manual/en/function.imagetruecolortopalette.php
  504. * @param resource $image
  505. * @param bool $dither <p>
  506. * Indicates if the image should be dithered - if it is true then
  507. * dithering will be used which will result in a more speckled image but
  508. * with better color approximation.
  509. * </p>
  510. * @param int $ncolors <p>
  511. * Sets the maximum number of colors that should be retained in the palette.
  512. * </p>
  513. * @return bool true on success or false on failure.
  514. */
  515. function imagetruecolortopalette ($image, $dither, $ncolors) {}
  516. /**
  517. * Set the thickness for line drawing
  518. * @link https://php.net/manual/en/function.imagesetthickness.php
  519. * @param resource $image
  520. * @param int $thickness <p>
  521. * Thickness, in pixels.
  522. * </p>
  523. * @return bool true on success or false on failure.
  524. */
  525. function imagesetthickness ($image, $thickness) {}
  526. /**
  527. * Draw a partial arc and fill it
  528. * @link https://php.net/manual/en/function.imagefilledarc.php
  529. * @param resource $image
  530. * @param int $cx <p>
  531. * x-coordinate of the center.
  532. * </p>
  533. * @param int $cy <p>
  534. * y-coordinate of the center.
  535. * </p>
  536. * @param int $width <p>
  537. * The arc width.
  538. * </p>
  539. * @param int $height <p>
  540. * The arc height.
  541. * </p>
  542. * @param int $start <p>
  543. * The arc start angle, in degrees.
  544. * </p>
  545. * @param int $end <p>
  546. * The arc end angle, in degrees.
  547. * 0&deg; is located at the three-o'clock position, and the arc is drawn
  548. * clockwise.
  549. * </p>
  550. * @param int $color <p>
  551. * A color identifier created with
  552. * imagecolorallocate.
  553. * </p>
  554. * @param int $style <p>
  555. * A bitwise OR of the following possibilities:
  556. * IMG_ARC_PIE
  557. * @return bool true on success or false on failure.
  558. */
  559. function imagefilledarc ($image, $cx, $cy, $width, $height, $start, $end, $color, $style) {}
  560. /**
  561. * Draw a filled ellipse
  562. * @link https://php.net/manual/en/function.imagefilledellipse.php
  563. * @param resource $image
  564. * @param int $cx <p>
  565. * x-coordinate of the center.
  566. * </p>
  567. * @param int $cy <p>
  568. * y-coordinate of the center.
  569. * </p>
  570. * @param int $width <p>
  571. * The ellipse width.
  572. * </p>
  573. * @param int $height <p>
  574. * The ellipse height.
  575. * </p>
  576. * @param int $color <p>
  577. * The fill color. A color identifier created with
  578. * imagecolorallocate.
  579. * </p>
  580. * @return bool true on success or false on failure.
  581. */
  582. function imagefilledellipse ($image, $cx, $cy, $width, $height, $color) {}
  583. /**
  584. * Set the blending mode for an image
  585. * @link https://php.net/manual/en/function.imagealphablending.php
  586. * @param resource $image
  587. * @param bool $blendmode <p>
  588. * Whether to enable the blending mode or not. On true color images
  589. * the default value is true otherwise the default value is false
  590. * </p>
  591. * @return bool true on success or false on failure.
  592. */
  593. function imagealphablending ($image, $blendmode) {}
  594. /**
  595. * Set the flag to save full alpha channel information (as opposed to single-color transparency) when saving PNG images
  596. * @link https://php.net/manual/en/function.imagesavealpha.php
  597. * @param resource $image
  598. * @param bool $saveflag <p>
  599. * Whether to save the alpha channel or not. Default to false.
  600. * </p>
  601. * @return bool true on success or false on failure.
  602. */
  603. function imagesavealpha ($image, $saveflag) {}
  604. /**
  605. * Allocate a color for an image
  606. * @link https://php.net/manual/en/function.imagecolorallocatealpha.php
  607. * @param resource $image
  608. * @param int $red <p>
  609. * Value of red component.
  610. * </p>
  611. * @param int $green <p>
  612. * Value of green component.
  613. * </p>
  614. * @param int $blue <p>
  615. * Value of blue component.
  616. * </p>
  617. * @param int $alpha <p>
  618. * A value between 0 and 127.
  619. * 0 indicates completely opaque while
  620. * 127 indicates completely transparent.
  621. * </p>
  622. * @return int|false A color identifier or false if the allocation failed.
  623. */
  624. function imagecolorallocatealpha ($image, $red, $green, $blue, $alpha) {}
  625. /**
  626. * Get the index of the specified color + alpha or its closest possible alternative
  627. * @link https://php.net/manual/en/function.imagecolorresolvealpha.php
  628. * @param resource $image
  629. * @param int $red <p>
  630. * Value of red component.
  631. * </p>
  632. * @param int $green <p>
  633. * Value of green component.
  634. * </p>
  635. * @param int $blue <p>
  636. * Value of blue component.
  637. * </p>
  638. * @param int $alpha <p>
  639. * A value between 0 and 127.
  640. * 0 indicates completely opaque while
  641. * 127 indicates completely transparent.
  642. * </p>
  643. * @return int|false a color index or <b>FALSE</b> on failure
  644. */
  645. function imagecolorresolvealpha ($image, $red, $green, $blue, $alpha) {}
  646. /**
  647. * Get the index of the closest color to the specified color + alpha
  648. * @link https://php.net/manual/en/function.imagecolorclosestalpha.php
  649. * @param resource $image
  650. * @param int $red <p>
  651. * Value of red component.
  652. * </p>
  653. * @param int $green <p>
  654. * Value of green component.
  655. * </p>
  656. * @param int $blue <p>
  657. * Value of blue component.
  658. * </p>
  659. * @param int $alpha <p>
  660. * A value between 0 and 127.
  661. * 0 indicates completely opaque while
  662. * 127 indicates completely transparent.
  663. * </p>
  664. * @return int|false the index of the closest color in the palette or
  665. * <b>FALSE</b> on failure
  666. */
  667. function imagecolorclosestalpha ($image, $red, $green, $blue, $alpha) {}
  668. /**
  669. * Get the index of the specified color + alpha
  670. * @link https://php.net/manual/en/function.imagecolorexactalpha.php
  671. * @param resource $image
  672. * @param int $red <p>
  673. * Value of red component.
  674. * </p>
  675. * @param int $green <p>
  676. * Value of green component.
  677. * </p>
  678. * @param int $blue <p>
  679. * Value of blue component.
  680. * </p>
  681. * @param int $alpha <p>
  682. * A value between 0 and 127.
  683. * 0 indicates completely opaque while
  684. * 127 indicates completely transparent.
  685. * </p>
  686. * @return int|false the index of the specified color+alpha in the palette of the
  687. * image, -1 if the color does not exist in the image's palette, or <b>FALSE</b>
  688. * on failure
  689. */
  690. function imagecolorexactalpha ($image, $red, $green, $blue, $alpha) {}
  691. /**
  692. * Copy and resize part of an image with resampling
  693. * @link https://php.net/manual/en/function.imagecopyresampled.php
  694. * @param resource $dst_image
  695. * @param resource $src_image
  696. * @param int $dst_x <p>
  697. * x-coordinate of destination point.
  698. * </p>
  699. * @param int $dst_y <p>
  700. * y-coordinate of destination point.
  701. * </p>
  702. * @param int $src_x <p>
  703. * x-coordinate of source point.
  704. * </p>
  705. * @param int $src_y <p>
  706. * y-coordinate of source point.
  707. * </p>
  708. * @param int $dst_w <p>
  709. * Destination width.
  710. * </p>
  711. * @param int $dst_h <p>
  712. * Destination height.
  713. * </p>
  714. * @param int $src_w <p>
  715. * Source width.
  716. * </p>
  717. * @param int $src_h <p>
  718. * Source height.
  719. * </p>
  720. * @return bool true on success or false on failure.
  721. */
  722. function imagecopyresampled ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) {}
  723. /**
  724. * Rotate an image with a given angle
  725. * @link https://php.net/manual/en/function.imagerotate.php
  726. * @param resource $image
  727. * @param float $angle <p>
  728. * Rotation angle, in degrees.
  729. * </p>
  730. * @param int $bgd_color <p>
  731. * Specifies the color of the uncovered zone after the rotation
  732. * </p>
  733. * @param int $ignore_transparent [optional] <p>
  734. * If set and non-zero, transparent colors are ignored (otherwise kept).
  735. * </p>
  736. * @return resource|false the rotated image or <b>FALSE</b> on failure
  737. */
  738. function imagerotate ($image, $angle, $bgd_color, $ignore_transparent = null) {}
  739. /**
  740. * Should antialias functions be used or not. <br/>
  741. * Before 7.2.0 it's only available if PHP iscompiled with the bundled version of the GD library.
  742. * @link https://php.net/manual/en/function.imageantialias.php
  743. * @param resource $image
  744. * @param bool $enabled <p>
  745. * Whether to enable antialiasing or not.
  746. * </p>
  747. * @return bool true on success or false on failure.
  748. */
  749. function imageantialias ($image, $enabled) {}
  750. /**
  751. * Set the tile image for filling
  752. * @link https://php.net/manual/en/function.imagesettile.php
  753. * @param resource $image
  754. * @param resource $tile <p>
  755. * The image resource to be used as a tile.
  756. * </p>
  757. * @return bool true on success or false on failure.
  758. */
  759. function imagesettile ($image, $tile) {}
  760. /**
  761. * Set the brush image for line drawing
  762. * @link https://php.net/manual/en/function.imagesetbrush.php
  763. * @param resource $image
  764. * @param resource $brush <p>
  765. * An image resource.
  766. * </p>
  767. * @return bool true on success or false on failure.
  768. */
  769. function imagesetbrush ($image, $brush) {}
  770. /**
  771. * Set the style for line drawing
  772. * @link https://php.net/manual/en/function.imagesetstyle.php
  773. * @param resource $image
  774. * @param array $style <p>
  775. * An array of pixel colors. You can use the
  776. * IMG_COLOR_TRANSPARENT constant to add a
  777. * transparent pixel.
  778. * </p>
  779. * @return bool true on success or false on failure.
  780. */
  781. function imagesetstyle ($image, array $style) {}
  782. /**
  783. * Create a new image from file or URL
  784. * @link https://php.net/manual/en/function.imagecreatefrompng.php
  785. * @param string $filename <p>
  786. * Path to the PNG image.
  787. * </p>
  788. * @return resource|false an image resource identifier on success, false on errors.
  789. */
  790. function imagecreatefrompng ($filename) {}
  791. /**
  792. * Create a new image from file or URL
  793. * @link https://php.net/manual/en/function.imagecreatefromgif.php
  794. * @param string $filename <p>
  795. * Path to the GIF image.
  796. * </p>
  797. * @return resource|false an image resource identifier on success, false on errors.
  798. */
  799. function imagecreatefromgif ($filename) {}
  800. /**
  801. * Create a new image from file or URL
  802. * @link https://php.net/manual/en/function.imagecreatefromjpeg.php
  803. * @param string $filename <p>
  804. * Path to the JPEG image.
  805. * </p>
  806. * @return resource|false an image resource identifier on success, false on errors.
  807. */
  808. function imagecreatefromjpeg ($filename) {}
  809. /**
  810. * Create a new image from file or URL
  811. * @link https://php.net/manual/en/function.imagecreatefromwbmp.php
  812. * @param string $filename <p>
  813. * Path to the WBMP image.
  814. * </p>
  815. * @return resource|false an image resource identifier on success, false on errors.
  816. */
  817. function imagecreatefromwbmp ($filename) {}
  818. /**
  819. * Create a new image from file or URL
  820. * @link https://php.net/manual/en/function.imagecreatefromwebp.php
  821. * @param string $filename <p>
  822. * Path to the WebP image.
  823. * </p>
  824. * @return resource|false an image resource identifier on success, false on errors.
  825. * @since 5.4
  826. */
  827. function imagecreatefromwebp ($filename) {}
  828. /**
  829. * Create a new image from file or URL
  830. * @link https://php.net/manual/en/function.imagecreatefromxbm.php
  831. * @param string $filename <p>
  832. * Path to the XBM image.
  833. * </p>
  834. * @return resource|false an image resource identifier on success, false on errors.
  835. */
  836. function imagecreatefromxbm ($filename) {}
  837. /**
  838. * Create a new image from file or URL
  839. * @link https://php.net/manual/en/function.imagecreatefromxpm.php
  840. * @param string $filename <p>
  841. * Path to the XPM image.
  842. * </p>
  843. * @return resource|false an image resource identifier on success, false on errors.
  844. */
  845. function imagecreatefromxpm ($filename) {}
  846. /**
  847. * Create a new image from GD file or URL
  848. * @link https://php.net/manual/en/function.imagecreatefromgd.php
  849. * @param string $filename <p>
  850. * Path to the GD file.
  851. * </p>
  852. * @return resource|false an image resource identifier on success, false on errors.
  853. */
  854. function imagecreatefromgd ($filename) {}
  855. /**
  856. * Create a new image from GD2 file or URL
  857. * @link https://php.net/manual/en/function.imagecreatefromgd2.php
  858. * @param string $filename <p>
  859. * Path to the GD2 image.
  860. * </p>
  861. * @return resource|false an image resource identifier on success, false on errors.
  862. */
  863. function imagecreatefromgd2 ($filename) {}
  864. /**
  865. * Create a new image from a given part of GD2 file or URL
  866. * @link https://php.net/manual/en/function.imagecreatefromgd2part.php
  867. * @param string $filename <p>
  868. * Path to the GD2 image.
  869. * </p>
  870. * @param int $srcX <p>
  871. * x-coordinate of source point.
  872. * </p>
  873. * @param int $srcY <p>
  874. * y-coordinate of source point.
  875. * </p>
  876. * @param int $width <p>
  877. * Source width.
  878. * </p>
  879. * @param int $height <p>
  880. * Source height.
  881. * </p>
  882. * @return resource|false an image resource identifier on success, false on errors.
  883. */
  884. function imagecreatefromgd2part ($filename, $srcX, $srcY, $width, $height) {}
  885. /**
  886. * Output a PNG image to either the browser or a file
  887. * @link https://php.net/manual/en/function.imagepng.php
  888. * @param resource $image
  889. * @param string $filename [optional] <p>
  890. * The path to save the file to. If not set or &null;, the raw image stream
  891. * will be outputted directly.
  892. * </p>
  893. * <p>
  894. * &null; is invalid if the quality and
  895. * filters arguments are not used.
  896. * </p>
  897. * @param int $quality [optional] <p>
  898. * Compression level: from 0 (no compression) to 9.
  899. * </p>
  900. * @param int $filters [optional] <p>
  901. * Allows reducing the PNG file size. It is a bitmask field which may be
  902. * set to any combination of the PNG_FILTER_XXX
  903. * constants. PNG_NO_FILTER or
  904. * PNG_ALL_FILTERS may also be used to respectively
  905. * disable or activate all filters.
  906. * </p>
  907. * @return bool true on success or false on failure.
  908. */
  909. function imagepng ($image, $filename = null, $quality = null, $filters = null) {}
  910. /**
  911. * Output a WebP image to browser or file
  912. * @link https://php.net/manual/en/function.imagewebp.php
  913. * @param resource $image
  914. * @param string $to [optional] <p>
  915. * The path to save the file to. If not set or &null;, the raw image stream
  916. * will be outputted directly.
  917. * </p>
  918. * @param int $quality [optional] <p>
  919. * quality ranges from 0 (worst quality, smaller file) to 100 (best quality, biggest file).
  920. * </p>
  921. * @return bool true on success or false on failure.
  922. * @since 5.4
  923. */
  924. function imagewebp ($image, $to = null, $quality = 80) {}
  925. /**
  926. * Output image to browser or file
  927. * @link https://php.net/manual/en/function.imagegif.php
  928. * @param resource $image
  929. * @param string $filename [optional] <p>
  930. * The path to save the file to. If not set or &null;, the raw image stream
  931. * will be outputted directly.
  932. * </p>
  933. * @return bool true on success or false on failure.
  934. */
  935. function imagegif ($image, $filename = null) {}
  936. /**
  937. * Output image to browser or file
  938. * @link https://php.net/manual/en/function.imagejpeg.php
  939. * @param resource $image
  940. * @param string $filename [optional] <p>
  941. * The path to save the file to. If not set or &null;, the raw image stream
  942. * will be outputted directly.
  943. * </p>
  944. * <p>
  945. * To skip this argument in order to provide the
  946. * quality parameter, use &null;.
  947. * </p>
  948. * @param int $quality [optional] <p>
  949. * quality is optional, and ranges from 0 (worst
  950. * quality, smaller file) to 100 (best quality, biggest file). The
  951. * default is the default IJG quality value (about 75).
  952. * </p>
  953. * @return bool true on success or false on failure.
  954. */
  955. function imagejpeg ($image, $filename = null, $quality = null) {}
  956. /**
  957. * Output image to browser or file
  958. * @link https://php.net/manual/en/function.imagewbmp.php
  959. * @param resource $image
  960. * @param string $filename [optional] <p>
  961. * The path to save the file to. If not set or &null;, the raw image stream
  962. * will be outputted directly.
  963. * </p>
  964. * @param int $foreground [optional] <p>
  965. * You can set the foreground color with this parameter by setting an
  966. * identifier obtained from imagecolorallocate.
  967. * The default foreground color is black.
  968. * </p>
  969. * @return bool true on success or false on failure.
  970. */
  971. function imagewbmp ($image, $filename = null, $foreground = null) {}
  972. /**
  973. * Output GD image to browser or file. <br/>
  974. * Since 7.2.0 allows to output truecolor images.
  975. * @link https://php.net/manual/en/function.imagegd.php
  976. * @param resource $image
  977. * @param string $filename [optional] <p>
  978. * The path to save the file to. If not set or &null;, the raw image stream
  979. * will be outputted directly.
  980. * </p>
  981. * @return bool true on success or false on failure.
  982. */
  983. function imagegd ($image, $filename = null) {}
  984. /**
  985. * Output GD2 image to browser or file
  986. * @link https://php.net/manual/en/function.imagegd2.php
  987. * @param resource $image
  988. * @param string $filename [optional] <p>
  989. * The path to save the file to. If not set or &null;, the raw image stream
  990. * will be outputted directly.
  991. * </p>
  992. * @param int $chunk_size [optional] <p>
  993. * Chunk size.
  994. * </p>
  995. * @param int $type [optional] <p>
  996. * Either IMG_GD2_RAW or
  997. * IMG_GD2_COMPRESSED. Default is
  998. * IMG_GD2_RAW.
  999. * </p>
  1000. * @return bool true on success or false on failure.
  1001. */
  1002. function imagegd2 ($image, $filename = null, $chunk_size = null, $type = null) {}
  1003. /**
  1004. * Destroy an image
  1005. * @link https://php.net/manual/en/function.imagedestroy.php
  1006. * @param resource $image
  1007. * @return bool true on success or false on failure.
  1008. */
  1009. function imagedestroy ($image) {}
  1010. /**
  1011. * Apply a gamma correction to a GD image
  1012. * @link https://php.net/manual/en/function.imagegammacorrect.php
  1013. * @param resource $image
  1014. * @param float $inputgamma <p>
  1015. * The input gamma.
  1016. * </p>
  1017. * @param float $outputgamma <p>
  1018. * The output gamma.
  1019. * </p>
  1020. * @return bool true on success or false on failure.
  1021. */
  1022. function imagegammacorrect ($image, $inputgamma, $outputgamma) {}
  1023. /**
  1024. * Flood fill
  1025. * @link https://php.net/manual/en/function.imagefill.php
  1026. * @param resource $image
  1027. * @param int $x <p>
  1028. * x-coordinate of start point.
  1029. * </p>
  1030. * @param int $y <p>
  1031. * y-coordinate of start point.
  1032. * </p>
  1033. * @param int $color <p>
  1034. * The fill color. A color identifier created with
  1035. * imagecolorallocate.
  1036. * </p>
  1037. * @return bool true on success or false on failure.
  1038. */
  1039. function imagefill ($image, $x, $y, $color) {}
  1040. /**
  1041. * Draw a filled polygon
  1042. * @link https://php.net/manual/en/function.imagefilledpolygon.php
  1043. * @param resource $image
  1044. * @param array $points <p>
  1045. * An array containing the x and y
  1046. * coordinates of the polygons vertices consecutively.
  1047. * </p>
  1048. * @param int $num_points [optional] <p>
  1049. * Total number of vertices, which must be at least 3.
  1050. * </p>
  1051. * @param int $color <p>
  1052. * A color identifier created with
  1053. * imagecolorallocate.
  1054. * </p>
  1055. * @return bool true on success or false on failure.
  1056. */
  1057. function imagefilledpolygon ($image, array $points, $num_points, $color) {}
  1058. /**
  1059. * Draw a filled rectangle
  1060. * @link https://php.net/manual/en/function.imagefilledrectangle.php
  1061. * @param resource $image
  1062. * @param int $x1 <p>
  1063. * x-coordinate for point 1.
  1064. * </p>
  1065. * @param int $y1 <p>
  1066. * y-coordinate for point 1.
  1067. * </p>
  1068. * @param int $x2 <p>
  1069. * x-coordinate for point 2.
  1070. * </p>
  1071. * @param int $y2 <p>
  1072. * y-coordinate for point 2.
  1073. * </p>
  1074. * @param int $color <p>
  1075. * The fill color. A color identifier created with
  1076. * imagecolorallocate.
  1077. * </p>
  1078. * @return bool true on success or false on failure.
  1079. */
  1080. function imagefilledrectangle ($image, $x1, $y1, $x2, $y2, $color) {}
  1081. /**
  1082. * Flood fill to specific color
  1083. * @link https://php.net/manual/en/function.imagefilltoborder.php
  1084. * @param resource $image
  1085. * @param int $x <p>
  1086. * x-coordinate of start.
  1087. * </p>
  1088. * @param int $y <p>
  1089. * y-coordinate of start.
  1090. * </p>
  1091. * @param int $border <p>
  1092. * The border color. A color identifier created with
  1093. * imagecolorallocate.
  1094. * </p>
  1095. * @param int $color <p>
  1096. * The fill color. A color identifier created with
  1097. * imagecolorallocate.
  1098. * </p>
  1099. * @return bool true on success or false on failure.
  1100. */
  1101. function imagefilltoborder ($image, $x, $y, $border, $color) {}
  1102. /**
  1103. * Get font width
  1104. * @link https://php.net/manual/en/function.imagefontwidth.php
  1105. * @param int $font
  1106. * @return int the width of the pixel
  1107. */
  1108. function imagefontwidth ($font) {}
  1109. /**
  1110. * Get font height
  1111. * @link https://php.net/manual/en/function.imagefontheight.php
  1112. * @param int $font
  1113. * @return int the height of the pixel.
  1114. */
  1115. function imagefontheight ($font) {}
  1116. /**
  1117. * Enable or disable interlace
  1118. * @link https://php.net/manual/en/function.imageinterlace.php
  1119. * @param resource $image
  1120. * @param int $interlace [optional] <p>
  1121. * If non-zero, the image will be interlaced, else the interlace bit is
  1122. * turned off.
  1123. * </p>
  1124. * @return int|false 1 if the interlace bit is set for the image,
  1125. * 0 if it is not, or <b>FALSE</b> on failure
  1126. */
  1127. function imageinterlace ($image, $interlace = null) {}
  1128. /**
  1129. * Draw a line
  1130. * @link https://php.net/manual/en/function.imageline.php
  1131. * @param resource $image
  1132. * @param int $x1 <p>
  1133. * x-coordinate for first point.
  1134. * </p>
  1135. * @param int $y1 <p>
  1136. * y-coordinate for first point.
  1137. * </p>
  1138. * @param int $x2 <p>
  1139. * x-coordinate for second point.
  1140. * </p>
  1141. * @param int $y2 <p>
  1142. * y-coordinate for second point.
  1143. * </p>
  1144. * @param int $color <p>
  1145. * The line color. A color identifier created with
  1146. * imagecolorallocate.
  1147. * </p>
  1148. * @return bool true on success or false on failure.
  1149. */
  1150. function imageline ($image, $x1, $y1, $x2, $y2, $color) {}
  1151. /**
  1152. * Load a new font
  1153. * @link https://php.net/manual/en/function.imageloadfont.php
  1154. * @param string $file <p>
  1155. * The font file format is currently binary and architecture
  1156. * dependent. This means you should generate the font files on the
  1157. * same type of CPU as the machine you are running PHP on.
  1158. * </p>
  1159. * <p>
  1160. * <table>
  1161. * Font file format
  1162. * <tr valign="top">
  1163. * <td>byte position</td>
  1164. * <td>C data type</td>
  1165. * <td>description</td>
  1166. * </tr>
  1167. * <tr valign="top">
  1168. * <td>byte 0-3</td>
  1169. * <td>int</td>
  1170. * <td>number of characters in the font</td>
  1171. * </tr>
  1172. * <tr valign="top">
  1173. * <td>byte 4-7</td>
  1174. * <td>int</td>
  1175. * <td>
  1176. * value of first character in the font (often 32 for space)
  1177. * </td>
  1178. * </tr>
  1179. * <tr valign="top">
  1180. * <td>byte 8-11</td>
  1181. * <td>int</td>
  1182. * <td>pixel width of each character</td>
  1183. * </tr>
  1184. * <tr valign="top">
  1185. * <td>byte 12-15</td>
  1186. * <td>int</td>
  1187. * <td>pixel height of each character</td>
  1188. * </tr>
  1189. * <tr valign="top">
  1190. * <td>byte 16-</td>
  1191. * <td>char</td>
  1192. * <td>
  1193. * array with character data, one byte per pixel in each
  1194. * character, for a total of (nchars*width*height) bytes.
  1195. * </td>
  1196. * </tr>
  1197. * </table>
  1198. * </p>
  1199. * @return int|false The font identifier which is always bigger than 5 to avoid conflicts with
  1200. * built-in fonts or false on errors.
  1201. */
  1202. function imageloadfont ($file) {}
  1203. /**
  1204. * Draws a polygon
  1205. * @link https://php.net/manual/en/function.imagepolygon.php
  1206. * @param resource $image
  1207. * @param array $points <p>
  1208. * An array containing the polygon's vertices, e.g.:
  1209. * <tr valign="top">
  1210. * <td>points[0]</td>
  1211. * <td>= x0</td>
  1212. * </tr>
  1213. * <tr valign="top">
  1214. * <td>points[1]</td>
  1215. * <td>= y0</td>
  1216. * </tr>
  1217. * <tr valign="top">
  1218. * <td>points[2]</td>
  1219. * <td>= x1</td>
  1220. * </tr>
  1221. * <tr valign="top">
  1222. * <td>points[3]</td>
  1223. * <td>= y1</td>
  1224. * </tr>
  1225. * </p>
  1226. * @param int $num_points [optional] <p>
  1227. * Total number of points (vertices).
  1228. * </p>
  1229. * @param int $color <p>
  1230. * A color identifier created with
  1231. * imagecolorallocate.
  1232. * </p>
  1233. * @return bool true on success or false on failure.
  1234. */
  1235. function imagepolygon ($image, array $points, $num_points, $color) {}
  1236. /**
  1237. * Draw a rectangle
  1238. * @link https://php.net/manual/en/function.imagerectangle.php
  1239. * @param resource $image
  1240. * @param int $x1 <p>
  1241. * Upper left x coordinate.
  1242. * </p>
  1243. * @param int $y1 <p>
  1244. * Upper left y coordinate
  1245. * 0, 0 is the top left corner of the image.
  1246. * </p>
  1247. * @param int $x2 <p>
  1248. * Bottom right x coordinate.
  1249. * </p>
  1250. * @param int $y2 <p>
  1251. * Bottom right y coordinate.
  1252. * </p>
  1253. * @param int $color <p>
  1254. * A color identifier created with
  1255. * imagecolorallocate.
  1256. * </p>
  1257. * @return bool true on success or false on failure.
  1258. */
  1259. function imagerectangle ($image, $x1, $y1, $x2, $y2, $color) {}
  1260. /**
  1261. * Set a single pixel
  1262. * @link https://php.net/manual/en/function.imagesetpixel.php
  1263. * @param resource $image
  1264. * @param int $x <p>
  1265. * x-coordinate.
  1266. * </p>
  1267. * @param int $y <p>
  1268. * y-coordinate.
  1269. * </p>
  1270. * @param int $color <p>
  1271. * A color identifier created with
  1272. * imagecolorallocate.
  1273. * </p>
  1274. * @return bool true on success or false on failure.
  1275. */
  1276. function imagesetpixel ($image, $x, $y, $color) {}
  1277. /**
  1278. * Draw a string horizontally
  1279. * @link https://php.net/manual/en/function.imagestring.php
  1280. * @param resource $image
  1281. * @param int $font
  1282. * @param int $x <p>
  1283. * x-coordinate of the upper left corner.
  1284. * </p>
  1285. * @param int $y <p>
  1286. * y-coordinate of the upper left corner.
  1287. * </p>
  1288. * @param string $string <p>
  1289. * The string to be written.
  1290. * </p>
  1291. * @param int $color <p>
  1292. * A color identifier created with
  1293. * imagecolorallocate.
  1294. * </p>
  1295. * @return bool true on success or false on failure.
  1296. */
  1297. function imagestring ($image, $font, $x, $y, $string, $color) {}
  1298. /**
  1299. * Draw a string vertically
  1300. * @link https://php.net/manual/en/function.imagestringup.php
  1301. * @param resource $image
  1302. * @param int $font
  1303. * @param int $x <p>
  1304. * x-coordinate of the upper left corner.
  1305. * </p>
  1306. * @param int $y <p>
  1307. * y-coordinate of the upper left corner.
  1308. * </p>
  1309. * @param string $string <p>
  1310. * The string to be written.
  1311. * </p>
  1312. * @param int $color <p>
  1313. * A color identifier created with
  1314. * imagecolorallocate.
  1315. * </p>
  1316. * @return bool true on success or false on failure.
  1317. */
  1318. function imagestringup ($image, $font, $x, $y, $string, $color) {}
  1319. /**
  1320. * Get image width
  1321. * @link https://php.net/manual/en/function.imagesx.php
  1322. * @param resource $image
  1323. * @return int|false Return the width of the image or false on
  1324. * errors.
  1325. */
  1326. function imagesx ($image) {}
  1327. /**
  1328. * Get image height
  1329. * @link https://php.net/manual/en/function.imagesy.php
  1330. * @param resource $image
  1331. * @return int|false Return the height of the image or false on
  1332. * errors.
  1333. */
  1334. function imagesy ($image) {}
  1335. /**
  1336. * Draw a dashed line
  1337. * @link https://php.net/manual/en/function.imagedashedline.php
  1338. * @param resource $image
  1339. * @param int $x1 <p>
  1340. * Upper left x coordinate.
  1341. * </p>
  1342. * @param int $y1 <p>
  1343. * Upper left y coordinate 0, 0 is the top left corner of the image.
  1344. * </p>
  1345. * @param int $x2 <p>
  1346. * Bottom right x coordinate.
  1347. * </p>
  1348. * @param int $y2 <p>
  1349. * Bottom right y coordinate.
  1350. * </p>
  1351. * @param int $color <p>
  1352. * The fill color. A color identifier created with
  1353. * imagecolorallocate.
  1354. * </p>
  1355. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  1356. * @deprecated Use combination of imagesetstyle() and imageline() instead
  1357. */
  1358. function imagedashedline ($image, $x1, $y1, $x2, $y2, $color) {}
  1359. /**
  1360. * Give the bounding box of a text using TrueType fonts
  1361. * @link https://php.net/manual/en/function.imagettfbbox.php
  1362. * @param float $size <p>
  1363. * The font size. Depending on your version of GD, this should be
  1364. * specified as the pixel size (GD1) or point size (GD2).
  1365. * </p>
  1366. * @param float $angle <p>
  1367. * Angle in degrees in which text will be measured.
  1368. * </p>
  1369. * @param string $fontfile <p>
  1370. * The name of the TrueType font file (can be a URL). Depending on
  1371. * which version of the GD library that PHP is using, it may attempt to
  1372. * search for files that do not begin with a leading '/' by appending
  1373. * '.ttf' to the filename and searching along a library-defined font path.
  1374. * </p>
  1375. * @param string $text <p>
  1376. * The string to be measured.
  1377. * </p>
  1378. * @return array|false imagettfbbox returns an array with 8
  1379. * elements representing four points making the bounding box of the
  1380. * text on success and false on error.
  1381. * <tr valign="top">
  1382. * <td>key</td>
  1383. * <td>contents</td>
  1384. * </tr>
  1385. * <tr valign="top">
  1386. * <td>0</td>
  1387. * <td>lower left corner, X position</td>
  1388. * </tr>
  1389. * <tr valign="top">
  1390. * <td>1</td>
  1391. * <td>lower left corner, Y position</td>
  1392. * </tr>
  1393. * <tr valign="top">
  1394. * <td>2</td>
  1395. * <td>lower right corner, X position</td>
  1396. * </tr>
  1397. * <tr valign="top">
  1398. * <td>3</td>
  1399. * <td>lower right corner, Y position</td>
  1400. * </tr>
  1401. * <tr valign="top">
  1402. * <td>4</td>
  1403. * <td>upper right corner, X position</td>
  1404. * </tr>
  1405. * <tr valign="top">
  1406. * <td>5</td>
  1407. * <td>upper right corner, Y position</td>
  1408. * </tr>
  1409. * <tr valign="top">
  1410. * <td>6</td>
  1411. * <td>upper left corner, X position</td>
  1412. * </tr>
  1413. * <tr valign="top">
  1414. * <td>7</td>
  1415. * <td>upper left corner, Y position</td>
  1416. * </tr>
  1417. * </p>
  1418. * <p>
  1419. * The points are relative to the text regardless of the
  1420. * angle, so "upper left" means in the top left-hand
  1421. * corner seeing the text horizontally.
  1422. */
  1423. function imagettfbbox ($size, $angle, $fontfile, $text) {}
  1424. /**
  1425. * Write text to the image using TrueType fonts
  1426. * @link https://php.net/manual/en/function.imagettftext.php
  1427. * @param resource $image
  1428. * @param float $size <p>
  1429. * The font size. Depending on your version of GD, this should be
  1430. * specified as the pixel size (GD1) or point size (GD2).
  1431. * </p>
  1432. * @param float $angle <p>
  1433. * The angle in degrees, with 0 degrees being left-to-right reading text.
  1434. * Higher values represent a counter-clockwise rotation. For example, a
  1435. * value of 90 would result in bottom-to-top reading text.
  1436. * </p>
  1437. * @param int $x <p>
  1438. * The coordinates given by x and
  1439. * y will define the basepoint of the first
  1440. * character (roughly the lower-left corner of the character). This
  1441. * is different from the imagestring, where
  1442. * x and y define the
  1443. * upper-left corner of the first character. For example, "top left"
  1444. * is 0, 0.
  1445. * </p>
  1446. * @param int $y <p>
  1447. * The y-ordinate. This sets the position of the fonts baseline, not the
  1448. * very bottom of the character.
  1449. * </p>
  1450. * @param int $color <p>
  1451. * The color index. Using the negative of a color index has the effect of
  1452. * turning off antialiasing. See imagecolorallocate.
  1453. * </p>
  1454. * @param string $fontfile <p>
  1455. * The path to the TrueType font you wish to use.
  1456. * </p>
  1457. * <p>
  1458. * Depending on which version of the GD library PHP is using, when
  1459. * fontfile does not begin with a leading
  1460. * / then .ttf will be appended
  1461. * to the filename and the library will attempt to search for that
  1462. * filename along a library-defined font path.
  1463. * </p>
  1464. * <p>
  1465. * When using versions of the GD library lower than 2.0.18, a space character,
  1466. * rather than a semicolon, was used as the 'path separator' for different font files.
  1467. * Unintentional use of this feature will result in the warning message:
  1468. * Warning: Could not find/open font. For these affected versions, the
  1469. * only solution is moving the font to a path which does not contain spaces.
  1470. * </p>
  1471. * <p>
  1472. * In many cases where a font resides in the same directory as the script using it
  1473. * the following trick will alleviate any include problems.
  1474. * </p>
  1475. * <pre>
  1476. * <?php
  1477. * // Set the enviroment variable for GD
  1478. * putenv('GDFONTPATH=' . realpath('.'));
  1479. *
  1480. * // Name the font to be used (note the lack of the .ttf extension)
  1481. * $font = 'SomeFont';
  1482. * ?>
  1483. * </pre>
  1484. * <p>
  1485. * <strong>Note:</strong>
  1486. * <code>open_basedir</code> does <em>not</em> apply to fontfile.
  1487. * </p>
  1488. * @param string $text <p>
  1489. * The text string in UTF-8 encoding.
  1490. * </p>
  1491. * <p>
  1492. * May include decimal numeric character references (of the form:
  1493. * &amp;#8364;) to access characters in a font beyond position 127.
  1494. * The hexadecimal format (like &amp;#xA9;) is supported.
  1495. * Strings in UTF-8 encoding can be passed directly.
  1496. * </p>
  1497. * <p>
  1498. * Named entities, such as &amp;copy;, are not supported. Consider using
  1499. * html_entity_decode
  1500. * to decode these named entities into UTF-8 strings (html_entity_decode()
  1501. * supports this as of PHP 5.0.0).
  1502. * </p>
  1503. * <p>
  1504. * If a character is used in the string which is not supported by the
  1505. * font, a hollow rectangle will replace the character.
  1506. * </p>
  1507. * @return array|false an array with 8 elements representing four points making the
  1508. * bounding box of the text. The order of the points is lower left, lower
  1509. * right, upper right, upper left. The points are relative to the text
  1510. * regardless of the angle, so "upper left" means in the top left-hand
  1511. * corner when you see the text horizontally.
  1512. * Returns false on error.
  1513. */
  1514. function imagettftext ($image, $size, $angle, $x, $y, $color, $fontfile, $text) {}
  1515. /**
  1516. * Give the bounding box of a text using fonts via freetype2
  1517. * @link https://php.net/manual/en/function.imageftbbox.php
  1518. * @param float $size <p>
  1519. * The font size. Depending on your version of GD, this should be
  1520. * specified as the pixel size (GD1) or point size (GD2).
  1521. * </p>
  1522. * @param float $angle <p>
  1523. * Angle in degrees in which text will be
  1524. * measured.
  1525. * </p>
  1526. * @param string $fontfile <p>
  1527. * The name of the TrueType font file (can be a URL). Depending on
  1528. * which version of the GD library that PHP is using, it may attempt to
  1529. * search for files that do not begin with a leading '/' by appending
  1530. * '.ttf' to the filename and searching along a library-defined font path.
  1531. * </p>
  1532. * @param string $text <p>
  1533. * The string to be measured.
  1534. * </p>
  1535. * @param array $extrainfo [optional] <p>
  1536. * <table>
  1537. * Possible array indexes for extrainfo
  1538. * <tr valign="top">
  1539. * <td>Key</td>
  1540. * <td>Type</td>
  1541. * <td>Meaning</td>
  1542. * </tr>
  1543. * <tr valign="top">
  1544. * <td>linespacing</td>
  1545. * <td>float</td>
  1546. * <td>Defines drawing linespacing</td>
  1547. * </tr>
  1548. * </table>
  1549. * </p>
  1550. * @return array|false imageftbbox returns an array with 8
  1551. * elements representing four points making the bounding box of the
  1552. * text:
  1553. * <tr valign="top">
  1554. * <td>0</td>
  1555. * <td>lower left corner, X position</td>
  1556. * </tr>
  1557. * <tr valign="top">
  1558. * <td>1</td>
  1559. * <td>lower left corner, Y position</td>
  1560. * </tr>
  1561. * <tr valign="top">
  1562. * <td>2</td>
  1563. * <td>lower right corner, X position</td>
  1564. * </tr>
  1565. * <tr valign="top">
  1566. * <td>3</td>
  1567. * <td>lower right corner, Y position</td>
  1568. * </tr>
  1569. * <tr valign="top">
  1570. * <td>4</td>
  1571. * <td>upper right corner, X position</td>
  1572. * </tr>
  1573. * <tr valign="top">
  1574. * <td>5</td>
  1575. * <td>upper right corner, Y position</td>
  1576. * </tr>
  1577. * <tr valign="top">
  1578. * <td>6</td>
  1579. * <td>upper left corner, X position</td>
  1580. * </tr>
  1581. * <tr valign="top">
  1582. * <td>7</td>
  1583. * <td>upper left corner, Y position</td>
  1584. * </tr>
  1585. * </p>
  1586. * <p>
  1587. * The points are relative to the text regardless of the
  1588. * angle, so "upper left" means in the top left-hand
  1589. * corner seeing the text horizontally.
  1590. * Returns false on error.
  1591. */
  1592. function imageftbbox ($size, $angle, $fontfile, $text, $extrainfo = null ) {}
  1593. /**
  1594. * Write text to the image using fonts using FreeType 2
  1595. * @link https://php.net/manual/en/function.imagefttext.php
  1596. * @param resource $image
  1597. * @param float $size <p>
  1598. * The font size to use in points.
  1599. * </p>
  1600. * @param float $angle <p>
  1601. * The angle in degrees, with 0 degrees being left-to-right reading text.
  1602. * Higher values represent a counter-clockwise rotation. For example, a
  1603. * value of 90 would result in bottom-to-top reading text.
  1604. * </p>
  1605. * @param int $x <p>
  1606. * The coordinates given by x and
  1607. * y will define the basepoint of the first
  1608. * character (roughly the lower-left corner of the character). This
  1609. * is different from the imagestring, where
  1610. * x and y define the
  1611. * upper-left corner of the first character. For example, "top left"
  1612. * is 0, 0.
  1613. * </p>
  1614. * @param int $y <p>
  1615. * The y-ordinate. This sets the position of the fonts baseline, not the
  1616. * very bottom of the character.
  1617. * </p>
  1618. * @param int $color <p>
  1619. * The index of the desired color for the text, see
  1620. * imagecolorexact.
  1621. * </p>
  1622. * @param string $fontfile <p>
  1623. * The path to the TrueType font you wish to use.
  1624. * </p>
  1625. * <p>
  1626. * Depending on which version of the GD library PHP is using, when
  1627. * fontfile does not begin with a leading
  1628. * / then .ttf will be appended
  1629. * to the filename and the library will attempt to search for that
  1630. * filename along a library-defined font path.
  1631. * </p>
  1632. * <p>
  1633. * When using versions of the GD library lower than 2.0.18, a space character,
  1634. * rather than a semicolon, was used as the 'path separator' for different font files.
  1635. * Unintentional use of this feature will result in the warning message:
  1636. * Warning: Could not find/open font. For these affected versions, the
  1637. * only solution is moving the font to a path which does not contain spaces.
  1638. * </p>
  1639. * <p>
  1640. * In many cases where a font resides in the same directory as the script using it
  1641. * the following trick will alleviate any include problems.
  1642. * </p>
  1643. * <pre>
  1644. * <?php
  1645. * // Set the enviroment variable for GD
  1646. * putenv('GDFONTPATH=' . realpath('.'));
  1647. *
  1648. * // Name the font to be used (note the lack of the .ttf extension)
  1649. * $font = 'SomeFont';
  1650. * ?>
  1651. * </pre>
  1652. * <p>
  1653. * <strong>Note:</strong>
  1654. * <code>open_basedir</code> does <em>not</em> apply to fontfile.
  1655. * </p>
  1656. * @param string $text <p>
  1657. * Text to be inserted into image.
  1658. * </p>
  1659. * @param array $extrainfo [optional] <p>
  1660. * <table>
  1661. * Possible array indexes for extrainfo
  1662. * <tr valign="top">
  1663. * <td>Key</td>
  1664. * <td>Type</td>
  1665. * <td>Meaning</td>
  1666. * </tr>
  1667. * <tr valign="top">
  1668. * <td>linespacing</td>
  1669. * <td>float</td>
  1670. * <td>Defines drawing linespacing</td>
  1671. * </tr>
  1672. * </table>
  1673. * </p>
  1674. * @return array|false This function returns an array defining the four points of the box, starting in the lower left and moving counter-clockwise:
  1675. * <tr valign="top">
  1676. * <td>0</td>
  1677. * <td>lower left x-coordinate</td>
  1678. * </tr>
  1679. * <tr valign="top">
  1680. * <td>1</td>
  1681. * <td>lower left y-coordinate</td>
  1682. * </tr>
  1683. * <tr valign="top">
  1684. * <td>2</td>
  1685. * <td>lower right x-coordinate</td>
  1686. * </tr>
  1687. * <tr valign="top">
  1688. * <td>3</td>
  1689. * <td>lower right y-coordinate</td>
  1690. * </tr>
  1691. * <tr valign="top">
  1692. * <td>4</td>
  1693. * <td>upper right x-coordinate</td>
  1694. * </tr>
  1695. * <tr valign="top">
  1696. * <td>5</td>
  1697. * <td>upper right y-coordinate</td>
  1698. * </tr>
  1699. * <tr valign="top">
  1700. * <td>6</td>
  1701. * <td>upper left x-coordinate</td>
  1702. * </tr>
  1703. * <tr valign="top">
  1704. * <td>7</td>
  1705. * <td>upper left y-coordinate</td>
  1706. * </tr>
  1707. * Returns false on error.
  1708. */
  1709. function imagefttext ($image, $size, $angle, $x, $y, $color, $fontfile, $text, $extrainfo = null ) {}
  1710. /**
  1711. * Load a PostScript Type 1 font from file
  1712. * @link https://php.net/manual/en/function.imagepsloadfont.php
  1713. * @param string $filename <p>
  1714. * Path to the Postscript font file.
  1715. * </p>
  1716. * @return resource|false In the case everything went right, a valid font index will be returned and
  1717. * can be used for further purposes. Otherwise the function returns false.
  1718. * @removed 7.0 This function was REMOVED in PHP 7.0.0.
  1719. */
  1720. function imagepsloadfont ($filename) {}
  1721. /**
  1722. * Free memory used by a PostScript Type 1 font
  1723. * @link https://php.net/manual/en/function.imagepsfreefont.php
  1724. * @param resource $font_index <p>
  1725. * A font resource, returned by imagepsloadfont.
  1726. * </p>
  1727. * @return bool true on success or false on failure.
  1728. * @removed 7.0
  1729. */
  1730. function imagepsfreefont ($font_index) {}
  1731. /**
  1732. * Change the character encoding vector of a font
  1733. * @link https://php.net/manual/en/function.imagepsencodefont.php
  1734. * @param resource $font_index <p>
  1735. * A font resource, returned by imagepsloadfont.
  1736. * </p>
  1737. * @param string $encodingfile <p>
  1738. * The exact format of this file is described in T1libs documentation.
  1739. * T1lib comes with two ready-to-use files,
  1740. * IsoLatin1.enc and
  1741. * IsoLatin2.enc.
  1742. * </p>
  1743. * @return bool true on success or false on failure.
  1744. * @removed 7.0
  1745. */
  1746. function imagepsencodefont ($font_index, $encodingfile) {}
  1747. /**
  1748. * Extend or condense a font
  1749. * @link https://php.net/manual/en/function.imagepsextendfont.php
  1750. * @param resource $font_index <p>
  1751. * A font resource, returned by imagepsloadfont.
  1752. * </p>
  1753. * @param float $extend <p>
  1754. * Extension value, must be greater than 0.
  1755. * </p>
  1756. * @return bool true on success or false on failure.
  1757. * @removed 7.0
  1758. */
  1759. function imagepsextendfont ($font_index, $extend) {}
  1760. /**
  1761. * Slant a font
  1762. * @link https://php.net/manual/en/function.imagepsslantfont.php
  1763. * @param resource $font_index <p>
  1764. * A font resource, returned by imagepsloadfont.
  1765. * </p>
  1766. * @param float $slant <p>
  1767. * Slant level.
  1768. * </p>
  1769. * @return bool true on success or false on failure.
  1770. * @removed 7.0 This function was REMOVED in PHP 7.0.0.
  1771. */
  1772. function imagepsslantfont ($font_index, $slant) {}
  1773. /**
  1774. * Draws a text over an image using PostScript Type1 fonts
  1775. * @link https://php.net/manual/en/function.imagepstext.php
  1776. * @param resource $image
  1777. * @param string $text <p>
  1778. * The text to be written.
  1779. * </p>
  1780. * @param resource $font_index <p>
  1781. * A font resource, returned by imagepsloadfont.
  1782. * </p>
  1783. * @param int $size <p>
  1784. * size is expressed in pixels.
  1785. * </p>
  1786. * @param int $foreground <p>
  1787. * The color in which the text will be painted.
  1788. * </p>
  1789. * @param int $background <p>
  1790. * The color to which the text will try to fade in with antialiasing.
  1791. * No pixels with the color background are
  1792. * actually painted, so the background image does not need to be of solid
  1793. * color.
  1794. * </p>
  1795. * @param int $x <p>
  1796. * x-coordinate for the lower-left corner of the first character.
  1797. * </p>
  1798. * @param int $y <p>
  1799. * y-coordinate for the lower-left corner of the first character.
  1800. * </p>
  1801. * @param int $space [optional] <p>
  1802. * Allows you to change the default value of a space in a font. This
  1803. * amount is added to the normal value and can also be negative.
  1804. * Expressed in character space units, where 1 unit is 1/1000th of an
  1805. * em-square.
  1806. * </p>
  1807. * @param int $tightness [optional] <p>
  1808. * tightness allows you to control the amount
  1809. * of white space between characters. This amount is added to the
  1810. * normal character width and can also be negative.
  1811. * Expressed in character space units, where 1 unit is 1/1000th of an
  1812. * em-square.
  1813. * </p>
  1814. * @param float $angle [optional] <p>
  1815. * angle is in degrees.
  1816. * </p>
  1817. * @param int $antialias_steps [optional] <p>
  1818. * Allows you to control the number of colours used for antialiasing
  1819. * text. Allowed values are 4 and 16. The higher value is recommended
  1820. * for text sizes lower than 20, where the effect in text quality is
  1821. * quite visible. With bigger sizes, use 4. It's less computationally
  1822. * intensive.
  1823. * </p>
  1824. * @return array|false This function returns an array containing the following elements:
  1825. * <tr valign="top">
  1826. * <td>0</td>
  1827. * <td>lower left x-coordinate</td>
  1828. * </tr>
  1829. * <tr valign="top">
  1830. * <td>1</td>
  1831. * <td>lower left y-coordinate</td>
  1832. * </tr>
  1833. * <tr valign="top">
  1834. * <td>2</td>
  1835. * <td>upper right x-coordinate</td>
  1836. * </tr>
  1837. * <tr valign="top">
  1838. * <td>3</td>
  1839. * <td>upper right y-coordinate</td>
  1840. * </tr>
  1841. * Returns false on error.
  1842. * @removed 7.0 This function was REMOVED in PHP 7.0.0.
  1843. */
  1844. function imagepstext ($image, $text, $font_index, $size, $foreground, $background, $x, $y, $space = null, $tightness = null, $angle = null, $antialias_steps = null) {}
  1845. /**
  1846. * Give the bounding box of a text rectangle using PostScript Type1 fonts
  1847. * @link https://php.net/manual/en/function.imagepsbbox.php
  1848. * @param string $text <p>
  1849. * The text to be written.
  1850. * </p>
  1851. * @param resource $font
  1852. * @param int $size <p>
  1853. * size is expressed in pixels.
  1854. * </p>
  1855. * @return array|false an array containing the following elements:
  1856. * <tr valign="top">
  1857. * <td>0</td>
  1858. * <td>left x-coordinate</td>
  1859. * </tr>
  1860. * <tr valign="top">
  1861. * <td>1</td>
  1862. * <td>upper y-coordinate</td>
  1863. * </tr>
  1864. * <tr valign="top">
  1865. * <td>2</td>
  1866. * <td>right x-coordinate</td>
  1867. * </tr>
  1868. * <tr valign="top">
  1869. * <td>3</td>
  1870. * <td>lower y-coordinate</td>
  1871. * </tr>
  1872. * Returns false on error.
  1873. * @removed 7.0
  1874. */
  1875. function imagepsbbox ($text, $font, $size) {}
  1876. /**
  1877. * Return the image types supported by this PHP build
  1878. * @link https://php.net/manual/en/function.imagetypes.php
  1879. * @return int a bit-field corresponding to the image formats supported by the
  1880. * version of GD linked into PHP. The following bits are returned,
  1881. * IMG_BMP | IMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP | IMG_XPM | IMG_WEBP
  1882. */
  1883. function imagetypes () {}
  1884. /**
  1885. * Convert JPEG image file to WBMP image file
  1886. * @link https://php.net/manual/en/function.jpeg2wbmp.php
  1887. * @param string $jpegname <p>
  1888. * Path to JPEG file.
  1889. * </p>
  1890. * @param string $wbmpname <p>
  1891. * Path to destination WBMP file.
  1892. * </p>
  1893. * @param int $dest_height <p>
  1894. * Destination image height.
  1895. * </p>
  1896. * @param int $dest_width <p>
  1897. * Destination image width.
  1898. * </p>
  1899. * @param int $threshold <p>
  1900. * Threshold value, between 0 and 8 (inclusive).
  1901. * </p>
  1902. * @return bool true on success or false on failure.
  1903. * @deprecated 7.2 Use imagecreatefromjpeg() and imagewbmp() instead
  1904. * @removed 8.0
  1905. */
  1906. function jpeg2wbmp ($jpegname, $wbmpname, $dest_height, $dest_width, $threshold) {}
  1907. /**
  1908. * Convert PNG image file to WBMP image file
  1909. * @link https://php.net/manual/en/function.png2wbmp.php
  1910. * @param string $pngname <p>
  1911. * Path to PNG file.
  1912. * </p>
  1913. * @param string $wbmpname <p>
  1914. * Path to destination WBMP file.
  1915. * </p>
  1916. * @param int $dest_height <p>
  1917. * Destination image height.
  1918. * </p>
  1919. * @param int $dest_width <p>
  1920. * Destination image width.
  1921. * </p>
  1922. * @param int $threshold <p>
  1923. * Threshold value, between 0 and 8 (inclusive).
  1924. * </p>
  1925. * @return bool true on success or false on failure.
  1926. * @deprecated 7.2 Use imagecreatefrompng() and imagewbmp() instead
  1927. * @removed 8.0
  1928. */
  1929. function png2wbmp ($pngname, $wbmpname, $dest_height, $dest_width, $threshold) {}
  1930. /**
  1931. * Output image to browser or file
  1932. * @link https://php.net/manual/en/function.image2wbmp.php
  1933. * @param resource $image
  1934. * @param string $filename [optional] <p>
  1935. * Path to the saved file. If not given, the raw image stream will be
  1936. * outputted directly.
  1937. * </p>
  1938. * @param int $threshold [optional] <p>
  1939. * Threshold value, between 0 and 255 (inclusive).
  1940. * </p>
  1941. * @return bool true on success or false on failure.
  1942. * @deprecated 7.3 Use imagewbmp() instead
  1943. * @removed 8.0
  1944. */
  1945. function image2wbmp ($image, $filename = null, $threshold = null) {}
  1946. /**
  1947. * Set the alpha blending flag to use the bundled libgd layering effects
  1948. * @link https://php.net/manual/en/function.imagelayereffect.php
  1949. * @param resource $image
  1950. * @param int $effect <p>
  1951. * One of the following constants:
  1952. * IMG_EFFECT_REPLACE
  1953. * Use pixel replacement (equivalent of passing true to
  1954. * imagealphablending)
  1955. * @return bool true on success or false on failure.
  1956. */
  1957. function imagelayereffect ($image, $effect) {}
  1958. /**
  1959. * Makes the colors of the palette version of an image more closely match the true color version
  1960. * @link https://php.net/manual/en/function.imagecolormatch.php
  1961. * @param $image1 resource <p>
  1962. * A truecolor image link resource.
  1963. * </p>
  1964. * @param $image2 resource <p>
  1965. * A palette image link resource pointing to an image that has the same
  1966. * size as image1.
  1967. * </p>
  1968. * @return bool true on success or false on failure.
  1969. */
  1970. function imagecolormatch ($image1, $image2) {}
  1971. /**
  1972. * Output XBM image to browser or file
  1973. * @link https://php.net/manual/en/function.imagexbm.php
  1974. * @param resource $image
  1975. * @param string $filename <p>
  1976. * The path to save the file to. If not set or &null;, the raw image stream
  1977. * will be outputted directly.
  1978. * </p>
  1979. * @param int $foreground [optional] <p>
  1980. * You can set the foreground color with this parameter by setting an
  1981. * identifier obtained from imagecolorallocate.
  1982. * The default foreground color is black.
  1983. * </p>
  1984. * @return bool true on success or false on failure.
  1985. */
  1986. function imagexbm ($image, $filename, $foreground = null) {}
  1987. /**
  1988. * Applies a filter to an image
  1989. * @link https://php.net/manual/en/function.imagefilter.php
  1990. * @param resource $image
  1991. * @param int $filtertype <p>
  1992. * filtertype can be one of the following:
  1993. * IMG_FILTER_NEGATE: Reverses all colors of
  1994. * the image.
  1995. * @param int $arg1 [optional] <p>
  1996. * IMG_FILTER_BRIGHTNESS: Brightness level.
  1997. * @param int $arg2 [optional] <p>
  1998. * IMG_FILTER_COLORIZE: Value of green component.
  1999. * @param int $arg3 [optional] <p>
  2000. * IMG_FILTER_COLORIZE: Value of blue component.
  2001. * @param int $arg4 [optional] <p>
  2002. * IMG_FILTER_COLORIZE: Alpha channel, A value
  2003. * between 0 and 127. 0 indicates completely opaque while 127 indicates
  2004. * completely transparent.
  2005. * @return bool true on success or false on failure.
  2006. */
  2007. function imagefilter ($image, $filtertype, $arg1 = null, $arg2 = null, $arg3 = null, $arg4 = null) {}
  2008. /**
  2009. * Apply a 3x3 convolution matrix, using coefficient and offset
  2010. * @link https://php.net/manual/en/function.imageconvolution.php
  2011. * @param resource $image
  2012. * @param array $matrix <p>
  2013. * A 3x3 matrix: an array of three arrays of three floats.
  2014. * </p>
  2015. * @param float $div <p>
  2016. * The divisor of the result of the convolution, used for normalization.
  2017. * </p>
  2018. * @param float $offset <p>
  2019. * Color offset.
  2020. * </p>
  2021. * @return bool true on success or false on failure.
  2022. */
  2023. function imageconvolution ($image, array $matrix, $div, $offset) {}
  2024. /**
  2025. * @param resource $im An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()}.
  2026. * @param int $res_x [optional] The horizontal resolution in DPI.
  2027. * @param int $res_y [optional] The vertical resolution in DPI.
  2028. * @return array|bool When used as getter (that is without the optional parameters), it returns <b>TRUE</b> on success, or <b>FALSE</b> on failure. When used as setter (that is with one or both optional parameters given), it returns an indexed array of the horizontal and vertical resolution on success, or <b>FALSE</b> on failure.
  2029. * @link https://php.net/manual/en/function.imageresolution.php
  2030. * @since 7.2
  2031. */
  2032. function imageresolution ($im, $res_x = 96, $res_y = 96) {}
  2033. /**
  2034. * <b>imagesetclip()</b> sets the current clipping rectangle, i.e. the area beyond which no pixels will be drawn.
  2035. * @param resource $im An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()}.
  2036. * @param int $x1 The x-coordinate of the upper left corner.
  2037. * @param int $y1 The y-coordinate of the upper left corner.
  2038. * @param int $x2 The x-coordinate of the lower right corner.
  2039. * @param int $y2 The y-coordinate of the lower right corner.
  2040. * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
  2041. * @link https://php.net/manual/en/function.imagesetclip.php
  2042. * @see imagegetclip()
  2043. * @since 7.2
  2044. */
  2045. function imagesetclip ($im, $x1, $y1, $x2, $y2) {}
  2046. /**
  2047. * <b>imagegetclip()</b> retrieves the current clipping rectangle, i.e. the area beyond which no pixels will be drawn.
  2048. * @param resource $im An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()}
  2049. * @return array|false an indexed array with the coordinates of the clipping rectangle which has the following entries:
  2050. * <ul>
  2051. * <li>x-coordinate of the upper left corner</li>
  2052. * <li>y-coordinate of the upper left corner</li>
  2053. * <li>x-coordinate of the lower right corner</li>
  2054. * <li>y-coordinate of the lower right corner</li>
  2055. * </ul>
  2056. * Returns <b>FALSE</b> on error.
  2057. * @link https://php.net/manual/en/function.imagegetclip.php
  2058. * @see imagesetclip()
  2059. * @since 7.2
  2060. */
  2061. function imagegetclip ($im) {}
  2062. /**
  2063. * <b>imageopenpolygon()</b> draws an open polygon on the given <b>image.</b> Contrary to {@see imagepolygon()}, no line is drawn between the last and the first point.
  2064. * @param resource $image An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()}.
  2065. * @param array $points An array containing the polygon's vertices, e.g.:
  2066. * <pre>
  2067. * points[0] = x0
  2068. * points[1] = y0
  2069. * points[2] = x1
  2070. * points[3] = y1
  2071. * </pre>
  2072. * @param int $num_points [optional] Total number of points (vertices).
  2073. * @param int $color A color identifier created with {@see imagecolorallocate()}.
  2074. * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
  2075. * @link https://php.net/manual/en/function.imageopenpolygon.php
  2076. * @since 7.2
  2077. * @see imageplygon()
  2078. */
  2079. function imageopenpolygon ($image , $points, $num_points, $color) {}
  2080. /**
  2081. * <b>imagecreatefrombmp()</b> returns an image identifier representing the image obtained from the given filename.
  2082. * <b>TIP</b> A URL can be used as a filename with this function if the fopen wrappers have been enabled. See {@see fopen()} for more details on how to specify the filename. See the Supported Protocols and Wrappers for links to information about what abilities the various wrappers have, notes on their usage, and information on any predefined variables they may provide.
  2083. * @param string $filename Path to the BMP image.
  2084. * @return resource|false Returns an image resource identifier on success, <b>FALSE</b> on errors.
  2085. * @link https://php.net/manual/en/function.imagecreatefrombmp.php
  2086. * @since 7.2
  2087. */
  2088. function imagecreatefrombmp($filename){}
  2089. /**
  2090. * Outputs or saves a BMP version of the given <b>image</b>.
  2091. * @param resource $image An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()}.
  2092. * @param mixed $to The path or an open stream resource (which is automatically being closed after this function returns) to save the file to. If not set or <b>NULL</b>, the raw image stream will be outputted directly.
  2093. * <br />
  2094. * <b>Note:</b> <b>NULL</b> is invalid if the <b>compressed</b> arguments is not used.
  2095. * @param bool $compressed Whether the BMP should be compressed with run-length encoding (RLE), or not.
  2096. * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
  2097. * <br />
  2098. * <b>Caution</b> However, if libgd fails to output the image, this function returns <b>TRUE</b>.
  2099. * @link https://php.net/manual/en/function.imagebmp.php
  2100. * @since 7.2
  2101. */
  2102. function imagebmp ($image, $to = null, $compressed = true) {}
  2103. /**
  2104. * @param string $filename
  2105. * @return resource|false
  2106. */
  2107. function imagecreatefromtga($filename) {}
  2108. /**
  2109. * Captures the whole screen
  2110. *
  2111. * https://www.php.net/manual/en/function.imagegrabscreen.php
  2112. *
  2113. * @return resource|false
  2114. */
  2115. function imagegrabscreen() {}
  2116. /**
  2117. * Captures a window
  2118. *
  2119. * @link https://www.php.net/manual/en/function.imagegrabwindow.php
  2120. *
  2121. * @param int $handle
  2122. * @param int|null $client_area
  2123. * @return resource|false
  2124. */
  2125. function imagegrabwindow($handle, $client_area = null) {}
  2126. /**
  2127. * Used as a return value by {@see imagetypes()}
  2128. * @link https://php.net/manual/en/image.constants.php#constant.img-gif
  2129. */
  2130. define ('IMG_GIF', 1);
  2131. /**
  2132. * Used as a return value by {@see imagetypes()}
  2133. * @link https://php.net/manual/en/image.constants.php#constant.img-jpg
  2134. */
  2135. define ('IMG_JPG', 2);
  2136. /**
  2137. * Used as a return value by {@see imagetypes()}
  2138. * <p>
  2139. * This constant has the same value as {@see IMG_JPG}
  2140. * </p>
  2141. * @link https://php.net/manual/en/image.constants.php#constant.img-jpeg
  2142. */
  2143. define ('IMG_JPEG', 2);
  2144. /**
  2145. * Used as a return value by {@see imagetypes()}
  2146. * @link https://php.net/manual/en/image.constants.php#constant.img-png
  2147. */
  2148. define ('IMG_PNG', 4);
  2149. /**
  2150. * Used as a return value by {@see imagetypes()}
  2151. * @link https://php.net/manual/en/image.constants.php#constant.img-wbmp
  2152. */
  2153. define ('IMG_WBMP', 8);
  2154. /**
  2155. * Used as a return value by {@see imagetypes()}
  2156. * @link https://php.net/manual/en/image.constants.php#constant.img-xpm
  2157. */
  2158. define ('IMG_XPM', 16);
  2159. /**
  2160. * Used as a return value by {@see imagetypes()}
  2161. * @since 5.6.25
  2162. * @since 7.0.10
  2163. * @link https://php.net/manual/en/image.constants.php#constant.img-webp
  2164. */
  2165. define('IMG_WEBP', 32);
  2166. /**
  2167. * Used as a return value by {@see imagetypes()}
  2168. * @since 7.2
  2169. * @link https://php.net/manual/en/image.constants.php#constant.img-bmp
  2170. */
  2171. define('IMG_BMP', 64);
  2172. /**
  2173. * Special color option which can be used instead of color allocated with
  2174. * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()}
  2175. * @link https://php.net/manual/en/image.constants.php#constant.img-color-tiled
  2176. */
  2177. define ('IMG_COLOR_TILED', -5);
  2178. /**
  2179. * Special color option which can be used instead of color allocated with
  2180. * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()}
  2181. * @link https://php.net/manual/en/image.constants.php#constant.img-color-styled
  2182. */
  2183. define ('IMG_COLOR_STYLED', -2);
  2184. /**
  2185. * Special color option which can be used instead of color allocated with
  2186. * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()}
  2187. * @link https://php.net/manual/en/image.constants.php#constant.img-color-brushed
  2188. */
  2189. define ('IMG_COLOR_BRUSHED', -3);
  2190. /**
  2191. * Special color option which can be used instead of color allocated with
  2192. * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()}
  2193. * @link https://php.net/manual/en/image.constants.php#constant.img-color-styledbrushed
  2194. */
  2195. define ('IMG_COLOR_STYLEDBRUSHED', -4);
  2196. /**
  2197. * Special color option which can be used instead of color allocated with
  2198. * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()}
  2199. * @link https://php.net/manual/en/image.constants.php#constant.img-color-transparent
  2200. */
  2201. define ('IMG_COLOR_TRANSPARENT', -6);
  2202. /**
  2203. * A style constant used by the {@see imagefilledarc()} function.
  2204. * <p>
  2205. * This constant has the same value as {@see IMG_ARC_PIE}
  2206. * </p>
  2207. * @link https://php.net/manual/en/image.constants.php#constant.img-arc-rounded
  2208. */
  2209. define ('IMG_ARC_ROUNDED', 0);
  2210. /**
  2211. * A style constant used by the {@see imagefilledarc()} function.
  2212. * @link https://php.net/manual/en/image.constants.php#constant.img-arc-pie
  2213. */
  2214. define ('IMG_ARC_PIE', 0);
  2215. /**
  2216. * A style constant used by the {@see imagefilledarc()} function.
  2217. * @link https://php.net/manual/en/image.constants.php#constant.img-arc-chord
  2218. */
  2219. define ('IMG_ARC_CHORD', 1);
  2220. /**
  2221. * A style constant used by the {@see imagefilledarc()} function.
  2222. * @link https://php.net/manual/en/image.constants.php#constant.img-arc-nofill
  2223. */
  2224. define ('IMG_ARC_NOFILL', 2);
  2225. /**
  2226. * A style constant used by the {@see imagefilledarc()} function.
  2227. * @link https://php.net/manual/en/image.constants.php#constant.img-arc-edged
  2228. */
  2229. define ('IMG_ARC_EDGED', 4);
  2230. /**
  2231. * A type constant used by the {@see imagegd2()} function.
  2232. * @link https://php.net/manual/en/image.constants.php#constant.img-gd2-raw
  2233. */
  2234. define ('IMG_GD2_RAW', 1);
  2235. /**
  2236. * A type constant used by the {@see imagegd2()} function.
  2237. * @link https://php.net/manual/en/image.constants.php#constant.img-gd2-compressed
  2238. */
  2239. define ('IMG_GD2_COMPRESSED', 2);
  2240. /**
  2241. * Alpha blending effect used by the {@see imagelayereffect()} function.
  2242. * @link https://php.net/manual/en/image.constants.php#constant.img-effect-replace
  2243. */
  2244. define ('IMG_EFFECT_REPLACE', 0);
  2245. /**
  2246. * Alpha blending effect used by the {@see imagelayereffect()} function.
  2247. * @link https://php.net/manual/en/image.constants.php#constant.img-effect-alphablend
  2248. */
  2249. define ('IMG_EFFECT_ALPHABLEND', 1);
  2250. /**
  2251. * Alpha blending effect used by the {@see imagelayereffect()} function.
  2252. * @link https://php.net/manual/en/image.constants.php#constant.img-effect-normal
  2253. */
  2254. define ('IMG_EFFECT_NORMAL', 2);
  2255. /**
  2256. * Alpha blending effect used by the {@see imagelayereffect()} function.
  2257. * @link https://php.net/manual/en/image.constants.php#constant.img-effect-overlay
  2258. */
  2259. define ('IMG_EFFECT_OVERLAY', 3);
  2260. /**
  2261. * Alpha blending effect used by the {@see imagelayereffect()} function.
  2262. * @link https://php.net/manual/en/image.constants.php#constant.img-effect-multiply
  2263. * @since 7.2
  2264. */
  2265. define ('IMG_EFFECT_MULTIPLY', 4);
  2266. /**
  2267. * When the bundled version of GD is used this is 1 otherwise
  2268. * it's set to 0.
  2269. * @link https://php.net/manual/en/image.constants.php
  2270. */
  2271. define ('GD_BUNDLED', 1);
  2272. /**
  2273. * Special GD filter used by the {@see imagefilter()} function.
  2274. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-negate
  2275. */
  2276. define ('IMG_FILTER_NEGATE', 0);
  2277. /**
  2278. * Special GD filter used by the {@see imagefilter()} function.
  2279. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-grayscale
  2280. */
  2281. define ('IMG_FILTER_GRAYSCALE', 1);
  2282. /**
  2283. * Special GD filter used by the {@see imagefilter()} function.
  2284. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-brightness
  2285. */
  2286. define ('IMG_FILTER_BRIGHTNESS', 2);
  2287. /**
  2288. * Special GD filter used by the {@see imagefilter()} function.
  2289. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-contrast
  2290. */
  2291. define ('IMG_FILTER_CONTRAST', 3);
  2292. /**
  2293. * Special GD filter used by the {@see imagefilter()} function.
  2294. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-colorize
  2295. */
  2296. define ('IMG_FILTER_COLORIZE', 4);
  2297. /**
  2298. * Special GD filter used by the {@see imagefilter()} function.
  2299. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-edgedetect
  2300. */
  2301. define ('IMG_FILTER_EDGEDETECT', 5);
  2302. /**
  2303. * Special GD filter used by the {@see imagefilter()} function.
  2304. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-gaussian-blur
  2305. */
  2306. define ('IMG_FILTER_GAUSSIAN_BLUR', 7);
  2307. /**
  2308. * Special GD filter used by the {@see imagefilter()} function.
  2309. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-selective-blur
  2310. */
  2311. define ('IMG_FILTER_SELECTIVE_BLUR', 8);
  2312. /**
  2313. * Special GD filter used by the {@see imagefilter()} function.
  2314. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-emboss
  2315. */
  2316. define ('IMG_FILTER_EMBOSS', 6);
  2317. /**
  2318. * Special GD filter used by the {@see imagefilter()} function.
  2319. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-mean-removal
  2320. */
  2321. define ('IMG_FILTER_MEAN_REMOVAL', 9);
  2322. /**
  2323. * Special GD filter used by the {@see imagefilter()} function.
  2324. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-smooth
  2325. */
  2326. define ('IMG_FILTER_SMOOTH', 10);
  2327. /**
  2328. * Special GD filter used by the {@see imagefilter()} function.
  2329. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-pixelate
  2330. */
  2331. define ('IMG_FILTER_PIXELATE', 11);
  2332. /**
  2333. * Special GD filter used by the {@see imagefilter()} function.
  2334. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-scatter
  2335. * @since 7.4
  2336. */
  2337. define ('IMG_FILTER_SCATTER', 12);
  2338. /**
  2339. * The GD version PHP was compiled against.
  2340. * @since 5.2.4
  2341. * @link https://php.net/manual/en/image.constants.php#constant.gd-version
  2342. */
  2343. define ('GD_VERSION', "2.0.35");
  2344. /**
  2345. * The GD major version PHP was compiled against.
  2346. * @since 5.2.4
  2347. * @link https://php.net/manual/en/image.constants.php#constant.gd-major-version
  2348. */
  2349. define ('GD_MAJOR_VERSION', 2);
  2350. /**
  2351. * The GD minor version PHP was compiled against.
  2352. * @since 5.2.4
  2353. * @link https://php.net/manual/en/image.constants.php#constant.gd-minor-version
  2354. */
  2355. define ('GD_MINOR_VERSION', 0);
  2356. /**
  2357. * The GD release version PHP was compiled against.
  2358. * @since 5.2.4
  2359. * @link https://php.net/manual/en/image.constants.php#constant.gd-release-version
  2360. */
  2361. define ('GD_RELEASE_VERSION', 35);
  2362. /**
  2363. * The GD "extra" version (beta/rc..) PHP was compiled against.
  2364. * @since 5.2.4
  2365. * @link https://php.net/manual/en/image.constants.php#constant.gd-extra-version
  2366. */
  2367. define ('GD_EXTRA_VERSION', "");
  2368. /**
  2369. * A special PNG filter, used by the {@see imagepng()} function.
  2370. * @link https://php.net/manual/en/image.constants.php#constant.png-no-filter
  2371. */
  2372. define ('PNG_NO_FILTER', 0);
  2373. /**
  2374. * A special PNG filter, used by the {@see imagepng()} function.
  2375. * @link https://php.net/manual/en/image.constants.php#constant.png-filter-none
  2376. */
  2377. define ('PNG_FILTER_NONE', 8);
  2378. /**
  2379. * A special PNG filter, used by the {@see imagepng()} function.
  2380. * @link https://php.net/manual/en/image.constants.php#constant.png-filter-sub
  2381. */
  2382. define ('PNG_FILTER_SUB', 16);
  2383. /**
  2384. * A special PNG filter, used by the {@see imagepng()} function.
  2385. * @link https://php.net/manual/en/image.constants.php#constant.png-filter-up
  2386. */
  2387. define ('PNG_FILTER_UP', 32);
  2388. /**
  2389. * A special PNG filter, used by the {@see imagepng()} function.
  2390. * @link https://php.net/manual/en/image.constants.php#constant.png-filter-avg
  2391. */
  2392. define ('PNG_FILTER_AVG', 64);
  2393. /**
  2394. * A special PNG filter, used by the {@see imagepng()} function.
  2395. * @link https://php.net/manual/en/image.constants.php#constant.png-filter-paeth
  2396. */
  2397. define ('PNG_FILTER_PAETH', 128);
  2398. /**
  2399. * A special PNG filter, used by the {@see imagepng()} function.
  2400. * @link https://php.net/manual/en/image.constants.php#constant.png-all-filters
  2401. */
  2402. define ('PNG_ALL_FILTERS', 248);
  2403. /**
  2404. * An affine transformation type constant used by the {@see imageaffinematrixget()} function.
  2405. * @since 5.5
  2406. * @link https://php.net/manual/en/image.constants.php#constant.img-affine-translate
  2407. */
  2408. define('IMG_AFFINE_TRANSLATE', 0);
  2409. /**
  2410. * An affine transformation type constant used by the {@see imageaffinematrixget()} function.
  2411. * @since 5.5
  2412. * @link https://php.net/manual/en/image.constants.php#constant.img-affine-scale
  2413. */
  2414. define('IMG_AFFINE_SCALE', 1);
  2415. /**
  2416. * An affine transformation type constant used by the {@see imageaffinematrixget()} function.
  2417. * @since 5.5
  2418. * @link https://php.net/manual/en/image.constants.php#constant.img-affine-rotate
  2419. */
  2420. define('IMG_AFFINE_ROTATE', 2);
  2421. /**
  2422. * An affine transformation type constant used by the {@see imageaffinematrixget()} function.
  2423. * @since 5.5
  2424. * @link https://php.net/manual/en/image.constants.php#constant.img-affine-shear-horizontal
  2425. */
  2426. define('IMG_AFFINE_SHEAR_HORIZONTAL', 3);
  2427. /**
  2428. * An affine transformation type constant used by the {@see imageaffinematrixget()} function.
  2429. * @since 5.5
  2430. * @link https://php.net/manual/en/image.constants.php#constant.img-affine-shear-vertical
  2431. */
  2432. define('IMG_AFFINE_SHEAR_VERTICAL', 4);
  2433. /**
  2434. * Same as {@see IMG_CROP_TRANSPARENT}. Before PHP 7.4.0, the bundled libgd fell back to
  2435. * {@see IMG_CROP_SIDES}, if the image had no transparent color.
  2436. * Used together with {@see imagecropauto()}.
  2437. * @since 5.5
  2438. */
  2439. define('IMG_CROP_DEFAULT', 0);
  2440. /**
  2441. * Crops out a transparent background.
  2442. * Used together with {@see imagecropauto()}.
  2443. * @since 5.5
  2444. */
  2445. define('IMG_CROP_TRANSPARENT', 1);
  2446. /**
  2447. * Crops out a black background.
  2448. * Used together with {@see imagecropauto()}.
  2449. * @since 5.5
  2450. */
  2451. define('IMG_CROP_BLACK', 2);
  2452. /**
  2453. * Crops out a white background.
  2454. * Used together with {@see imagecropauto()}.
  2455. * @since 5.5
  2456. */
  2457. define('IMG_CROP_WHITE', 3);
  2458. /**
  2459. * Uses the 4 corners of the image to attempt to detect the background to crop.
  2460. * Used together with {@see imagecropauto()}.
  2461. * @since 5.5
  2462. */
  2463. define('IMG_CROP_SIDES', 4);
  2464. /**
  2465. * Crops an image using the given <b>threshold</b> and <b>color</b>.
  2466. * Used together with {@see imagecropauto()}.
  2467. * @since 5.5
  2468. */
  2469. define('IMG_CROP_THRESHOLD', 5);
  2470. /**
  2471. * Used together with {@see imageflip()}
  2472. * @since 5.5
  2473. * @link https://php.net/manual/en/image.constants.php#constant.img-flip-both
  2474. */
  2475. define('IMG_FLIP_BOTH', 3);
  2476. /**
  2477. * Used together with {@see imageflip()}
  2478. * @since 5.5
  2479. * @link https://php.net/manual/en/image.constants.php#constant.img-flip-horizontal
  2480. */
  2481. define('IMG_FLIP_HORIZONTAL', 1);
  2482. /**
  2483. * Used together with {@see imageflip()}
  2484. * @since 5.5
  2485. * @link https://php.net/manual/en/image.constants.php#constant.img-flip-vertical
  2486. */
  2487. define('IMG_FLIP_VERTICAL', 2);
  2488. /**
  2489. * Used together with {@see imagesetinterpolation()}.
  2490. * @link https://php.net/manual/en/image.constants.php#constant.img-bell
  2491. * @since 5.5
  2492. */
  2493. define('IMG_BELL', 1);
  2494. /**
  2495. * Used together with {@see imagesetinterpolation()}.
  2496. * @link https://php.net/manual/en/image.constants.php#constant.img-bessel
  2497. * @since 5.5
  2498. */
  2499. define('IMG_BESSEL', 2);
  2500. /**
  2501. * Used together with {@see imagesetinterpolation()}.
  2502. * @link https://php.net/manual/en/image.constants.php#constant.img-bicubic
  2503. * @since 5.5
  2504. */
  2505. define('IMG_BICUBIC', 4);
  2506. /**
  2507. * Used together with {@see imagesetinterpolation()}.
  2508. * @link https://php.net/manual/en/image.constants.php#constant.img-bicubic-fixed
  2509. * @since 5.5
  2510. */
  2511. define('IMG_BICUBIC_FIXED', 5);
  2512. /**
  2513. * Used together with {@see imagesetinterpolation()}.
  2514. * @link https://php.net/manual/en/image.constants.php#constant.img-bilinear-fixed
  2515. * @since 5.5
  2516. */
  2517. define('IMG_BILINEAR_FIXED', 3);
  2518. /**
  2519. * Used together with {@see imagesetinterpolation()}.
  2520. * @link https://php.net/manual/en/image.constants.php#constant.img-blackman
  2521. * @since 5.5
  2522. */
  2523. define('IMG_BLACKMAN', 6);
  2524. /**
  2525. * Used together with {@see imagesetinterpolation()}.
  2526. * @link https://php.net/manual/en/image.constants.php#constant.img-box
  2527. * @since 5.5
  2528. */
  2529. define('IMG_BOX', 7);
  2530. /**
  2531. * Used together with {@see imagesetinterpolation()}.
  2532. * @link https://php.net/manual/en/image.constants.php#constant.img-bspline
  2533. * @since 5.5
  2534. */
  2535. define('IMG_BSPLINE', 8);
  2536. /**
  2537. * Used together with {@see imagesetinterpolation()}.
  2538. * @link https://php.net/manual/en/image.constants.php#constant.img-catmullrom
  2539. * @since 5.5
  2540. */
  2541. define('IMG_CATMULLROM', 9);
  2542. /**
  2543. * Used together with {@see imagesetinterpolation()}.
  2544. * @link https://php.net/manual/en/image.constants.php#constant.img-gaussian
  2545. * @since 5.5
  2546. */
  2547. define('IMG_GAUSSIAN', 10);
  2548. /**
  2549. * Used together with {@see imagesetinterpolation()}.
  2550. * @link https://php.net/manual/en/image.constants.php#constant.img-generalized-cubic
  2551. * @since 5.5
  2552. */
  2553. define('IMG_GENERALIZED_CUBIC', 11);
  2554. /**
  2555. * Used together with {@see imagesetinterpolation()}.
  2556. * @link https://php.net/manual/en/image.constants.php#constant.img-hermite
  2557. * @since 5.5
  2558. */
  2559. define('IMG_HERMITE', 12);
  2560. /**
  2561. * Used together with {@see imagesetinterpolation()}.
  2562. * @link https://php.net/manual/en/image.constants.php#constant.img-hamming
  2563. * @since 5.5
  2564. */
  2565. define('IMG_HAMMING', 13);
  2566. /**
  2567. * Used together with {@see imagesetinterpolation()}.
  2568. * @link https://php.net/manual/en/image.constants.php#constant.img-hanning
  2569. * @since 5.5
  2570. */
  2571. define('IMG_HANNING', 14);
  2572. /**
  2573. * Used together with {@see imagesetinterpolation()}.
  2574. * @link https://php.net/manual/en/image.constants.php#constant.img-mitchell
  2575. * @since 5.5
  2576. */
  2577. define('IMG_MITCHELL', 15);
  2578. /**
  2579. * Used together with {@see imagesetinterpolation()}.
  2580. * @link https://php.net/manual/en/image.constants.php#constant.img-power
  2581. * @since 5.5
  2582. */
  2583. define('IMG_POWER', 17);
  2584. /**
  2585. * Used together with {@see imagesetinterpolation()}.
  2586. * @link https://php.net/manual/en/image.constants.php#constant.img-quadratic
  2587. * @since 5.5
  2588. */
  2589. define('IMG_QUADRATIC', 18);
  2590. /**
  2591. * Used together with {@see imagesetinterpolation()}.
  2592. * @link https://php.net/manual/en/image.constants.php#constant.img-sinc
  2593. * @since 5.5
  2594. */
  2595. define('IMG_SINC', 19);
  2596. /**
  2597. * Used together with {@see imagesetinterpolation()}.
  2598. * @link https://php.net/manual/en/image.constants.php#constant.img-nearest-neighbour
  2599. * @since 5.5
  2600. */
  2601. define('IMG_NEAREST_NEIGHBOUR', 16);
  2602. /**
  2603. * Used together with {@see imagesetinterpolation()}.
  2604. * @link https://php.net/manual/en/image.constants.php#constant.img-weighted4
  2605. * @since 5.5
  2606. */
  2607. define('IMG_WEIGHTED4', 21);
  2608. /**
  2609. * Used together with {@see imagesetinterpolation()}.
  2610. * @link https://php.net/manual/en/image.constants.php#constant.img-triangle
  2611. * @since 5.5
  2612. */
  2613. define('IMG_TRIANGLE', 20);
  2614. define('IMG_TGA', 128);
  2615. /**
  2616. * Return an image containing the affine tramsformed src image, using an optional clipping area
  2617. * @link https://www.php.net/manual/en/function.imageaffine.php
  2618. * @param resource $image <p>An image resource, returned by one of the image creation functions,
  2619. * such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.</p>
  2620. * @param array $affine <p>Array with keys 0 to 5.</p>
  2621. * @param array $clip [optional] <p>Array with keys "x", "y", "width" and "height".</p>
  2622. * @return resource|bool Return affined image resource on success or FALSE on failure.
  2623. */
  2624. function imageaffine($image, $affine, $clip = null) {}
  2625. /**
  2626. * Concat two matrices (as in doing many ops in one go)
  2627. * @link https://www.php.net/manual/en/function.imageaffinematrixconcat.php
  2628. * @param array $m1 <p>Array with keys 0 to 5.</p>
  2629. * @param array $m2 <p>Array with keys 0 to 5.</p>
  2630. * @return array|bool Array with keys 0 to 5 and float values or <b>FALSE</b> on failure.
  2631. * @since 5.5
  2632. */
  2633. function imageaffinematrixconcat(array $m1, array $m2) {}
  2634. /**
  2635. * Return an image containing the affine tramsformed src image, using an optional clipping area
  2636. * @link https://www.php.net/manual/en/function.imageaffinematrixget.php
  2637. * @param int $type <p> One of <b>IMG_AFFINE_*</b> constants.
  2638. * @param mixed $options [optional]
  2639. * @return array|bool Array with keys 0 to 5 and float values or <b>FALSE</b> on failure.
  2640. * @since 5.5
  2641. */
  2642. function imageaffinematrixget ($type, $options = null) {}
  2643. /**
  2644. * Crop an image using the given coordinates and size, x, y, width and height
  2645. * @link https://www.php.net/manual/en/function.imagecrop.php
  2646. * @param resource $image <p>
  2647. * An image resource, returned by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
  2648. * </p>
  2649. * @param array $rect <p>Array with keys "x", "y", "width" and "height".</p>
  2650. * @return resource|bool Return cropped image resource on success or FALSE on failure.
  2651. * @since 5.5
  2652. */
  2653. function imagecrop ($image, $rect) {}
  2654. /**
  2655. * Crop an image automatically using one of the available modes
  2656. * @link https://www.php.net/manual/en/function.imagecropauto.php
  2657. * @param resource $image <p>
  2658. * An image resource, returned by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
  2659. * </p>
  2660. * @param int $mode [optional] <p>
  2661. * One of <b>IMG_CROP_*</b> constants.
  2662. * </p>
  2663. * @param float $threshold [optional] <p>
  2664. * Used <b>IMG_CROP_THRESHOLD</b> mode.
  2665. * </p>
  2666. * @param int $color [optional]
  2667. * <p>
  2668. * Used in <b>IMG_CROP_THRESHOLD</b> mode.
  2669. * </p>
  2670. * @return resource|bool Return cropped image resource on success or <b>FALSE</b> on failure.
  2671. * @since 5.5
  2672. */
  2673. function imagecropauto ($image, $mode = IMG_CROP_DEFAULT, $threshold = .5, $color = -1) {}
  2674. /**
  2675. * Flips an image using a given mode
  2676. * @link https://www.php.net/manual/en/function.imageflip.php
  2677. * @param resource $image <p>
  2678. * An image resource, returned by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
  2679. * </p>
  2680. * @param int $mode <p>
  2681. * Flip mode, this can be one of the <b>IMG_FLIP_*</b> constants:
  2682. * </p>
  2683. * <table>
  2684. * <thead>
  2685. * <tr>
  2686. * <th>Constant</th>
  2687. * <th>Meaning</th>
  2688. * </tr>
  2689. * </thead>
  2690. * <tr>
  2691. * <td><b>IMG_FLIP_HORIZONTAL</b></td>
  2692. * <td>
  2693. * Flips the image horizontally.
  2694. * </td>
  2695. * </tr>
  2696. * <tr>
  2697. * <td><b>IMG_FLIP_VERTICAL</b></td>
  2698. * <td>
  2699. * Flips the image vertically.
  2700. * </td>
  2701. * </tr>
  2702. * <tr>
  2703. * <td><b>IMG_FLIP_BOTH</b></td>
  2704. * <td>
  2705. * Flips the image both horizontally and vertically.
  2706. * </td>
  2707. * </tr>
  2708. * </tbody>
  2709. * </table>
  2710. * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
  2711. * @since 5.5
  2712. */
  2713. function imageflip ($image, $mode) {}
  2714. /**
  2715. * Converts a palette based image to true color
  2716. * @link https://www.php.net/manual/en/function.imagepalettetotruecolor.php
  2717. * @param resource $image <p>
  2718. * An image resource, returnd by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
  2719. * </p>
  2720. * @return bool Returns <b>TRUE</b> if the convertion was complete, or if the source image already is a true color image, otherwise <b>FALSE</b> is returned.
  2721. * @since 5.5
  2722. */
  2723. function imagepalettetotruecolor ($image) {}
  2724. /**
  2725. * @since 5.5
  2726. * Scale an image using the given new width and height
  2727. * @link https://www.php.net/manual/en/function.imagescale.php
  2728. * @param resource $image <p>
  2729. * An image resource, returnd by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
  2730. * </p>
  2731. * @param int $new_width
  2732. * @param int $new_height [optional]
  2733. * @param int $mode [optional] One of <b>IMG_NEAREST_NEIGHBOUR</b>, <b>IMG_BILINEAR_FIXED</b>, <b>IMG_BICUBIC</b>, <b>IMG_BICUBIC_FIXED</b> or anything else (will use two pass).
  2734. * @return resource|bool Return scaled image resource on success or <b>FALSE</b> on failure.
  2735. */
  2736. function imagescale ($image, $new_width, $new_height = -1, $mode = IMG_BILINEAR_FIXED) {}
  2737. /**
  2738. * Set the interpolation method
  2739. * @link https://www.php.net/manual/en/function.imagesetinterpolation.php
  2740. * @param resource $image <p>
  2741. * An image resource, returned by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
  2742. * </p>
  2743. * @param int $method <p>
  2744. * The interpolation method, which can be one of the following:
  2745. * <ul>
  2746. * <li>
  2747. * IMG_BELL: Bell filter.
  2748. * </li>
  2749. * <li>
  2750. * IMG_BESSEL: Bessel filter.
  2751. * </li>
  2752. * <li>
  2753. * IMG_BICUBIC: Bicubic interpolation.
  2754. * </li>
  2755. * <li>
  2756. * IMG_BICUBIC_FIXED: Fixed point implementation of the bicubic interpolation.
  2757. * </li>
  2758. * <li>
  2759. * IMG_BILINEAR_FIXED: Fixed point implementation of the bilinear interpolation (<em>default (also on image creation)</em>).
  2760. * </li>
  2761. * <li>
  2762. * IMG_BLACKMAN: Blackman window function.
  2763. * </li>
  2764. * <li>
  2765. * IMG_BOX: Box blur filter.
  2766. * </li>
  2767. * <li>
  2768. * IMG_BSPLINE: Spline interpolation.
  2769. * </li>
  2770. * <li>
  2771. * IMG_CATMULLROM: Cubbic Hermite spline interpolation.
  2772. * </li>
  2773. * <li>
  2774. * IMG_GAUSSIAN: Gaussian function.
  2775. * </li>
  2776. * <li>
  2777. * IMG_GENERALIZED_CUBIC: Generalized cubic spline fractal interpolation.
  2778. * </li>
  2779. * <li>
  2780. * IMG_HERMITE: Hermite interpolation.
  2781. * </li>
  2782. * <li>
  2783. * IMG_HAMMING: Hamming filter.
  2784. * </li>
  2785. * <li>
  2786. * IMG_HANNING: Hanning filter.
  2787. * </li>
  2788. * <li>
  2789. * IMG_MITCHELL: Mitchell filter.
  2790. * </li>
  2791. * <li>
  2792. * IMG_POWER: Power interpolation.
  2793. * </li>
  2794. * <li>
  2795. * IMG_QUADRATIC: Inverse quadratic interpolation.
  2796. * </li>
  2797. * <li>
  2798. * IMG_SINC: Sinc function.
  2799. * </li>
  2800. * <li>
  2801. * IMG_NEAREST_NEIGHBOUR: Nearest neighbour interpolation.
  2802. * </li>
  2803. * <li>
  2804. * IMG_WEIGHTED4: Weighting filter.
  2805. * </li>
  2806. * <li>
  2807. * IMG_TRIANGLE: Triangle interpolation.
  2808. * </li>
  2809. * </ul>
  2810. * </p>
  2811. * @return bool Returns TRUE on success or FALSE on failure.
  2812. * @since 5.5
  2813. */
  2814. function imagesetinterpolation ($image, $method = IMG_BILINEAR_FIXED) {}