123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015 |
- <?php
- /**
- * Retrieve information about the currently installed GD library
- * @link https://php.net/manual/en/function.gd-info.php
- * @return array an associative array.
- * </p>
- * <p>
- * <table>
- * Elements of array returned by <b>gd_info</b>
- * <tr valign="top">
- * <td>Attribute</td>
- * <td>Meaning</td>
- * </tr>
- * <tr valign="top">
- * <td>GD Version</td>
- * <td>string value describing the installed
- * libgd version.</td>
- * </tr>
- * <tr valign="top">
- * <td>FreeType Support</td>
- * <td>boolean value. <b>TRUE</b>
- * if FreeType Support is installed.</td>
- * </tr>
- * <tr valign="top">
- * <td>FreeType Linkage</td>
- * <td>string value describing the way in which
- * FreeType was linked. Expected values are: 'with freetype',
- * 'with TTF library', and 'with unknown library'. This element will
- * only be defined if FreeType Support evaluated to
- * <b>TRUE</b>.</td>
- * </tr>
- * <tr valign="top">
- * <td>T1Lib Support</td>
- * <td>boolean value. <b>TRUE</b>
- * if T1Lib support is included.</td>
- * </tr>
- * <tr valign="top">
- * <td>GIF Read Support</td>
- * <td>boolean value. <b>TRUE</b>
- * if support for reading GIF
- * images is included.</td>
- * </tr>
- * <tr valign="top">
- * <td>GIF Create Support</td>
- * <td>boolean value. <b>TRUE</b>
- * if support for creating GIF
- * images is included.</td>
- * </tr>
- * <tr valign="top">
- * <td>JPEG Support</td>
- * <td>boolean value. <b>TRUE</b>
- * if JPEG support is included.</td>
- * </tr>
- * <tr valign="top">
- * <td>PNG Support</td>
- * <td>boolean value. <b>TRUE</b>
- * if PNG support is included.</td>
- * </tr>
- * <tr valign="top">
- * <td>WBMP Support</td>
- * <td>boolean value. <b>TRUE</b>
- * if WBMP support is included.</td>
- * </tr>
- * <tr valign="top">
- * <td>XBM Support</td>
- * <td>boolean value. <b>TRUE</b>
- * if XBM support is included.</td>
- * </tr>
- * <tr valign="top">
- * <td>WebP Support</td>
- * <td>boolean value. <b>TRUE</b>
- * if WebP support is included.</td>
- * </tr>
- * </table>
- * </p>
- * <p>
- * Previous to PHP 5.3.0, the JPEG Support attribute was named
- * JPG Support.
- */
- function gd_info () {}
- /**
- * Draws an arc
- * @link https://php.net/manual/en/function.imagearc.php
- * @param resource $image
- * @param int $cx <p>
- * x-coordinate of the center.
- * </p>
- * @param int $cy <p>
- * y-coordinate of the center.
- * </p>
- * @param int $width <p>
- * The arc width.
- * </p>
- * @param int $height <p>
- * The arc height.
- * </p>
- * @param int $start <p>
- * The arc start angle, in degrees.
- * </p>
- * @param int $end <p>
- * The arc end angle, in degrees.
- * 0° is located at the three-o'clock position, and the arc is drawn
- * clockwise.
- * </p>
- * @param int $color <p>
- * A color identifier created with
- * <b>imagecolorallocate</b>.
- * </p>
- * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
- */
- function imagearc ($image, $cx, $cy, $width, $height, $start, $end, $color) {}
- /**
- * Draw an ellipse
- * @link https://php.net/manual/en/function.imageellipse.php
- * @param resource $image
- * @param int $cx <p>
- * x-coordinate of the center.
- * </p>
- * @param int $cy <p>
- * y-coordinate of the center.
- * </p>
- * @param int $width <p>
- * The ellipse width.
- * </p>
- * @param int $height <p>
- * The ellipse height.
- * </p>
- * @param int $color <p>
- * The color of the ellipse. A color identifier created with
- * <b>imagecolorallocate</b>.
- * </p>
- * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
- */
- function imageellipse ($image, $cx, $cy, $width, $height, $color) {}
- /**
- * Draw a character horizontally
- * @link https://php.net/manual/en/function.imagechar.php
- * @param resource $image
- * @param int $font
- * @param int $x <p>
- * x-coordinate of the start.
- * </p>
- * @param int $y <p>
- * y-coordinate of the start.
- * </p>
- * @param string $c <p>
- * The character to draw.
- * </p>
- * @param int $color <p>
- * A color identifier created with
- * <b>imagecolorallocate</b>.
- * </p>
- * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
- */
- function imagechar ($image, $font, $x, $y, $c, $color) {}
- /**
- * Draw a character vertically
- * @link https://php.net/manual/en/function.imagecharup.php
- * @param resource $image
- * @param int $font
- * @param int $x <p>
- * x-coordinate of the start.
- * </p>
- * @param int $y <p>
- * y-coordinate of the start.
- * </p>
- * @param string $c <p>
- * The character to draw.
- * </p>
- * @param int $color <p>
- * A color identifier created with
- * <b>imagecolorallocate</b>.
- * </p>
- * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
- */
- function imagecharup ($image, $font, $x, $y, $c, $color) {}
- /**
- * Get the index of the color of a pixel
- * @link https://php.net/manual/en/function.imagecolorat.php
- * @param resource $image
- * @param int $x <p>
- * x-coordinate of the point.
- * </p>
- * @param int $y <p>
- * y-coordinate of the point.
- * </p>
- * @return int|false the index of the color or <b>FALSE</b> on failure
- */
- function imagecolorat ($image, $x, $y) {}
- /**
- * Allocate a color for an image
- * @link https://php.net/manual/en/function.imagecolorallocate.php
- * @param resource $image
- * @param int $red <p>Value of red component.</p>
- * @param int $green <p>Value of green component.</p>
- * @param int $blue <p>Value of blue component.</p>
- * @return int|false A color identifier or <b>FALSE</b> if the allocation failed.
- */
- function imagecolorallocate ($image, $red, $green, $blue) {}
- /**
- * Copy the palette from one image to another
- * @link https://php.net/manual/en/function.imagepalettecopy.php
- * @param resource $destination <p>
- * The destination image resource.
- * </p>
- * @param resource $source <p>
- * The source image resource.
- * </p>
- * @return void No value is returned.
- */
- function imagepalettecopy ($destination, $source) {}
- /**
- * Create a new image from the image stream in the string
- * @link https://php.net/manual/en/function.imagecreatefromstring.php
- * @param string $image <p>
- * A string containing the image data.
- * </p>
- * @return resource|false An image resource will be returned on success. <b>FALSE</b> is returned if
- * the image type is unsupported, the data is not in a recognised format,
- * or the image is corrupt and cannot be loaded.
- */
- function imagecreatefromstring ($image) {}
- /**
- * Get the index of the closest color to the specified color
- * @link https://php.net/manual/en/function.imagecolorclosest.php
- * @param resource $image
- * @param int $red <p>Value of red component.</p>
- * @param int $green <p>Value of green component.</p>
- * @param int $blue <p>Value of blue component.</p>
- * @return int|false the index of the closest color, in the palette of the image, to
- * the specified one or <b>FALSE</b> on failure
- */
- function imagecolorclosest ($image, $red, $green, $blue) {}
- /**
- * Get the index of the color which has the hue, white and blackness
- * @link https://php.net/manual/en/function.imagecolorclosesthwb.php
- * @param resource $image
- * @param int $red <p>Value of red component.</p>
- * @param int $green <p>Value of green component.</p>
- * @param int $blue <p>Value of blue component.</p>
- * @return int|false an integer with the index of the color which has
- * the hue, white and blackness nearest the given color or <b>FALSE</b> on failure
- */
- function imagecolorclosesthwb ($image, $red, $green, $blue) {}
- /**
- * De-allocate a color for an image
- * @link https://php.net/manual/en/function.imagecolordeallocate.php
- * @param resource $image
- * @param int $color <p>
- * The color identifier.
- * </p>
- * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
- */
- function imagecolordeallocate ($image, $color) {}
- /**
- * Get the index of the specified color or its closest possible alternative
- * @link https://php.net/manual/en/function.imagecolorresolve.php
- * @param resource $image
- * @param int $red <p>Value of red component.</p>
- * @param int $green <p>Value of green component.</p>
- * @param int $blue <p>Value of blue component.</p>
- * @return int|false a color index or <b>FALSE</b> on failure
- */
- function imagecolorresolve ($image, $red, $green, $blue) {}
- /**
- * Get the index of the specified color
- * @link https://php.net/manual/en/function.imagecolorexact.php
- * @param resource $image
- * @param int $red <p>Value of red component.</p>
- * @param int $green <p>Value of green component.</p>
- * @param int $blue <p>Value of blue component.</p>
- * @return int|false the index of the specified color in the palette, -1 if the
- * color does not exist, or <b>FALSE</b> on failure
- */
- function imagecolorexact ($image, $red, $green, $blue) {}
- /**
- * Set the color for the specified palette index
- * @link https://php.net/manual/en/function.imagecolorset.php
- * @param resource $image
- * @param int $index <p>
- * An index in the palette.
- * </p>
- * @param int $red <p>Value of red component.</p>
- * @param int $green <p>Value of green component.</p>
- * @param int $blue <p>Value of blue component.</p>
- * @param int $alpha [optional] <p>
- * Value of alpha component.
- * </p>
- * @return void No value is returned.
- */
- function imagecolorset ($image, $index, $red, $green, $blue, $alpha = 0) {}
- /**
- * Define a color as transparent
- * @link https://php.net/manual/en/function.imagecolortransparent.php
- * @param resource $image
- * @param int $color [optional] <p>
- * A color identifier created with
- * <b>imagecolorallocate</b>.
- * </p>
- * @return int|false The identifier of the new (or current, if none is specified)
- * transparent color is returned. If <i>color</i>
- * is not specified, and the image has no transparent color, the
- * returned identifier will be -1. If an error occurs, <b>FALSE</b> is returned.
- */
- function imagecolortransparent ($image, $color = null) {}
- /**
- * Find out the number of colors in an image's palette
- * @link https://php.net/manual/en/function.imagecolorstotal.php
- * @param resource $image <p>
- * An image resource, returned by one of the image creation functions, such
- * as <b>imagecreatefromgif</b>.
- * </p>
- * @return int|false the number of colors in the specified image's palette, 0 for
- * truecolor images, or <b>FALSE</b> on failure
- */
- function imagecolorstotal ($image) {}
- /**
- * Get the colors for an index
- * @link https://php.net/manual/en/function.imagecolorsforindex.php
- * @param resource $image
- * @param int $index <p>
- * The color index.
- * </p>
- * @return array|false an associative array with red, green, blue and alpha keys that
- * contain the appropriate values for the specified color index or <b>FALSE</b> on failure
- */
- function imagecolorsforindex ($image, $index) {}
- /**
- * Copy part of an image
- * @link https://php.net/manual/en/function.imagecopy.php
- * @param resource $dst_im <p>
- * Destination image link resource.
- * </p>
- * @param resource $src_im <p>
- * Source image link resource.
- * </p>
- * @param int $dst_x <p>
- * x-coordinate of destination point.
- * </p>
- * @param int $dst_y <p>
- * y-coordinate of destination point.
- * </p>
- * @param int $src_x <p>
- * x-coordinate of source point.
- * </p>
- * @param int $src_y <p>
- * y-coordinate of source point.
- * </p>
- * @param int $src_w <p>
- * Source width.
- * </p>
- * @param int $src_h <p>
- * Source height.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagecopy ($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h) {}
- /**
- * Copy and merge part of an image
- * @link https://php.net/manual/en/function.imagecopymerge.php
- * @param resource $dst_im <p>
- * Destination image link resource.
- * </p>
- * @param resource $src_im <p>
- * Source image link resource.
- * </p>
- * @param int $dst_x <p>
- * x-coordinate of destination point.
- * </p>
- * @param int $dst_y <p>
- * y-coordinate of destination point.
- * </p>
- * @param int $src_x <p>
- * x-coordinate of source point.
- * </p>
- * @param int $src_y <p>
- * y-coordinate of source point.
- * </p>
- * @param int $src_w <p>
- * Source width.
- * </p>
- * @param int $src_h <p>
- * Source height.
- * </p>
- * @param int $pct <p>
- * The two images will be merged according to pct
- * which can range from 0 to 100. When pct = 0,
- * no action is taken, when 100 this function behaves identically
- * to imagecopy for pallete images, while it
- * implements alpha transparency for true colour images.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagecopymerge ($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct) {}
- /**
- * Copy and merge part of an image with gray scale
- * @link https://php.net/manual/en/function.imagecopymergegray.php
- * @param resource $dst_im <p>
- * Destination image link resource.
- * </p>
- * @param resource $src_im <p>
- * Source image link resource.
- * </p>
- * @param int $dst_x <p>
- * x-coordinate of destination point.
- * </p>
- * @param int $dst_y <p>
- * y-coordinate of destination point.
- * </p>
- * @param int $src_x <p>
- * x-coordinate of source point.
- * </p>
- * @param int $src_y <p>
- * y-coordinate of source point.
- * </p>
- * @param int $src_w <p>
- * Source width.
- * </p>
- * @param int $src_h <p>
- * Source height.
- * </p>
- * @param int $pct <p>
- * The src_im will be changed to grayscale according
- * to pct where 0 is fully grayscale and 100 is
- * unchanged. When pct = 100 this function behaves
- * identically to imagecopy for pallete images, while
- * it implements alpha transparency for true colour images.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagecopymergegray ($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct) {}
- /**
- * Copy and resize part of an image
- * @link https://php.net/manual/en/function.imagecopyresized.php
- * @param resource $dst_image
- * @param resource $src_image
- * @param int $dst_x <p>
- * x-coordinate of destination point.
- * </p>
- * @param int $dst_y <p>
- * y-coordinate of destination point.
- * </p>
- * @param int $src_x <p>
- * x-coordinate of source point.
- * </p>
- * @param int $src_y <p>
- * y-coordinate of source point.
- * </p>
- * @param int $dst_w <p>
- * Destination width.
- * </p>
- * @param int $dst_h <p>
- * Destination height.
- * </p>
- * @param int $src_w <p>
- * Source width.
- * </p>
- * @param int $src_h <p>
- * Source height.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagecopyresized ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) {}
- /**
- * Create a new palette based image
- * @link https://php.net/manual/en/function.imagecreate.php
- * @param int $width <p>
- * The image width.
- * </p>
- * @param int $height <p>
- * The image height.
- * </p>
- * @return resource|false an image resource identifier on success, false on errors.
- */
- function imagecreate ($width, $height) {}
- /**
- * Create a new true color image
- * @link https://php.net/manual/en/function.imagecreatetruecolor.php
- * @param int $width <p>
- * Image width.
- * </p>
- * @param int $height <p>
- * Image height.
- * </p>
- * @return resource|false an image resource identifier on success, false on errors.
- */
- function imagecreatetruecolor ($width, $height) {}
- /**
- * Finds whether an image is a truecolor image
- * @link https://php.net/manual/en/function.imageistruecolor.php
- * @param resource $image
- * @return bool true if the image is truecolor, false
- * otherwise.
- */
- function imageistruecolor ($image) {}
- /**
- * Convert a true color image to a palette image
- * @link https://php.net/manual/en/function.imagetruecolortopalette.php
- * @param resource $image
- * @param bool $dither <p>
- * Indicates if the image should be dithered - if it is true then
- * dithering will be used which will result in a more speckled image but
- * with better color approximation.
- * </p>
- * @param int $ncolors <p>
- * Sets the maximum number of colors that should be retained in the palette.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagetruecolortopalette ($image, $dither, $ncolors) {}
- /**
- * Set the thickness for line drawing
- * @link https://php.net/manual/en/function.imagesetthickness.php
- * @param resource $image
- * @param int $thickness <p>
- * Thickness, in pixels.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagesetthickness ($image, $thickness) {}
- /**
- * Draw a partial arc and fill it
- * @link https://php.net/manual/en/function.imagefilledarc.php
- * @param resource $image
- * @param int $cx <p>
- * x-coordinate of the center.
- * </p>
- * @param int $cy <p>
- * y-coordinate of the center.
- * </p>
- * @param int $width <p>
- * The arc width.
- * </p>
- * @param int $height <p>
- * The arc height.
- * </p>
- * @param int $start <p>
- * The arc start angle, in degrees.
- * </p>
- * @param int $end <p>
- * The arc end angle, in degrees.
- * 0° is located at the three-o'clock position, and the arc is drawn
- * clockwise.
- * </p>
- * @param int $color <p>
- * A color identifier created with
- * imagecolorallocate.
- * </p>
- * @param int $style <p>
- * A bitwise OR of the following possibilities:
- * IMG_ARC_PIE
- * @return bool true on success or false on failure.
- */
- function imagefilledarc ($image, $cx, $cy, $width, $height, $start, $end, $color, $style) {}
- /**
- * Draw a filled ellipse
- * @link https://php.net/manual/en/function.imagefilledellipse.php
- * @param resource $image
- * @param int $cx <p>
- * x-coordinate of the center.
- * </p>
- * @param int $cy <p>
- * y-coordinate of the center.
- * </p>
- * @param int $width <p>
- * The ellipse width.
- * </p>
- * @param int $height <p>
- * The ellipse height.
- * </p>
- * @param int $color <p>
- * The fill color. A color identifier created with
- * imagecolorallocate.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagefilledellipse ($image, $cx, $cy, $width, $height, $color) {}
- /**
- * Set the blending mode for an image
- * @link https://php.net/manual/en/function.imagealphablending.php
- * @param resource $image
- * @param bool $blendmode <p>
- * Whether to enable the blending mode or not. On true color images
- * the default value is true otherwise the default value is false
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagealphablending ($image, $blendmode) {}
- /**
- * Set the flag to save full alpha channel information (as opposed to single-color transparency) when saving PNG images
- * @link https://php.net/manual/en/function.imagesavealpha.php
- * @param resource $image
- * @param bool $saveflag <p>
- * Whether to save the alpha channel or not. Default to false.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagesavealpha ($image, $saveflag) {}
- /**
- * Allocate a color for an image
- * @link https://php.net/manual/en/function.imagecolorallocatealpha.php
- * @param resource $image
- * @param int $red <p>
- * Value of red component.
- * </p>
- * @param int $green <p>
- * Value of green component.
- * </p>
- * @param int $blue <p>
- * Value of blue component.
- * </p>
- * @param int $alpha <p>
- * A value between 0 and 127.
- * 0 indicates completely opaque while
- * 127 indicates completely transparent.
- * </p>
- * @return int|false A color identifier or false if the allocation failed.
- */
- function imagecolorallocatealpha ($image, $red, $green, $blue, $alpha) {}
- /**
- * Get the index of the specified color + alpha or its closest possible alternative
- * @link https://php.net/manual/en/function.imagecolorresolvealpha.php
- * @param resource $image
- * @param int $red <p>
- * Value of red component.
- * </p>
- * @param int $green <p>
- * Value of green component.
- * </p>
- * @param int $blue <p>
- * Value of blue component.
- * </p>
- * @param int $alpha <p>
- * A value between 0 and 127.
- * 0 indicates completely opaque while
- * 127 indicates completely transparent.
- * </p>
- * @return int|false a color index or <b>FALSE</b> on failure
- */
- function imagecolorresolvealpha ($image, $red, $green, $blue, $alpha) {}
- /**
- * Get the index of the closest color to the specified color + alpha
- * @link https://php.net/manual/en/function.imagecolorclosestalpha.php
- * @param resource $image
- * @param int $red <p>
- * Value of red component.
- * </p>
- * @param int $green <p>
- * Value of green component.
- * </p>
- * @param int $blue <p>
- * Value of blue component.
- * </p>
- * @param int $alpha <p>
- * A value between 0 and 127.
- * 0 indicates completely opaque while
- * 127 indicates completely transparent.
- * </p>
- * @return int|false the index of the closest color in the palette or
- * <b>FALSE</b> on failure
- */
- function imagecolorclosestalpha ($image, $red, $green, $blue, $alpha) {}
- /**
- * Get the index of the specified color + alpha
- * @link https://php.net/manual/en/function.imagecolorexactalpha.php
- * @param resource $image
- * @param int $red <p>
- * Value of red component.
- * </p>
- * @param int $green <p>
- * Value of green component.
- * </p>
- * @param int $blue <p>
- * Value of blue component.
- * </p>
- * @param int $alpha <p>
- * A value between 0 and 127.
- * 0 indicates completely opaque while
- * 127 indicates completely transparent.
- * </p>
- * @return int|false the index of the specified color+alpha in the palette of the
- * image, -1 if the color does not exist in the image's palette, or <b>FALSE</b>
- * on failure
- */
- function imagecolorexactalpha ($image, $red, $green, $blue, $alpha) {}
- /**
- * Copy and resize part of an image with resampling
- * @link https://php.net/manual/en/function.imagecopyresampled.php
- * @param resource $dst_image
- * @param resource $src_image
- * @param int $dst_x <p>
- * x-coordinate of destination point.
- * </p>
- * @param int $dst_y <p>
- * y-coordinate of destination point.
- * </p>
- * @param int $src_x <p>
- * x-coordinate of source point.
- * </p>
- * @param int $src_y <p>
- * y-coordinate of source point.
- * </p>
- * @param int $dst_w <p>
- * Destination width.
- * </p>
- * @param int $dst_h <p>
- * Destination height.
- * </p>
- * @param int $src_w <p>
- * Source width.
- * </p>
- * @param int $src_h <p>
- * Source height.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagecopyresampled ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) {}
- /**
- * Rotate an image with a given angle
- * @link https://php.net/manual/en/function.imagerotate.php
- * @param resource $image
- * @param float $angle <p>
- * Rotation angle, in degrees.
- * </p>
- * @param int $bgd_color <p>
- * Specifies the color of the uncovered zone after the rotation
- * </p>
- * @param int $ignore_transparent [optional] <p>
- * If set and non-zero, transparent colors are ignored (otherwise kept).
- * </p>
- * @return resource|false the rotated image or <b>FALSE</b> on failure
- */
- function imagerotate ($image, $angle, $bgd_color, $ignore_transparent = null) {}
- /**
- * Should antialias functions be used or not. <br/>
- * Before 7.2.0 it's only available if PHP iscompiled with the bundled version of the GD library.
- * @link https://php.net/manual/en/function.imageantialias.php
- * @param resource $image
- * @param bool $enabled <p>
- * Whether to enable antialiasing or not.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imageantialias ($image, $enabled) {}
- /**
- * Set the tile image for filling
- * @link https://php.net/manual/en/function.imagesettile.php
- * @param resource $image
- * @param resource $tile <p>
- * The image resource to be used as a tile.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagesettile ($image, $tile) {}
- /**
- * Set the brush image for line drawing
- * @link https://php.net/manual/en/function.imagesetbrush.php
- * @param resource $image
- * @param resource $brush <p>
- * An image resource.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagesetbrush ($image, $brush) {}
- /**
- * Set the style for line drawing
- * @link https://php.net/manual/en/function.imagesetstyle.php
- * @param resource $image
- * @param array $style <p>
- * An array of pixel colors. You can use the
- * IMG_COLOR_TRANSPARENT constant to add a
- * transparent pixel.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagesetstyle ($image, array $style) {}
- /**
- * Create a new image from file or URL
- * @link https://php.net/manual/en/function.imagecreatefrompng.php
- * @param string $filename <p>
- * Path to the PNG image.
- * </p>
- * @return resource|false an image resource identifier on success, false on errors.
- */
- function imagecreatefrompng ($filename) {}
- /**
- * Create a new image from file or URL
- * @link https://php.net/manual/en/function.imagecreatefromgif.php
- * @param string $filename <p>
- * Path to the GIF image.
- * </p>
- * @return resource|false an image resource identifier on success, false on errors.
- */
- function imagecreatefromgif ($filename) {}
- /**
- * Create a new image from file or URL
- * @link https://php.net/manual/en/function.imagecreatefromjpeg.php
- * @param string $filename <p>
- * Path to the JPEG image.
- * </p>
- * @return resource|false an image resource identifier on success, false on errors.
- */
- function imagecreatefromjpeg ($filename) {}
- /**
- * Create a new image from file or URL
- * @link https://php.net/manual/en/function.imagecreatefromwbmp.php
- * @param string $filename <p>
- * Path to the WBMP image.
- * </p>
- * @return resource|false an image resource identifier on success, false on errors.
- */
- function imagecreatefromwbmp ($filename) {}
- /**
- * Create a new image from file or URL
- * @link https://php.net/manual/en/function.imagecreatefromwebp.php
- * @param string $filename <p>
- * Path to the WebP image.
- * </p>
- * @return resource|false an image resource identifier on success, false on errors.
- * @since 5.4
- */
- function imagecreatefromwebp ($filename) {}
- /**
- * Create a new image from file or URL
- * @link https://php.net/manual/en/function.imagecreatefromxbm.php
- * @param string $filename <p>
- * Path to the XBM image.
- * </p>
- * @return resource|false an image resource identifier on success, false on errors.
- */
- function imagecreatefromxbm ($filename) {}
- /**
- * Create a new image from file or URL
- * @link https://php.net/manual/en/function.imagecreatefromxpm.php
- * @param string $filename <p>
- * Path to the XPM image.
- * </p>
- * @return resource|false an image resource identifier on success, false on errors.
- */
- function imagecreatefromxpm ($filename) {}
- /**
- * Create a new image from GD file or URL
- * @link https://php.net/manual/en/function.imagecreatefromgd.php
- * @param string $filename <p>
- * Path to the GD file.
- * </p>
- * @return resource|false an image resource identifier on success, false on errors.
- */
- function imagecreatefromgd ($filename) {}
- /**
- * Create a new image from GD2 file or URL
- * @link https://php.net/manual/en/function.imagecreatefromgd2.php
- * @param string $filename <p>
- * Path to the GD2 image.
- * </p>
- * @return resource|false an image resource identifier on success, false on errors.
- */
- function imagecreatefromgd2 ($filename) {}
- /**
- * Create a new image from a given part of GD2 file or URL
- * @link https://php.net/manual/en/function.imagecreatefromgd2part.php
- * @param string $filename <p>
- * Path to the GD2 image.
- * </p>
- * @param int $srcX <p>
- * x-coordinate of source point.
- * </p>
- * @param int $srcY <p>
- * y-coordinate of source point.
- * </p>
- * @param int $width <p>
- * Source width.
- * </p>
- * @param int $height <p>
- * Source height.
- * </p>
- * @return resource|false an image resource identifier on success, false on errors.
- */
- function imagecreatefromgd2part ($filename, $srcX, $srcY, $width, $height) {}
- /**
- * Output a PNG image to either the browser or a file
- * @link https://php.net/manual/en/function.imagepng.php
- * @param resource $image
- * @param string $filename [optional] <p>
- * The path to save the file to. If not set or &null;, the raw image stream
- * will be outputted directly.
- * </p>
- * <p>
- * &null; is invalid if the quality and
- * filters arguments are not used.
- * </p>
- * @param int $quality [optional] <p>
- * Compression level: from 0 (no compression) to 9.
- * </p>
- * @param int $filters [optional] <p>
- * Allows reducing the PNG file size. It is a bitmask field which may be
- * set to any combination of the PNG_FILTER_XXX
- * constants. PNG_NO_FILTER or
- * PNG_ALL_FILTERS may also be used to respectively
- * disable or activate all filters.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagepng ($image, $filename = null, $quality = null, $filters = null) {}
- /**
- * Output a WebP image to browser or file
- * @link https://php.net/manual/en/function.imagewebp.php
- * @param resource $image
- * @param string $to [optional] <p>
- * The path to save the file to. If not set or &null;, the raw image stream
- * will be outputted directly.
- * </p>
- * @param int $quality [optional] <p>
- * quality ranges from 0 (worst quality, smaller file) to 100 (best quality, biggest file).
- * </p>
- * @return bool true on success or false on failure.
- * @since 5.4
- */
- function imagewebp ($image, $to = null, $quality = 80) {}
- /**
- * Output image to browser or file
- * @link https://php.net/manual/en/function.imagegif.php
- * @param resource $image
- * @param string $filename [optional] <p>
- * The path to save the file to. If not set or &null;, the raw image stream
- * will be outputted directly.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagegif ($image, $filename = null) {}
- /**
- * Output image to browser or file
- * @link https://php.net/manual/en/function.imagejpeg.php
- * @param resource $image
- * @param string $filename [optional] <p>
- * The path to save the file to. If not set or &null;, the raw image stream
- * will be outputted directly.
- * </p>
- * <p>
- * To skip this argument in order to provide the
- * quality parameter, use &null;.
- * </p>
- * @param int $quality [optional] <p>
- * quality is optional, and ranges from 0 (worst
- * quality, smaller file) to 100 (best quality, biggest file). The
- * default is the default IJG quality value (about 75).
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagejpeg ($image, $filename = null, $quality = null) {}
- /**
- * Output image to browser or file
- * @link https://php.net/manual/en/function.imagewbmp.php
- * @param resource $image
- * @param string $filename [optional] <p>
- * The path to save the file to. If not set or &null;, the raw image stream
- * will be outputted directly.
- * </p>
- * @param int $foreground [optional] <p>
- * You can set the foreground color with this parameter by setting an
- * identifier obtained from imagecolorallocate.
- * The default foreground color is black.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagewbmp ($image, $filename = null, $foreground = null) {}
- /**
- * Output GD image to browser or file. <br/>
- * Since 7.2.0 allows to output truecolor images.
- * @link https://php.net/manual/en/function.imagegd.php
- * @param resource $image
- * @param string $filename [optional] <p>
- * The path to save the file to. If not set or &null;, the raw image stream
- * will be outputted directly.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagegd ($image, $filename = null) {}
- /**
- * Output GD2 image to browser or file
- * @link https://php.net/manual/en/function.imagegd2.php
- * @param resource $image
- * @param string $filename [optional] <p>
- * The path to save the file to. If not set or &null;, the raw image stream
- * will be outputted directly.
- * </p>
- * @param int $chunk_size [optional] <p>
- * Chunk size.
- * </p>
- * @param int $type [optional] <p>
- * Either IMG_GD2_RAW or
- * IMG_GD2_COMPRESSED. Default is
- * IMG_GD2_RAW.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagegd2 ($image, $filename = null, $chunk_size = null, $type = null) {}
- /**
- * Destroy an image
- * @link https://php.net/manual/en/function.imagedestroy.php
- * @param resource $image
- * @return bool true on success or false on failure.
- */
- function imagedestroy ($image) {}
- /**
- * Apply a gamma correction to a GD image
- * @link https://php.net/manual/en/function.imagegammacorrect.php
- * @param resource $image
- * @param float $inputgamma <p>
- * The input gamma.
- * </p>
- * @param float $outputgamma <p>
- * The output gamma.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagegammacorrect ($image, $inputgamma, $outputgamma) {}
- /**
- * Flood fill
- * @link https://php.net/manual/en/function.imagefill.php
- * @param resource $image
- * @param int $x <p>
- * x-coordinate of start point.
- * </p>
- * @param int $y <p>
- * y-coordinate of start point.
- * </p>
- * @param int $color <p>
- * The fill color. A color identifier created with
- * imagecolorallocate.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagefill ($image, $x, $y, $color) {}
- /**
- * Draw a filled polygon
- * @link https://php.net/manual/en/function.imagefilledpolygon.php
- * @param resource $image
- * @param array $points <p>
- * An array containing the x and y
- * coordinates of the polygons vertices consecutively.
- * </p>
- * @param int $num_points [optional] <p>
- * Total number of vertices, which must be at least 3.
- * </p>
- * @param int $color <p>
- * A color identifier created with
- * imagecolorallocate.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagefilledpolygon ($image, array $points, $num_points, $color) {}
- /**
- * Draw a filled rectangle
- * @link https://php.net/manual/en/function.imagefilledrectangle.php
- * @param resource $image
- * @param int $x1 <p>
- * x-coordinate for point 1.
- * </p>
- * @param int $y1 <p>
- * y-coordinate for point 1.
- * </p>
- * @param int $x2 <p>
- * x-coordinate for point 2.
- * </p>
- * @param int $y2 <p>
- * y-coordinate for point 2.
- * </p>
- * @param int $color <p>
- * The fill color. A color identifier created with
- * imagecolorallocate.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagefilledrectangle ($image, $x1, $y1, $x2, $y2, $color) {}
- /**
- * Flood fill to specific color
- * @link https://php.net/manual/en/function.imagefilltoborder.php
- * @param resource $image
- * @param int $x <p>
- * x-coordinate of start.
- * </p>
- * @param int $y <p>
- * y-coordinate of start.
- * </p>
- * @param int $border <p>
- * The border color. A color identifier created with
- * imagecolorallocate.
- * </p>
- * @param int $color <p>
- * The fill color. A color identifier created with
- * imagecolorallocate.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagefilltoborder ($image, $x, $y, $border, $color) {}
- /**
- * Get font width
- * @link https://php.net/manual/en/function.imagefontwidth.php
- * @param int $font
- * @return int the width of the pixel
- */
- function imagefontwidth ($font) {}
- /**
- * Get font height
- * @link https://php.net/manual/en/function.imagefontheight.php
- * @param int $font
- * @return int the height of the pixel.
- */
- function imagefontheight ($font) {}
- /**
- * Enable or disable interlace
- * @link https://php.net/manual/en/function.imageinterlace.php
- * @param resource $image
- * @param int $interlace [optional] <p>
- * If non-zero, the image will be interlaced, else the interlace bit is
- * turned off.
- * </p>
- * @return int|false 1 if the interlace bit is set for the image,
- * 0 if it is not, or <b>FALSE</b> on failure
- */
- function imageinterlace ($image, $interlace = null) {}
- /**
- * Draw a line
- * @link https://php.net/manual/en/function.imageline.php
- * @param resource $image
- * @param int $x1 <p>
- * x-coordinate for first point.
- * </p>
- * @param int $y1 <p>
- * y-coordinate for first point.
- * </p>
- * @param int $x2 <p>
- * x-coordinate for second point.
- * </p>
- * @param int $y2 <p>
- * y-coordinate for second point.
- * </p>
- * @param int $color <p>
- * The line color. A color identifier created with
- * imagecolorallocate.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imageline ($image, $x1, $y1, $x2, $y2, $color) {}
- /**
- * Load a new font
- * @link https://php.net/manual/en/function.imageloadfont.php
- * @param string $file <p>
- * The font file format is currently binary and architecture
- * dependent. This means you should generate the font files on the
- * same type of CPU as the machine you are running PHP on.
- * </p>
- * <p>
- * <table>
- * Font file format
- * <tr valign="top">
- * <td>byte position</td>
- * <td>C data type</td>
- * <td>description</td>
- * </tr>
- * <tr valign="top">
- * <td>byte 0-3</td>
- * <td>int</td>
- * <td>number of characters in the font</td>
- * </tr>
- * <tr valign="top">
- * <td>byte 4-7</td>
- * <td>int</td>
- * <td>
- * value of first character in the font (often 32 for space)
- * </td>
- * </tr>
- * <tr valign="top">
- * <td>byte 8-11</td>
- * <td>int</td>
- * <td>pixel width of each character</td>
- * </tr>
- * <tr valign="top">
- * <td>byte 12-15</td>
- * <td>int</td>
- * <td>pixel height of each character</td>
- * </tr>
- * <tr valign="top">
- * <td>byte 16-</td>
- * <td>char</td>
- * <td>
- * array with character data, one byte per pixel in each
- * character, for a total of (nchars*width*height) bytes.
- * </td>
- * </tr>
- * </table>
- * </p>
- * @return int|false The font identifier which is always bigger than 5 to avoid conflicts with
- * built-in fonts or false on errors.
- */
- function imageloadfont ($file) {}
- /**
- * Draws a polygon
- * @link https://php.net/manual/en/function.imagepolygon.php
- * @param resource $image
- * @param array $points <p>
- * An array containing the polygon's vertices, e.g.:
- * <tr valign="top">
- * <td>points[0]</td>
- * <td>= x0</td>
- * </tr>
- * <tr valign="top">
- * <td>points[1]</td>
- * <td>= y0</td>
- * </tr>
- * <tr valign="top">
- * <td>points[2]</td>
- * <td>= x1</td>
- * </tr>
- * <tr valign="top">
- * <td>points[3]</td>
- * <td>= y1</td>
- * </tr>
- * </p>
- * @param int $num_points [optional] <p>
- * Total number of points (vertices).
- * </p>
- * @param int $color <p>
- * A color identifier created with
- * imagecolorallocate.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagepolygon ($image, array $points, $num_points, $color) {}
- /**
- * Draw a rectangle
- * @link https://php.net/manual/en/function.imagerectangle.php
- * @param resource $image
- * @param int $x1 <p>
- * Upper left x coordinate.
- * </p>
- * @param int $y1 <p>
- * Upper left y coordinate
- * 0, 0 is the top left corner of the image.
- * </p>
- * @param int $x2 <p>
- * Bottom right x coordinate.
- * </p>
- * @param int $y2 <p>
- * Bottom right y coordinate.
- * </p>
- * @param int $color <p>
- * A color identifier created with
- * imagecolorallocate.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagerectangle ($image, $x1, $y1, $x2, $y2, $color) {}
- /**
- * Set a single pixel
- * @link https://php.net/manual/en/function.imagesetpixel.php
- * @param resource $image
- * @param int $x <p>
- * x-coordinate.
- * </p>
- * @param int $y <p>
- * y-coordinate.
- * </p>
- * @param int $color <p>
- * A color identifier created with
- * imagecolorallocate.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagesetpixel ($image, $x, $y, $color) {}
- /**
- * Draw a string horizontally
- * @link https://php.net/manual/en/function.imagestring.php
- * @param resource $image
- * @param int $font
- * @param int $x <p>
- * x-coordinate of the upper left corner.
- * </p>
- * @param int $y <p>
- * y-coordinate of the upper left corner.
- * </p>
- * @param string $string <p>
- * The string to be written.
- * </p>
- * @param int $color <p>
- * A color identifier created with
- * imagecolorallocate.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagestring ($image, $font, $x, $y, $string, $color) {}
- /**
- * Draw a string vertically
- * @link https://php.net/manual/en/function.imagestringup.php
- * @param resource $image
- * @param int $font
- * @param int $x <p>
- * x-coordinate of the upper left corner.
- * </p>
- * @param int $y <p>
- * y-coordinate of the upper left corner.
- * </p>
- * @param string $string <p>
- * The string to be written.
- * </p>
- * @param int $color <p>
- * A color identifier created with
- * imagecolorallocate.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagestringup ($image, $font, $x, $y, $string, $color) {}
- /**
- * Get image width
- * @link https://php.net/manual/en/function.imagesx.php
- * @param resource $image
- * @return int|false Return the width of the image or false on
- * errors.
- */
- function imagesx ($image) {}
- /**
- * Get image height
- * @link https://php.net/manual/en/function.imagesy.php
- * @param resource $image
- * @return int|false Return the height of the image or false on
- * errors.
- */
- function imagesy ($image) {}
- /**
- * Draw a dashed line
- * @link https://php.net/manual/en/function.imagedashedline.php
- * @param resource $image
- * @param int $x1 <p>
- * Upper left x coordinate.
- * </p>
- * @param int $y1 <p>
- * Upper left y coordinate 0, 0 is the top left corner of the image.
- * </p>
- * @param int $x2 <p>
- * Bottom right x coordinate.
- * </p>
- * @param int $y2 <p>
- * Bottom right y coordinate.
- * </p>
- * @param int $color <p>
- * The fill color. A color identifier created with
- * imagecolorallocate.
- * </p>
- * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
- * @deprecated Use combination of imagesetstyle() and imageline() instead
- */
- function imagedashedline ($image, $x1, $y1, $x2, $y2, $color) {}
- /**
- * Give the bounding box of a text using TrueType fonts
- * @link https://php.net/manual/en/function.imagettfbbox.php
- * @param float $size <p>
- * The font size. Depending on your version of GD, this should be
- * specified as the pixel size (GD1) or point size (GD2).
- * </p>
- * @param float $angle <p>
- * Angle in degrees in which text will be measured.
- * </p>
- * @param string $fontfile <p>
- * The name of the TrueType font file (can be a URL). Depending on
- * which version of the GD library that PHP is using, it may attempt to
- * search for files that do not begin with a leading '/' by appending
- * '.ttf' to the filename and searching along a library-defined font path.
- * </p>
- * @param string $text <p>
- * The string to be measured.
- * </p>
- * @return array|false imagettfbbox returns an array with 8
- * elements representing four points making the bounding box of the
- * text on success and false on error.
- * <tr valign="top">
- * <td>key</td>
- * <td>contents</td>
- * </tr>
- * <tr valign="top">
- * <td>0</td>
- * <td>lower left corner, X position</td>
- * </tr>
- * <tr valign="top">
- * <td>1</td>
- * <td>lower left corner, Y position</td>
- * </tr>
- * <tr valign="top">
- * <td>2</td>
- * <td>lower right corner, X position</td>
- * </tr>
- * <tr valign="top">
- * <td>3</td>
- * <td>lower right corner, Y position</td>
- * </tr>
- * <tr valign="top">
- * <td>4</td>
- * <td>upper right corner, X position</td>
- * </tr>
- * <tr valign="top">
- * <td>5</td>
- * <td>upper right corner, Y position</td>
- * </tr>
- * <tr valign="top">
- * <td>6</td>
- * <td>upper left corner, X position</td>
- * </tr>
- * <tr valign="top">
- * <td>7</td>
- * <td>upper left corner, Y position</td>
- * </tr>
- * </p>
- * <p>
- * The points are relative to the text regardless of the
- * angle, so "upper left" means in the top left-hand
- * corner seeing the text horizontally.
- */
- function imagettfbbox ($size, $angle, $fontfile, $text) {}
- /**
- * Write text to the image using TrueType fonts
- * @link https://php.net/manual/en/function.imagettftext.php
- * @param resource $image
- * @param float $size <p>
- * The font size. Depending on your version of GD, this should be
- * specified as the pixel size (GD1) or point size (GD2).
- * </p>
- * @param float $angle <p>
- * The angle in degrees, with 0 degrees being left-to-right reading text.
- * Higher values represent a counter-clockwise rotation. For example, a
- * value of 90 would result in bottom-to-top reading text.
- * </p>
- * @param int $x <p>
- * The coordinates given by x and
- * y will define the basepoint of the first
- * character (roughly the lower-left corner of the character). This
- * is different from the imagestring, where
- * x and y define the
- * upper-left corner of the first character. For example, "top left"
- * is 0, 0.
- * </p>
- * @param int $y <p>
- * The y-ordinate. This sets the position of the fonts baseline, not the
- * very bottom of the character.
- * </p>
- * @param int $color <p>
- * The color index. Using the negative of a color index has the effect of
- * turning off antialiasing. See imagecolorallocate.
- * </p>
- * @param string $fontfile <p>
- * The path to the TrueType font you wish to use.
- * </p>
- * <p>
- * Depending on which version of the GD library PHP is using, when
- * fontfile does not begin with a leading
- * / then .ttf will be appended
- * to the filename and the library will attempt to search for that
- * filename along a library-defined font path.
- * </p>
- * <p>
- * When using versions of the GD library lower than 2.0.18, a space character,
- * rather than a semicolon, was used as the 'path separator' for different font files.
- * Unintentional use of this feature will result in the warning message:
- * Warning: Could not find/open font. For these affected versions, the
- * only solution is moving the font to a path which does not contain spaces.
- * </p>
- * <p>
- * In many cases where a font resides in the same directory as the script using it
- * the following trick will alleviate any include problems.
- * </p>
- * <pre>
- * <?php
- * // Set the enviroment variable for GD
- * putenv('GDFONTPATH=' . realpath('.'));
- *
- * // Name the font to be used (note the lack of the .ttf extension)
- * $font = 'SomeFont';
- * ?>
- * </pre>
- * <p>
- * <strong>Note:</strong>
- * <code>open_basedir</code> does <em>not</em> apply to fontfile.
- * </p>
- * @param string $text <p>
- * The text string in UTF-8 encoding.
- * </p>
- * <p>
- * May include decimal numeric character references (of the form:
- * &#8364;) to access characters in a font beyond position 127.
- * The hexadecimal format (like &#xA9;) is supported.
- * Strings in UTF-8 encoding can be passed directly.
- * </p>
- * <p>
- * Named entities, such as &copy;, are not supported. Consider using
- * html_entity_decode
- * to decode these named entities into UTF-8 strings (html_entity_decode()
- * supports this as of PHP 5.0.0).
- * </p>
- * <p>
- * If a character is used in the string which is not supported by the
- * font, a hollow rectangle will replace the character.
- * </p>
- * @return array|false an array with 8 elements representing four points making the
- * bounding box of the text. The order of the points is lower left, lower
- * right, upper right, upper left. The points are relative to the text
- * regardless of the angle, so "upper left" means in the top left-hand
- * corner when you see the text horizontally.
- * Returns false on error.
- */
- function imagettftext ($image, $size, $angle, $x, $y, $color, $fontfile, $text) {}
- /**
- * Give the bounding box of a text using fonts via freetype2
- * @link https://php.net/manual/en/function.imageftbbox.php
- * @param float $size <p>
- * The font size. Depending on your version of GD, this should be
- * specified as the pixel size (GD1) or point size (GD2).
- * </p>
- * @param float $angle <p>
- * Angle in degrees in which text will be
- * measured.
- * </p>
- * @param string $fontfile <p>
- * The name of the TrueType font file (can be a URL). Depending on
- * which version of the GD library that PHP is using, it may attempt to
- * search for files that do not begin with a leading '/' by appending
- * '.ttf' to the filename and searching along a library-defined font path.
- * </p>
- * @param string $text <p>
- * The string to be measured.
- * </p>
- * @param array $extrainfo [optional] <p>
- * <table>
- * Possible array indexes for extrainfo
- * <tr valign="top">
- * <td>Key</td>
- * <td>Type</td>
- * <td>Meaning</td>
- * </tr>
- * <tr valign="top">
- * <td>linespacing</td>
- * <td>float</td>
- * <td>Defines drawing linespacing</td>
- * </tr>
- * </table>
- * </p>
- * @return array|false imageftbbox returns an array with 8
- * elements representing four points making the bounding box of the
- * text:
- * <tr valign="top">
- * <td>0</td>
- * <td>lower left corner, X position</td>
- * </tr>
- * <tr valign="top">
- * <td>1</td>
- * <td>lower left corner, Y position</td>
- * </tr>
- * <tr valign="top">
- * <td>2</td>
- * <td>lower right corner, X position</td>
- * </tr>
- * <tr valign="top">
- * <td>3</td>
- * <td>lower right corner, Y position</td>
- * </tr>
- * <tr valign="top">
- * <td>4</td>
- * <td>upper right corner, X position</td>
- * </tr>
- * <tr valign="top">
- * <td>5</td>
- * <td>upper right corner, Y position</td>
- * </tr>
- * <tr valign="top">
- * <td>6</td>
- * <td>upper left corner, X position</td>
- * </tr>
- * <tr valign="top">
- * <td>7</td>
- * <td>upper left corner, Y position</td>
- * </tr>
- * </p>
- * <p>
- * The points are relative to the text regardless of the
- * angle, so "upper left" means in the top left-hand
- * corner seeing the text horizontally.
- * Returns false on error.
- */
- function imageftbbox ($size, $angle, $fontfile, $text, $extrainfo = null ) {}
- /**
- * Write text to the image using fonts using FreeType 2
- * @link https://php.net/manual/en/function.imagefttext.php
- * @param resource $image
- * @param float $size <p>
- * The font size to use in points.
- * </p>
- * @param float $angle <p>
- * The angle in degrees, with 0 degrees being left-to-right reading text.
- * Higher values represent a counter-clockwise rotation. For example, a
- * value of 90 would result in bottom-to-top reading text.
- * </p>
- * @param int $x <p>
- * The coordinates given by x and
- * y will define the basepoint of the first
- * character (roughly the lower-left corner of the character). This
- * is different from the imagestring, where
- * x and y define the
- * upper-left corner of the first character. For example, "top left"
- * is 0, 0.
- * </p>
- * @param int $y <p>
- * The y-ordinate. This sets the position of the fonts baseline, not the
- * very bottom of the character.
- * </p>
- * @param int $color <p>
- * The index of the desired color for the text, see
- * imagecolorexact.
- * </p>
- * @param string $fontfile <p>
- * The path to the TrueType font you wish to use.
- * </p>
- * <p>
- * Depending on which version of the GD library PHP is using, when
- * fontfile does not begin with a leading
- * / then .ttf will be appended
- * to the filename and the library will attempt to search for that
- * filename along a library-defined font path.
- * </p>
- * <p>
- * When using versions of the GD library lower than 2.0.18, a space character,
- * rather than a semicolon, was used as the 'path separator' for different font files.
- * Unintentional use of this feature will result in the warning message:
- * Warning: Could not find/open font. For these affected versions, the
- * only solution is moving the font to a path which does not contain spaces.
- * </p>
- * <p>
- * In many cases where a font resides in the same directory as the script using it
- * the following trick will alleviate any include problems.
- * </p>
- * <pre>
- * <?php
- * // Set the enviroment variable for GD
- * putenv('GDFONTPATH=' . realpath('.'));
- *
- * // Name the font to be used (note the lack of the .ttf extension)
- * $font = 'SomeFont';
- * ?>
- * </pre>
- * <p>
- * <strong>Note:</strong>
- * <code>open_basedir</code> does <em>not</em> apply to fontfile.
- * </p>
- * @param string $text <p>
- * Text to be inserted into image.
- * </p>
- * @param array $extrainfo [optional] <p>
- * <table>
- * Possible array indexes for extrainfo
- * <tr valign="top">
- * <td>Key</td>
- * <td>Type</td>
- * <td>Meaning</td>
- * </tr>
- * <tr valign="top">
- * <td>linespacing</td>
- * <td>float</td>
- * <td>Defines drawing linespacing</td>
- * </tr>
- * </table>
- * </p>
- * @return array|false This function returns an array defining the four points of the box, starting in the lower left and moving counter-clockwise:
- * <tr valign="top">
- * <td>0</td>
- * <td>lower left x-coordinate</td>
- * </tr>
- * <tr valign="top">
- * <td>1</td>
- * <td>lower left y-coordinate</td>
- * </tr>
- * <tr valign="top">
- * <td>2</td>
- * <td>lower right x-coordinate</td>
- * </tr>
- * <tr valign="top">
- * <td>3</td>
- * <td>lower right y-coordinate</td>
- * </tr>
- * <tr valign="top">
- * <td>4</td>
- * <td>upper right x-coordinate</td>
- * </tr>
- * <tr valign="top">
- * <td>5</td>
- * <td>upper right y-coordinate</td>
- * </tr>
- * <tr valign="top">
- * <td>6</td>
- * <td>upper left x-coordinate</td>
- * </tr>
- * <tr valign="top">
- * <td>7</td>
- * <td>upper left y-coordinate</td>
- * </tr>
- * Returns false on error.
- */
- function imagefttext ($image, $size, $angle, $x, $y, $color, $fontfile, $text, $extrainfo = null ) {}
- /**
- * Load a PostScript Type 1 font from file
- * @link https://php.net/manual/en/function.imagepsloadfont.php
- * @param string $filename <p>
- * Path to the Postscript font file.
- * </p>
- * @return resource|false In the case everything went right, a valid font index will be returned and
- * can be used for further purposes. Otherwise the function returns false.
- * @removed 7.0 This function was REMOVED in PHP 7.0.0.
- */
- function imagepsloadfont ($filename) {}
- /**
- * Free memory used by a PostScript Type 1 font
- * @link https://php.net/manual/en/function.imagepsfreefont.php
- * @param resource $font_index <p>
- * A font resource, returned by imagepsloadfont.
- * </p>
- * @return bool true on success or false on failure.
- * @removed 7.0
- */
- function imagepsfreefont ($font_index) {}
- /**
- * Change the character encoding vector of a font
- * @link https://php.net/manual/en/function.imagepsencodefont.php
- * @param resource $font_index <p>
- * A font resource, returned by imagepsloadfont.
- * </p>
- * @param string $encodingfile <p>
- * The exact format of this file is described in T1libs documentation.
- * T1lib comes with two ready-to-use files,
- * IsoLatin1.enc and
- * IsoLatin2.enc.
- * </p>
- * @return bool true on success or false on failure.
- * @removed 7.0
- */
- function imagepsencodefont ($font_index, $encodingfile) {}
- /**
- * Extend or condense a font
- * @link https://php.net/manual/en/function.imagepsextendfont.php
- * @param resource $font_index <p>
- * A font resource, returned by imagepsloadfont.
- * </p>
- * @param float $extend <p>
- * Extension value, must be greater than 0.
- * </p>
- * @return bool true on success or false on failure.
- * @removed 7.0
- */
- function imagepsextendfont ($font_index, $extend) {}
- /**
- * Slant a font
- * @link https://php.net/manual/en/function.imagepsslantfont.php
- * @param resource $font_index <p>
- * A font resource, returned by imagepsloadfont.
- * </p>
- * @param float $slant <p>
- * Slant level.
- * </p>
- * @return bool true on success or false on failure.
- * @removed 7.0 This function was REMOVED in PHP 7.0.0.
- */
- function imagepsslantfont ($font_index, $slant) {}
- /**
- * Draws a text over an image using PostScript Type1 fonts
- * @link https://php.net/manual/en/function.imagepstext.php
- * @param resource $image
- * @param string $text <p>
- * The text to be written.
- * </p>
- * @param resource $font_index <p>
- * A font resource, returned by imagepsloadfont.
- * </p>
- * @param int $size <p>
- * size is expressed in pixels.
- * </p>
- * @param int $foreground <p>
- * The color in which the text will be painted.
- * </p>
- * @param int $background <p>
- * The color to which the text will try to fade in with antialiasing.
- * No pixels with the color background are
- * actually painted, so the background image does not need to be of solid
- * color.
- * </p>
- * @param int $x <p>
- * x-coordinate for the lower-left corner of the first character.
- * </p>
- * @param int $y <p>
- * y-coordinate for the lower-left corner of the first character.
- * </p>
- * @param int $space [optional] <p>
- * Allows you to change the default value of a space in a font. This
- * amount is added to the normal value and can also be negative.
- * Expressed in character space units, where 1 unit is 1/1000th of an
- * em-square.
- * </p>
- * @param int $tightness [optional] <p>
- * tightness allows you to control the amount
- * of white space between characters. This amount is added to the
- * normal character width and can also be negative.
- * Expressed in character space units, where 1 unit is 1/1000th of an
- * em-square.
- * </p>
- * @param float $angle [optional] <p>
- * angle is in degrees.
- * </p>
- * @param int $antialias_steps [optional] <p>
- * Allows you to control the number of colours used for antialiasing
- * text. Allowed values are 4 and 16. The higher value is recommended
- * for text sizes lower than 20, where the effect in text quality is
- * quite visible. With bigger sizes, use 4. It's less computationally
- * intensive.
- * </p>
- * @return array|false This function returns an array containing the following elements:
- * <tr valign="top">
- * <td>0</td>
- * <td>lower left x-coordinate</td>
- * </tr>
- * <tr valign="top">
- * <td>1</td>
- * <td>lower left y-coordinate</td>
- * </tr>
- * <tr valign="top">
- * <td>2</td>
- * <td>upper right x-coordinate</td>
- * </tr>
- * <tr valign="top">
- * <td>3</td>
- * <td>upper right y-coordinate</td>
- * </tr>
- * Returns false on error.
- * @removed 7.0 This function was REMOVED in PHP 7.0.0.
- */
- function imagepstext ($image, $text, $font_index, $size, $foreground, $background, $x, $y, $space = null, $tightness = null, $angle = null, $antialias_steps = null) {}
- /**
- * Give the bounding box of a text rectangle using PostScript Type1 fonts
- * @link https://php.net/manual/en/function.imagepsbbox.php
- * @param string $text <p>
- * The text to be written.
- * </p>
- * @param resource $font
- * @param int $size <p>
- * size is expressed in pixels.
- * </p>
- * @return array|false an array containing the following elements:
- * <tr valign="top">
- * <td>0</td>
- * <td>left x-coordinate</td>
- * </tr>
- * <tr valign="top">
- * <td>1</td>
- * <td>upper y-coordinate</td>
- * </tr>
- * <tr valign="top">
- * <td>2</td>
- * <td>right x-coordinate</td>
- * </tr>
- * <tr valign="top">
- * <td>3</td>
- * <td>lower y-coordinate</td>
- * </tr>
- * Returns false on error.
- * @removed 7.0
- */
- function imagepsbbox ($text, $font, $size) {}
- /**
- * Return the image types supported by this PHP build
- * @link https://php.net/manual/en/function.imagetypes.php
- * @return int a bit-field corresponding to the image formats supported by the
- * version of GD linked into PHP. The following bits are returned,
- * IMG_BMP | IMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP | IMG_XPM | IMG_WEBP
- */
- function imagetypes () {}
- /**
- * Convert JPEG image file to WBMP image file
- * @link https://php.net/manual/en/function.jpeg2wbmp.php
- * @param string $jpegname <p>
- * Path to JPEG file.
- * </p>
- * @param string $wbmpname <p>
- * Path to destination WBMP file.
- * </p>
- * @param int $dest_height <p>
- * Destination image height.
- * </p>
- * @param int $dest_width <p>
- * Destination image width.
- * </p>
- * @param int $threshold <p>
- * Threshold value, between 0 and 8 (inclusive).
- * </p>
- * @return bool true on success or false on failure.
- * @deprecated 7.2 Use imagecreatefromjpeg() and imagewbmp() instead
- * @removed 8.0
- */
- function jpeg2wbmp ($jpegname, $wbmpname, $dest_height, $dest_width, $threshold) {}
- /**
- * Convert PNG image file to WBMP image file
- * @link https://php.net/manual/en/function.png2wbmp.php
- * @param string $pngname <p>
- * Path to PNG file.
- * </p>
- * @param string $wbmpname <p>
- * Path to destination WBMP file.
- * </p>
- * @param int $dest_height <p>
- * Destination image height.
- * </p>
- * @param int $dest_width <p>
- * Destination image width.
- * </p>
- * @param int $threshold <p>
- * Threshold value, between 0 and 8 (inclusive).
- * </p>
- * @return bool true on success or false on failure.
- * @deprecated 7.2 Use imagecreatefrompng() and imagewbmp() instead
- * @removed 8.0
- */
- function png2wbmp ($pngname, $wbmpname, $dest_height, $dest_width, $threshold) {}
- /**
- * Output image to browser or file
- * @link https://php.net/manual/en/function.image2wbmp.php
- * @param resource $image
- * @param string $filename [optional] <p>
- * Path to the saved file. If not given, the raw image stream will be
- * outputted directly.
- * </p>
- * @param int $threshold [optional] <p>
- * Threshold value, between 0 and 255 (inclusive).
- * </p>
- * @return bool true on success or false on failure.
- * @deprecated 7.3 Use imagewbmp() instead
- * @removed 8.0
- */
- function image2wbmp ($image, $filename = null, $threshold = null) {}
- /**
- * Set the alpha blending flag to use the bundled libgd layering effects
- * @link https://php.net/manual/en/function.imagelayereffect.php
- * @param resource $image
- * @param int $effect <p>
- * One of the following constants:
- * IMG_EFFECT_REPLACE
- * Use pixel replacement (equivalent of passing true to
- * imagealphablending)
- * @return bool true on success or false on failure.
- */
- function imagelayereffect ($image, $effect) {}
- /**
- * Makes the colors of the palette version of an image more closely match the true color version
- * @link https://php.net/manual/en/function.imagecolormatch.php
- * @param $image1 resource <p>
- * A truecolor image link resource.
- * </p>
- * @param $image2 resource <p>
- * A palette image link resource pointing to an image that has the same
- * size as image1.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagecolormatch ($image1, $image2) {}
- /**
- * Output XBM image to browser or file
- * @link https://php.net/manual/en/function.imagexbm.php
- * @param resource $image
- * @param string $filename <p>
- * The path to save the file to. If not set or &null;, the raw image stream
- * will be outputted directly.
- * </p>
- * @param int $foreground [optional] <p>
- * You can set the foreground color with this parameter by setting an
- * identifier obtained from imagecolorallocate.
- * The default foreground color is black.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imagexbm ($image, $filename, $foreground = null) {}
- /**
- * Applies a filter to an image
- * @link https://php.net/manual/en/function.imagefilter.php
- * @param resource $image
- * @param int $filtertype <p>
- * filtertype can be one of the following:
- * IMG_FILTER_NEGATE: Reverses all colors of
- * the image.
- * @param int $arg1 [optional] <p>
- * IMG_FILTER_BRIGHTNESS: Brightness level.
- * @param int $arg2 [optional] <p>
- * IMG_FILTER_COLORIZE: Value of green component.
- * @param int $arg3 [optional] <p>
- * IMG_FILTER_COLORIZE: Value of blue component.
- * @param int $arg4 [optional] <p>
- * IMG_FILTER_COLORIZE: Alpha channel, A value
- * between 0 and 127. 0 indicates completely opaque while 127 indicates
- * completely transparent.
- * @return bool true on success or false on failure.
- */
- function imagefilter ($image, $filtertype, $arg1 = null, $arg2 = null, $arg3 = null, $arg4 = null) {}
- /**
- * Apply a 3x3 convolution matrix, using coefficient and offset
- * @link https://php.net/manual/en/function.imageconvolution.php
- * @param resource $image
- * @param array $matrix <p>
- * A 3x3 matrix: an array of three arrays of three floats.
- * </p>
- * @param float $div <p>
- * The divisor of the result of the convolution, used for normalization.
- * </p>
- * @param float $offset <p>
- * Color offset.
- * </p>
- * @return bool true on success or false on failure.
- */
- function imageconvolution ($image, array $matrix, $div, $offset) {}
- /**
- * @param resource $im An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()}.
- * @param int $res_x [optional] The horizontal resolution in DPI.
- * @param int $res_y [optional] The vertical resolution in DPI.
- * @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.
- * @link https://php.net/manual/en/function.imageresolution.php
- * @since 7.2
- */
- function imageresolution ($im, $res_x = 96, $res_y = 96) {}
- /**
- * <b>imagesetclip()</b> sets the current clipping rectangle, i.e. the area beyond which no pixels will be drawn.
- * @param resource $im An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()}.
- * @param int $x1 The x-coordinate of the upper left corner.
- * @param int $y1 The y-coordinate of the upper left corner.
- * @param int $x2 The x-coordinate of the lower right corner.
- * @param int $y2 The y-coordinate of the lower right corner.
- * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
- * @link https://php.net/manual/en/function.imagesetclip.php
- * @see imagegetclip()
- * @since 7.2
- */
- function imagesetclip ($im, $x1, $y1, $x2, $y2) {}
- /**
- * <b>imagegetclip()</b> retrieves the current clipping rectangle, i.e. the area beyond which no pixels will be drawn.
- * @param resource $im An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()}
- * @return array|false an indexed array with the coordinates of the clipping rectangle which has the following entries:
- * <ul>
- * <li>x-coordinate of the upper left corner</li>
- * <li>y-coordinate of the upper left corner</li>
- * <li>x-coordinate of the lower right corner</li>
- * <li>y-coordinate of the lower right corner</li>
- * </ul>
- * Returns <b>FALSE</b> on error.
- * @link https://php.net/manual/en/function.imagegetclip.php
- * @see imagesetclip()
- * @since 7.2
- */
- function imagegetclip ($im) {}
- /**
- * <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.
- * @param resource $image An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()}.
- * @param array $points An array containing the polygon's vertices, e.g.:
- * <pre>
- * points[0] = x0
- * points[1] = y0
- * points[2] = x1
- * points[3] = y1
- * </pre>
- * @param int $num_points [optional] Total number of points (vertices).
- * @param int $color A color identifier created with {@see imagecolorallocate()}.
- * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
- * @link https://php.net/manual/en/function.imageopenpolygon.php
- * @since 7.2
- * @see imageplygon()
- */
- function imageopenpolygon ($image , $points, $num_points, $color) {}
- /**
- * <b>imagecreatefrombmp()</b> returns an image identifier representing the image obtained from the given filename.
- * <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.
- * @param string $filename Path to the BMP image.
- * @return resource|false Returns an image resource identifier on success, <b>FALSE</b> on errors.
- * @link https://php.net/manual/en/function.imagecreatefrombmp.php
- * @since 7.2
- */
- function imagecreatefrombmp($filename){}
- /**
- * Outputs or saves a BMP version of the given <b>image</b>.
- * @param resource $image An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()}.
- * @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.
- * <br />
- * <b>Note:</b> <b>NULL</b> is invalid if the <b>compressed</b> arguments is not used.
- * @param bool $compressed Whether the BMP should be compressed with run-length encoding (RLE), or not.
- * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
- * <br />
- * <b>Caution</b> However, if libgd fails to output the image, this function returns <b>TRUE</b>.
- * @link https://php.net/manual/en/function.imagebmp.php
- * @since 7.2
- */
- function imagebmp ($image, $to = null, $compressed = true) {}
- /**
- * @param string $filename
- * @return resource|false
- */
- function imagecreatefromtga($filename) {}
- /**
- * Captures the whole screen
- *
- * https://www.php.net/manual/en/function.imagegrabscreen.php
- *
- * @return resource|false
- */
- function imagegrabscreen() {}
- /**
- * Captures a window
- *
- * @link https://www.php.net/manual/en/function.imagegrabwindow.php
- *
- * @param int $handle
- * @param int|null $client_area
- * @return resource|false
- */
- function imagegrabwindow($handle, $client_area = null) {}
- /**
- * Used as a return value by {@see imagetypes()}
- * @link https://php.net/manual/en/image.constants.php#constant.img-gif
- */
- define ('IMG_GIF', 1);
- /**
- * Used as a return value by {@see imagetypes()}
- * @link https://php.net/manual/en/image.constants.php#constant.img-jpg
- */
- define ('IMG_JPG', 2);
- /**
- * Used as a return value by {@see imagetypes()}
- * <p>
- * This constant has the same value as {@see IMG_JPG}
- * </p>
- * @link https://php.net/manual/en/image.constants.php#constant.img-jpeg
- */
- define ('IMG_JPEG', 2);
- /**
- * Used as a return value by {@see imagetypes()}
- * @link https://php.net/manual/en/image.constants.php#constant.img-png
- */
- define ('IMG_PNG', 4);
- /**
- * Used as a return value by {@see imagetypes()}
- * @link https://php.net/manual/en/image.constants.php#constant.img-wbmp
- */
- define ('IMG_WBMP', 8);
- /**
- * Used as a return value by {@see imagetypes()}
- * @link https://php.net/manual/en/image.constants.php#constant.img-xpm
- */
- define ('IMG_XPM', 16);
- /**
- * Used as a return value by {@see imagetypes()}
- * @since 5.6.25
- * @since 7.0.10
- * @link https://php.net/manual/en/image.constants.php#constant.img-webp
- */
- define('IMG_WEBP', 32);
- /**
- * Used as a return value by {@see imagetypes()}
- * @since 7.2
- * @link https://php.net/manual/en/image.constants.php#constant.img-bmp
- */
- define('IMG_BMP', 64);
- /**
- * Special color option which can be used instead of color allocated with
- * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()}
- * @link https://php.net/manual/en/image.constants.php#constant.img-color-tiled
- */
- define ('IMG_COLOR_TILED', -5);
- /**
- * Special color option which can be used instead of color allocated with
- * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()}
- * @link https://php.net/manual/en/image.constants.php#constant.img-color-styled
- */
- define ('IMG_COLOR_STYLED', -2);
- /**
- * Special color option which can be used instead of color allocated with
- * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()}
- * @link https://php.net/manual/en/image.constants.php#constant.img-color-brushed
- */
- define ('IMG_COLOR_BRUSHED', -3);
- /**
- * Special color option which can be used instead of color allocated with
- * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()}
- * @link https://php.net/manual/en/image.constants.php#constant.img-color-styledbrushed
- */
- define ('IMG_COLOR_STYLEDBRUSHED', -4);
- /**
- * Special color option which can be used instead of color allocated with
- * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()}
- * @link https://php.net/manual/en/image.constants.php#constant.img-color-transparent
- */
- define ('IMG_COLOR_TRANSPARENT', -6);
- /**
- * A style constant used by the {@see imagefilledarc()} function.
- * <p>
- * This constant has the same value as {@see IMG_ARC_PIE}
- * </p>
- * @link https://php.net/manual/en/image.constants.php#constant.img-arc-rounded
- */
- define ('IMG_ARC_ROUNDED', 0);
- /**
- * A style constant used by the {@see imagefilledarc()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-arc-pie
- */
- define ('IMG_ARC_PIE', 0);
- /**
- * A style constant used by the {@see imagefilledarc()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-arc-chord
- */
- define ('IMG_ARC_CHORD', 1);
- /**
- * A style constant used by the {@see imagefilledarc()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-arc-nofill
- */
- define ('IMG_ARC_NOFILL', 2);
- /**
- * A style constant used by the {@see imagefilledarc()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-arc-edged
- */
- define ('IMG_ARC_EDGED', 4);
- /**
- * A type constant used by the {@see imagegd2()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-gd2-raw
- */
- define ('IMG_GD2_RAW', 1);
- /**
- * A type constant used by the {@see imagegd2()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-gd2-compressed
- */
- define ('IMG_GD2_COMPRESSED', 2);
- /**
- * Alpha blending effect used by the {@see imagelayereffect()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-effect-replace
- */
- define ('IMG_EFFECT_REPLACE', 0);
- /**
- * Alpha blending effect used by the {@see imagelayereffect()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-effect-alphablend
- */
- define ('IMG_EFFECT_ALPHABLEND', 1);
- /**
- * Alpha blending effect used by the {@see imagelayereffect()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-effect-normal
- */
- define ('IMG_EFFECT_NORMAL', 2);
- /**
- * Alpha blending effect used by the {@see imagelayereffect()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-effect-overlay
- */
- define ('IMG_EFFECT_OVERLAY', 3);
- /**
- * Alpha blending effect used by the {@see imagelayereffect()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-effect-multiply
- * @since 7.2
- */
- define ('IMG_EFFECT_MULTIPLY', 4);
- /**
- * When the bundled version of GD is used this is 1 otherwise
- * it's set to 0.
- * @link https://php.net/manual/en/image.constants.php
- */
- define ('GD_BUNDLED', 1);
- /**
- * Special GD filter used by the {@see imagefilter()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-filter-negate
- */
- define ('IMG_FILTER_NEGATE', 0);
- /**
- * Special GD filter used by the {@see imagefilter()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-filter-grayscale
- */
- define ('IMG_FILTER_GRAYSCALE', 1);
- /**
- * Special GD filter used by the {@see imagefilter()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-filter-brightness
- */
- define ('IMG_FILTER_BRIGHTNESS', 2);
- /**
- * Special GD filter used by the {@see imagefilter()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-filter-contrast
- */
- define ('IMG_FILTER_CONTRAST', 3);
- /**
- * Special GD filter used by the {@see imagefilter()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-filter-colorize
- */
- define ('IMG_FILTER_COLORIZE', 4);
- /**
- * Special GD filter used by the {@see imagefilter()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-filter-edgedetect
- */
- define ('IMG_FILTER_EDGEDETECT', 5);
- /**
- * Special GD filter used by the {@see imagefilter()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-filter-gaussian-blur
- */
- define ('IMG_FILTER_GAUSSIAN_BLUR', 7);
- /**
- * Special GD filter used by the {@see imagefilter()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-filter-selective-blur
- */
- define ('IMG_FILTER_SELECTIVE_BLUR', 8);
- /**
- * Special GD filter used by the {@see imagefilter()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-filter-emboss
- */
- define ('IMG_FILTER_EMBOSS', 6);
- /**
- * Special GD filter used by the {@see imagefilter()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-filter-mean-removal
- */
- define ('IMG_FILTER_MEAN_REMOVAL', 9);
- /**
- * Special GD filter used by the {@see imagefilter()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-filter-smooth
- */
- define ('IMG_FILTER_SMOOTH', 10);
- /**
- * Special GD filter used by the {@see imagefilter()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-filter-pixelate
- */
- define ('IMG_FILTER_PIXELATE', 11);
- /**
- * Special GD filter used by the {@see imagefilter()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.img-filter-scatter
- * @since 7.4
- */
- define ('IMG_FILTER_SCATTER', 12);
- /**
- * The GD version PHP was compiled against.
- * @since 5.2.4
- * @link https://php.net/manual/en/image.constants.php#constant.gd-version
- */
- define ('GD_VERSION', "2.0.35");
- /**
- * The GD major version PHP was compiled against.
- * @since 5.2.4
- * @link https://php.net/manual/en/image.constants.php#constant.gd-major-version
- */
- define ('GD_MAJOR_VERSION', 2);
- /**
- * The GD minor version PHP was compiled against.
- * @since 5.2.4
- * @link https://php.net/manual/en/image.constants.php#constant.gd-minor-version
- */
- define ('GD_MINOR_VERSION', 0);
- /**
- * The GD release version PHP was compiled against.
- * @since 5.2.4
- * @link https://php.net/manual/en/image.constants.php#constant.gd-release-version
- */
- define ('GD_RELEASE_VERSION', 35);
- /**
- * The GD "extra" version (beta/rc..) PHP was compiled against.
- * @since 5.2.4
- * @link https://php.net/manual/en/image.constants.php#constant.gd-extra-version
- */
- define ('GD_EXTRA_VERSION', "");
- /**
- * A special PNG filter, used by the {@see imagepng()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.png-no-filter
- */
- define ('PNG_NO_FILTER', 0);
- /**
- * A special PNG filter, used by the {@see imagepng()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.png-filter-none
- */
- define ('PNG_FILTER_NONE', 8);
- /**
- * A special PNG filter, used by the {@see imagepng()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.png-filter-sub
- */
- define ('PNG_FILTER_SUB', 16);
- /**
- * A special PNG filter, used by the {@see imagepng()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.png-filter-up
- */
- define ('PNG_FILTER_UP', 32);
- /**
- * A special PNG filter, used by the {@see imagepng()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.png-filter-avg
- */
- define ('PNG_FILTER_AVG', 64);
- /**
- * A special PNG filter, used by the {@see imagepng()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.png-filter-paeth
- */
- define ('PNG_FILTER_PAETH', 128);
- /**
- * A special PNG filter, used by the {@see imagepng()} function.
- * @link https://php.net/manual/en/image.constants.php#constant.png-all-filters
- */
- define ('PNG_ALL_FILTERS', 248);
- /**
- * An affine transformation type constant used by the {@see imageaffinematrixget()} function.
- * @since 5.5
- * @link https://php.net/manual/en/image.constants.php#constant.img-affine-translate
- */
- define('IMG_AFFINE_TRANSLATE', 0);
- /**
- * An affine transformation type constant used by the {@see imageaffinematrixget()} function.
- * @since 5.5
- * @link https://php.net/manual/en/image.constants.php#constant.img-affine-scale
- */
- define('IMG_AFFINE_SCALE', 1);
- /**
- * An affine transformation type constant used by the {@see imageaffinematrixget()} function.
- * @since 5.5
- * @link https://php.net/manual/en/image.constants.php#constant.img-affine-rotate
- */
- define('IMG_AFFINE_ROTATE', 2);
- /**
- * An affine transformation type constant used by the {@see imageaffinematrixget()} function.
- * @since 5.5
- * @link https://php.net/manual/en/image.constants.php#constant.img-affine-shear-horizontal
- */
- define('IMG_AFFINE_SHEAR_HORIZONTAL', 3);
- /**
- * An affine transformation type constant used by the {@see imageaffinematrixget()} function.
- * @since 5.5
- * @link https://php.net/manual/en/image.constants.php#constant.img-affine-shear-vertical
- */
- define('IMG_AFFINE_SHEAR_VERTICAL', 4);
- /**
- * Same as {@see IMG_CROP_TRANSPARENT}. Before PHP 7.4.0, the bundled libgd fell back to
- * {@see IMG_CROP_SIDES}, if the image had no transparent color.
- * Used together with {@see imagecropauto()}.
- * @since 5.5
- */
- define('IMG_CROP_DEFAULT', 0);
- /**
- * Crops out a transparent background.
- * Used together with {@see imagecropauto()}.
- * @since 5.5
- */
- define('IMG_CROP_TRANSPARENT', 1);
- /**
- * Crops out a black background.
- * Used together with {@see imagecropauto()}.
- * @since 5.5
- */
- define('IMG_CROP_BLACK', 2);
- /**
- * Crops out a white background.
- * Used together with {@see imagecropauto()}.
- * @since 5.5
- */
- define('IMG_CROP_WHITE', 3);
- /**
- * Uses the 4 corners of the image to attempt to detect the background to crop.
- * Used together with {@see imagecropauto()}.
- * @since 5.5
- */
- define('IMG_CROP_SIDES', 4);
- /**
- * Crops an image using the given <b>threshold</b> and <b>color</b>.
- * Used together with {@see imagecropauto()}.
- * @since 5.5
- */
- define('IMG_CROP_THRESHOLD', 5);
- /**
- * Used together with {@see imageflip()}
- * @since 5.5
- * @link https://php.net/manual/en/image.constants.php#constant.img-flip-both
- */
- define('IMG_FLIP_BOTH', 3);
- /**
- * Used together with {@see imageflip()}
- * @since 5.5
- * @link https://php.net/manual/en/image.constants.php#constant.img-flip-horizontal
- */
- define('IMG_FLIP_HORIZONTAL', 1);
- /**
- * Used together with {@see imageflip()}
- * @since 5.5
- * @link https://php.net/manual/en/image.constants.php#constant.img-flip-vertical
- */
- define('IMG_FLIP_VERTICAL', 2);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-bell
- * @since 5.5
- */
- define('IMG_BELL', 1);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-bessel
- * @since 5.5
- */
- define('IMG_BESSEL', 2);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-bicubic
- * @since 5.5
- */
- define('IMG_BICUBIC', 4);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-bicubic-fixed
- * @since 5.5
- */
- define('IMG_BICUBIC_FIXED', 5);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-bilinear-fixed
- * @since 5.5
- */
- define('IMG_BILINEAR_FIXED', 3);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-blackman
- * @since 5.5
- */
- define('IMG_BLACKMAN', 6);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-box
- * @since 5.5
- */
- define('IMG_BOX', 7);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-bspline
- * @since 5.5
- */
- define('IMG_BSPLINE', 8);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-catmullrom
- * @since 5.5
- */
- define('IMG_CATMULLROM', 9);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-gaussian
- * @since 5.5
- */
- define('IMG_GAUSSIAN', 10);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-generalized-cubic
- * @since 5.5
- */
- define('IMG_GENERALIZED_CUBIC', 11);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-hermite
- * @since 5.5
- */
- define('IMG_HERMITE', 12);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-hamming
- * @since 5.5
- */
- define('IMG_HAMMING', 13);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-hanning
- * @since 5.5
- */
- define('IMG_HANNING', 14);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-mitchell
- * @since 5.5
- */
- define('IMG_MITCHELL', 15);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-power
- * @since 5.5
- */
- define('IMG_POWER', 17);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-quadratic
- * @since 5.5
- */
- define('IMG_QUADRATIC', 18);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-sinc
- * @since 5.5
- */
- define('IMG_SINC', 19);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-nearest-neighbour
- * @since 5.5
- */
- define('IMG_NEAREST_NEIGHBOUR', 16);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-weighted4
- * @since 5.5
- */
- define('IMG_WEIGHTED4', 21);
- /**
- * Used together with {@see imagesetinterpolation()}.
- * @link https://php.net/manual/en/image.constants.php#constant.img-triangle
- * @since 5.5
- */
- define('IMG_TRIANGLE', 20);
- define('IMG_TGA', 128);
- /**
- * Return an image containing the affine tramsformed src image, using an optional clipping area
- * @link https://www.php.net/manual/en/function.imageaffine.php
- * @param resource $image <p>An image resource, returned by one of the image creation functions,
- * such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.</p>
- * @param array $affine <p>Array with keys 0 to 5.</p>
- * @param array $clip [optional] <p>Array with keys "x", "y", "width" and "height".</p>
- * @return resource|bool Return affined image resource on success or FALSE on failure.
- */
- function imageaffine($image, $affine, $clip = null) {}
- /**
- * Concat two matrices (as in doing many ops in one go)
- * @link https://www.php.net/manual/en/function.imageaffinematrixconcat.php
- * @param array $m1 <p>Array with keys 0 to 5.</p>
- * @param array $m2 <p>Array with keys 0 to 5.</p>
- * @return array|bool Array with keys 0 to 5 and float values or <b>FALSE</b> on failure.
- * @since 5.5
- */
- function imageaffinematrixconcat(array $m1, array $m2) {}
- /**
- * Return an image containing the affine tramsformed src image, using an optional clipping area
- * @link https://www.php.net/manual/en/function.imageaffinematrixget.php
- * @param int $type <p> One of <b>IMG_AFFINE_*</b> constants.
- * @param mixed $options [optional]
- * @return array|bool Array with keys 0 to 5 and float values or <b>FALSE</b> on failure.
- * @since 5.5
- */
- function imageaffinematrixget ($type, $options = null) {}
- /**
- * Crop an image using the given coordinates and size, x, y, width and height
- * @link https://www.php.net/manual/en/function.imagecrop.php
- * @param resource $image <p>
- * An image resource, returned by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
- * </p>
- * @param array $rect <p>Array with keys "x", "y", "width" and "height".</p>
- * @return resource|bool Return cropped image resource on success or FALSE on failure.
- * @since 5.5
- */
- function imagecrop ($image, $rect) {}
- /**
- * Crop an image automatically using one of the available modes
- * @link https://www.php.net/manual/en/function.imagecropauto.php
- * @param resource $image <p>
- * An image resource, returned by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
- * </p>
- * @param int $mode [optional] <p>
- * One of <b>IMG_CROP_*</b> constants.
- * </p>
- * @param float $threshold [optional] <p>
- * Used <b>IMG_CROP_THRESHOLD</b> mode.
- * </p>
- * @param int $color [optional]
- * <p>
- * Used in <b>IMG_CROP_THRESHOLD</b> mode.
- * </p>
- * @return resource|bool Return cropped image resource on success or <b>FALSE</b> on failure.
- * @since 5.5
- */
- function imagecropauto ($image, $mode = IMG_CROP_DEFAULT, $threshold = .5, $color = -1) {}
- /**
- * Flips an image using a given mode
- * @link https://www.php.net/manual/en/function.imageflip.php
- * @param resource $image <p>
- * An image resource, returned by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
- * </p>
- * @param int $mode <p>
- * Flip mode, this can be one of the <b>IMG_FLIP_*</b> constants:
- * </p>
- * <table>
- * <thead>
- * <tr>
- * <th>Constant</th>
- * <th>Meaning</th>
- * </tr>
- * </thead>
- * <tr>
- * <td><b>IMG_FLIP_HORIZONTAL</b></td>
- * <td>
- * Flips the image horizontally.
- * </td>
- * </tr>
- * <tr>
- * <td><b>IMG_FLIP_VERTICAL</b></td>
- * <td>
- * Flips the image vertically.
- * </td>
- * </tr>
- * <tr>
- * <td><b>IMG_FLIP_BOTH</b></td>
- * <td>
- * Flips the image both horizontally and vertically.
- * </td>
- * </tr>
- * </tbody>
- * </table>
- * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
- * @since 5.5
- */
- function imageflip ($image, $mode) {}
- /**
- * Converts a palette based image to true color
- * @link https://www.php.net/manual/en/function.imagepalettetotruecolor.php
- * @param resource $image <p>
- * An image resource, returnd by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
- * </p>
- * @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.
- * @since 5.5
- */
- function imagepalettetotruecolor ($image) {}
- /**
- * @since 5.5
- * Scale an image using the given new width and height
- * @link https://www.php.net/manual/en/function.imagescale.php
- * @param resource $image <p>
- * An image resource, returnd by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
- * </p>
- * @param int $new_width
- * @param int $new_height [optional]
- * @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).
- * @return resource|bool Return scaled image resource on success or <b>FALSE</b> on failure.
- */
- function imagescale ($image, $new_width, $new_height = -1, $mode = IMG_BILINEAR_FIXED) {}
- /**
- * Set the interpolation method
- * @link https://www.php.net/manual/en/function.imagesetinterpolation.php
- * @param resource $image <p>
- * An image resource, returned by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
- * </p>
- * @param int $method <p>
- * The interpolation method, which can be one of the following:
- * <ul>
- * <li>
- * IMG_BELL: Bell filter.
- * </li>
- * <li>
- * IMG_BESSEL: Bessel filter.
- * </li>
- * <li>
- * IMG_BICUBIC: Bicubic interpolation.
- * </li>
- * <li>
- * IMG_BICUBIC_FIXED: Fixed point implementation of the bicubic interpolation.
- * </li>
- * <li>
- * IMG_BILINEAR_FIXED: Fixed point implementation of the bilinear interpolation (<em>default (also on image creation)</em>).
- * </li>
- * <li>
- * IMG_BLACKMAN: Blackman window function.
- * </li>
- * <li>
- * IMG_BOX: Box blur filter.
- * </li>
- * <li>
- * IMG_BSPLINE: Spline interpolation.
- * </li>
- * <li>
- * IMG_CATMULLROM: Cubbic Hermite spline interpolation.
- * </li>
- * <li>
- * IMG_GAUSSIAN: Gaussian function.
- * </li>
- * <li>
- * IMG_GENERALIZED_CUBIC: Generalized cubic spline fractal interpolation.
- * </li>
- * <li>
- * IMG_HERMITE: Hermite interpolation.
- * </li>
- * <li>
- * IMG_HAMMING: Hamming filter.
- * </li>
- * <li>
- * IMG_HANNING: Hanning filter.
- * </li>
- * <li>
- * IMG_MITCHELL: Mitchell filter.
- * </li>
- * <li>
- * IMG_POWER: Power interpolation.
- * </li>
- * <li>
- * IMG_QUADRATIC: Inverse quadratic interpolation.
- * </li>
- * <li>
- * IMG_SINC: Sinc function.
- * </li>
- * <li>
- * IMG_NEAREST_NEIGHBOUR: Nearest neighbour interpolation.
- * </li>
- * <li>
- * IMG_WEIGHTED4: Weighting filter.
- * </li>
- * <li>
- * IMG_TRIANGLE: Triangle interpolation.
- * </li>
- * </ul>
- * </p>
- * @return bool Returns TRUE on success or FALSE on failure.
- * @since 5.5
- */
- function imagesetinterpolation ($image, $method = IMG_BILINEAR_FIXED) {}
|