imagick.php 209 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744
  1. <?php
  2. // Start of imagick v.3.4.3
  3. class ImagickException extends Exception {
  4. }
  5. class ImagickDrawException extends Exception {
  6. }
  7. class ImagickPixelIteratorException extends Exception {
  8. }
  9. class ImagickPixelException extends Exception {
  10. }
  11. /**
  12. * @method Imagick clone() (PECL imagick 2.0.0)<br/>Makes an exact copy of the Imagick object
  13. * @link https://php.net/manual/en/class.imagick.php
  14. */
  15. class Imagick implements Iterator, Countable {
  16. const COLOR_BLACK = 11;
  17. const COLOR_BLUE = 12;
  18. const COLOR_CYAN = 13;
  19. const COLOR_GREEN = 14;
  20. const COLOR_RED = 15;
  21. const COLOR_YELLOW = 16;
  22. const COLOR_MAGENTA = 17;
  23. const COLOR_OPACITY = 18;
  24. const COLOR_ALPHA = 19;
  25. const COLOR_FUZZ = 20;
  26. const IMAGICK_EXTNUM = 30403;
  27. const IMAGICK_EXTVER = "3.4.3";
  28. const QUANTUM_RANGE = 65535;
  29. const USE_ZEND_MM = 0;
  30. const COMPOSITE_DEFAULT = 40;
  31. const COMPOSITE_UNDEFINED = 0;
  32. const COMPOSITE_NO = 1;
  33. const COMPOSITE_ADD = 2;
  34. const COMPOSITE_ATOP = 3;
  35. const COMPOSITE_BLEND = 4;
  36. const COMPOSITE_BUMPMAP = 5;
  37. const COMPOSITE_CLEAR = 7;
  38. const COMPOSITE_COLORBURN = 8;
  39. const COMPOSITE_COLORDODGE = 9;
  40. const COMPOSITE_COLORIZE = 10;
  41. const COMPOSITE_COPYBLACK = 11;
  42. const COMPOSITE_COPYBLUE = 12;
  43. const COMPOSITE_COPY = 13;
  44. const COMPOSITE_COPYCYAN = 14;
  45. const COMPOSITE_COPYGREEN = 15;
  46. const COMPOSITE_COPYMAGENTA = 16;
  47. const COMPOSITE_COPYOPACITY = 17;
  48. const COMPOSITE_COPYRED = 18;
  49. const COMPOSITE_COPYYELLOW = 19;
  50. const COMPOSITE_DARKEN = 20;
  51. const COMPOSITE_DSTATOP = 21;
  52. const COMPOSITE_DST = 22;
  53. const COMPOSITE_DSTIN = 23;
  54. const COMPOSITE_DSTOUT = 24;
  55. const COMPOSITE_DSTOVER = 25;
  56. const COMPOSITE_DIFFERENCE = 26;
  57. const COMPOSITE_DISPLACE = 27;
  58. const COMPOSITE_DISSOLVE = 28;
  59. const COMPOSITE_EXCLUSION = 29;
  60. const COMPOSITE_HARDLIGHT = 30;
  61. const COMPOSITE_HUE = 31;
  62. const COMPOSITE_IN = 32;
  63. const COMPOSITE_LIGHTEN = 33;
  64. const COMPOSITE_LUMINIZE = 35;
  65. const COMPOSITE_MINUS = 36;
  66. const COMPOSITE_MODULATE = 37;
  67. const COMPOSITE_MULTIPLY = 38;
  68. const COMPOSITE_OUT = 39;
  69. const COMPOSITE_OVER = 40;
  70. const COMPOSITE_OVERLAY = 41;
  71. const COMPOSITE_PLUS = 42;
  72. const COMPOSITE_REPLACE = 43;
  73. const COMPOSITE_SATURATE = 44;
  74. const COMPOSITE_SCREEN = 45;
  75. const COMPOSITE_SOFTLIGHT = 46;
  76. const COMPOSITE_SRCATOP = 47;
  77. const COMPOSITE_SRC = 48;
  78. const COMPOSITE_SRCIN = 49;
  79. const COMPOSITE_SRCOUT = 50;
  80. const COMPOSITE_SRCOVER = 51;
  81. const COMPOSITE_SUBTRACT = 52;
  82. const COMPOSITE_THRESHOLD = 53;
  83. const COMPOSITE_XOR = 54;
  84. const COMPOSITE_CHANGEMASK = 6;
  85. const COMPOSITE_LINEARLIGHT = 34;
  86. const COMPOSITE_DIVIDE = 55;
  87. const COMPOSITE_DISTORT = 56;
  88. const COMPOSITE_BLUR = 57;
  89. const COMPOSITE_PEGTOPLIGHT = 58;
  90. const COMPOSITE_VIVIDLIGHT = 59;
  91. const COMPOSITE_PINLIGHT = 60;
  92. const COMPOSITE_LINEARDODGE = 61;
  93. const COMPOSITE_LINEARBURN = 62;
  94. const COMPOSITE_MATHEMATICS = 63;
  95. const COMPOSITE_MODULUSADD = 2;
  96. const COMPOSITE_MODULUSSUBTRACT = 52;
  97. const COMPOSITE_MINUSDST = 36;
  98. const COMPOSITE_DIVIDEDST = 55;
  99. const COMPOSITE_DIVIDESRC = 64;
  100. const COMPOSITE_MINUSSRC = 65;
  101. const COMPOSITE_DARKENINTENSITY = 66;
  102. const COMPOSITE_LIGHTENINTENSITY = 67;
  103. const MONTAGEMODE_FRAME = 1;
  104. const MONTAGEMODE_UNFRAME = 2;
  105. const MONTAGEMODE_CONCATENATE = 3;
  106. const STYLE_NORMAL = 1;
  107. const STYLE_ITALIC = 2;
  108. const STYLE_OBLIQUE = 3;
  109. const STYLE_ANY = 4;
  110. const FILTER_UNDEFINED = 0;
  111. const FILTER_POINT = 1;
  112. const FILTER_BOX = 2;
  113. const FILTER_TRIANGLE = 3;
  114. const FILTER_HERMITE = 4;
  115. const FILTER_HANNING = 5;
  116. const FILTER_HAMMING = 6;
  117. const FILTER_BLACKMAN = 7;
  118. const FILTER_GAUSSIAN = 8;
  119. const FILTER_QUADRATIC = 9;
  120. const FILTER_CUBIC = 10;
  121. const FILTER_CATROM = 11;
  122. const FILTER_MITCHELL = 12;
  123. const FILTER_LANCZOS = 22;
  124. const FILTER_BESSEL = 13;
  125. const FILTER_SINC = 14;
  126. const FILTER_KAISER = 16;
  127. const FILTER_WELSH = 17;
  128. const FILTER_PARZEN = 18;
  129. const FILTER_LAGRANGE = 21;
  130. const FILTER_SENTINEL = 31;
  131. const FILTER_BOHMAN = 19;
  132. const FILTER_BARTLETT = 20;
  133. const FILTER_JINC = 13;
  134. const FILTER_SINCFAST = 15;
  135. const FILTER_ROBIDOUX = 26;
  136. const FILTER_LANCZOSSHARP = 23;
  137. const FILTER_LANCZOS2 = 24;
  138. const FILTER_LANCZOS2SHARP = 25;
  139. const FILTER_ROBIDOUXSHARP = 27;
  140. const FILTER_COSINE = 28;
  141. const FILTER_SPLINE = 29;
  142. const FILTER_LANCZOSRADIUS = 30;
  143. const IMGTYPE_UNDEFINED = 0;
  144. const IMGTYPE_BILEVEL = 1;
  145. const IMGTYPE_GRAYSCALE = 2;
  146. const IMGTYPE_GRAYSCALEMATTE = 3;
  147. const IMGTYPE_PALETTE = 4;
  148. const IMGTYPE_PALETTEMATTE = 5;
  149. const IMGTYPE_TRUECOLOR = 6;
  150. const IMGTYPE_TRUECOLORMATTE = 7;
  151. const IMGTYPE_COLORSEPARATION = 8;
  152. const IMGTYPE_COLORSEPARATIONMATTE = 9;
  153. const IMGTYPE_OPTIMIZE = 10;
  154. const IMGTYPE_PALETTEBILEVELMATTE = 11;
  155. const RESOLUTION_UNDEFINED = 0;
  156. const RESOLUTION_PIXELSPERINCH = 1;
  157. const RESOLUTION_PIXELSPERCENTIMETER = 2;
  158. const COMPRESSION_UNDEFINED = 0;
  159. const COMPRESSION_NO = 1;
  160. const COMPRESSION_BZIP = 2;
  161. const COMPRESSION_FAX = 6;
  162. const COMPRESSION_GROUP4 = 7;
  163. const COMPRESSION_JPEG = 8;
  164. const COMPRESSION_JPEG2000 = 9;
  165. const COMPRESSION_LOSSLESSJPEG = 10;
  166. const COMPRESSION_LZW = 11;
  167. const COMPRESSION_RLE = 12;
  168. const COMPRESSION_ZIP = 13;
  169. const COMPRESSION_DXT1 = 3;
  170. const COMPRESSION_DXT3 = 4;
  171. const COMPRESSION_DXT5 = 5;
  172. const COMPRESSION_ZIPS = 14;
  173. const COMPRESSION_PIZ = 15;
  174. const COMPRESSION_PXR24 = 16;
  175. const COMPRESSION_B44 = 17;
  176. const COMPRESSION_B44A = 18;
  177. const COMPRESSION_LZMA = 19;
  178. const COMPRESSION_JBIG1 = 20;
  179. const COMPRESSION_JBIG2 = 21;
  180. const PAINT_POINT = 1;
  181. const PAINT_REPLACE = 2;
  182. const PAINT_FLOODFILL = 3;
  183. const PAINT_FILLTOBORDER = 4;
  184. const PAINT_RESET = 5;
  185. const GRAVITY_NORTHWEST = 1;
  186. const GRAVITY_NORTH = 2;
  187. const GRAVITY_NORTHEAST = 3;
  188. const GRAVITY_WEST = 4;
  189. const GRAVITY_CENTER = 5;
  190. const GRAVITY_EAST = 6;
  191. const GRAVITY_SOUTHWEST = 7;
  192. const GRAVITY_SOUTH = 8;
  193. const GRAVITY_SOUTHEAST = 9;
  194. const GRAVITY_FORGET = 0;
  195. const GRAVITY_STATIC = 10;
  196. const STRETCH_NORMAL = 1;
  197. const STRETCH_ULTRACONDENSED = 2;
  198. const STRETCH_EXTRACONDENSED = 3;
  199. const STRETCH_CONDENSED = 4;
  200. const STRETCH_SEMICONDENSED = 5;
  201. const STRETCH_SEMIEXPANDED = 6;
  202. const STRETCH_EXPANDED = 7;
  203. const STRETCH_EXTRAEXPANDED = 8;
  204. const STRETCH_ULTRAEXPANDED = 9;
  205. const STRETCH_ANY = 10;
  206. const ALIGN_UNDEFINED = 0;
  207. const ALIGN_LEFT = 1;
  208. const ALIGN_CENTER = 2;
  209. const ALIGN_RIGHT = 3;
  210. const DECORATION_NO = 1;
  211. const DECORATION_UNDERLINE = 2;
  212. const DECORATION_OVERLINE = 3;
  213. const DECORATION_LINETROUGH = 4;
  214. const DECORATION_LINETHROUGH = 4;
  215. const NOISE_UNIFORM = 1;
  216. const NOISE_GAUSSIAN = 2;
  217. const NOISE_MULTIPLICATIVEGAUSSIAN = 3;
  218. const NOISE_IMPULSE = 4;
  219. const NOISE_LAPLACIAN = 5;
  220. const NOISE_POISSON = 6;
  221. const NOISE_RANDOM = 7;
  222. const CHANNEL_UNDEFINED = 0;
  223. const CHANNEL_RED = 1;
  224. const CHANNEL_GRAY = 1;
  225. const CHANNEL_CYAN = 1;
  226. const CHANNEL_GREEN = 2;
  227. const CHANNEL_MAGENTA = 2;
  228. const CHANNEL_BLUE = 4;
  229. const CHANNEL_YELLOW = 4;
  230. const CHANNEL_ALPHA = 8;
  231. const CHANNEL_OPACITY = 8;
  232. const CHANNEL_MATTE = 8;
  233. const CHANNEL_BLACK = 32;
  234. const CHANNEL_INDEX = 32;
  235. const CHANNEL_ALL = 134217727;
  236. const CHANNEL_DEFAULT = 134217719;
  237. const CHANNEL_RGBA = 15;
  238. const CHANNEL_TRUEALPHA = 64;
  239. const CHANNEL_RGBS = 128;
  240. const CHANNEL_GRAY_CHANNELS = 128;
  241. const CHANNEL_SYNC = 256;
  242. const CHANNEL_COMPOSITES = 47;
  243. const METRIC_UNDEFINED = 0;
  244. const METRIC_ABSOLUTEERRORMETRIC = 1;
  245. const METRIC_MEANABSOLUTEERROR = 2;
  246. const METRIC_MEANERRORPERPIXELMETRIC = 3;
  247. const METRIC_MEANSQUAREERROR = 4;
  248. const METRIC_PEAKABSOLUTEERROR = 5;
  249. const METRIC_PEAKSIGNALTONOISERATIO = 6;
  250. const METRIC_ROOTMEANSQUAREDERROR = 7;
  251. const METRIC_NORMALIZEDCROSSCORRELATIONERRORMETRIC = 8;
  252. const METRIC_FUZZERROR = 9;
  253. const PIXEL_CHAR = 1;
  254. const PIXEL_DOUBLE = 2;
  255. const PIXEL_FLOAT = 3;
  256. const PIXEL_INTEGER = 4;
  257. const PIXEL_LONG = 5;
  258. const PIXEL_QUANTUM = 6;
  259. const PIXEL_SHORT = 7;
  260. const EVALUATE_UNDEFINED = 0;
  261. const EVALUATE_ADD = 1;
  262. const EVALUATE_AND = 2;
  263. const EVALUATE_DIVIDE = 3;
  264. const EVALUATE_LEFTSHIFT = 4;
  265. const EVALUATE_MAX = 5;
  266. const EVALUATE_MIN = 6;
  267. const EVALUATE_MULTIPLY = 7;
  268. const EVALUATE_OR = 8;
  269. const EVALUATE_RIGHTSHIFT = 9;
  270. const EVALUATE_SET = 10;
  271. const EVALUATE_SUBTRACT = 11;
  272. const EVALUATE_XOR = 12;
  273. const EVALUATE_POW = 13;
  274. const EVALUATE_LOG = 14;
  275. const EVALUATE_THRESHOLD = 15;
  276. const EVALUATE_THRESHOLDBLACK = 16;
  277. const EVALUATE_THRESHOLDWHITE = 17;
  278. const EVALUATE_GAUSSIANNOISE = 18;
  279. const EVALUATE_IMPULSENOISE = 19;
  280. const EVALUATE_LAPLACIANNOISE = 20;
  281. const EVALUATE_MULTIPLICATIVENOISE = 21;
  282. const EVALUATE_POISSONNOISE = 22;
  283. const EVALUATE_UNIFORMNOISE = 23;
  284. const EVALUATE_COSINE = 24;
  285. const EVALUATE_SINE = 25;
  286. const EVALUATE_ADDMODULUS = 26;
  287. const EVALUATE_MEAN = 27;
  288. const EVALUATE_ABS = 28;
  289. const EVALUATE_EXPONENTIAL = 29;
  290. const EVALUATE_MEDIAN = 30;
  291. const EVALUATE_SUM = 31;
  292. const COLORSPACE_UNDEFINED = 0;
  293. const COLORSPACE_RGB = 1;
  294. const COLORSPACE_GRAY = 2;
  295. const COLORSPACE_TRANSPARENT = 3;
  296. const COLORSPACE_OHTA = 4;
  297. const COLORSPACE_LAB = 5;
  298. const COLORSPACE_XYZ = 6;
  299. const COLORSPACE_YCBCR = 7;
  300. const COLORSPACE_YCC = 8;
  301. const COLORSPACE_YIQ = 9;
  302. const COLORSPACE_YPBPR = 10;
  303. const COLORSPACE_YUV = 11;
  304. const COLORSPACE_CMYK = 12;
  305. const COLORSPACE_SRGB = 13;
  306. const COLORSPACE_HSB = 14;
  307. const COLORSPACE_HSL = 15;
  308. const COLORSPACE_HWB = 16;
  309. const COLORSPACE_REC601LUMA = 17;
  310. const COLORSPACE_REC709LUMA = 19;
  311. const COLORSPACE_LOG = 21;
  312. const COLORSPACE_CMY = 22;
  313. const COLORSPACE_LUV = 23;
  314. const COLORSPACE_HCL = 24;
  315. const COLORSPACE_LCH = 25;
  316. const COLORSPACE_LMS = 26;
  317. const COLORSPACE_LCHAB = 27;
  318. const COLORSPACE_LCHUV = 28;
  319. const COLORSPACE_SCRGB = 29;
  320. const COLORSPACE_HSI = 30;
  321. const COLORSPACE_HSV = 31;
  322. const COLORSPACE_HCLP = 32;
  323. const COLORSPACE_YDBDR = 33;
  324. const COLORSPACE_REC601YCBCR = 18;
  325. const COLORSPACE_REC709YCBCR = 20;
  326. const VIRTUALPIXELMETHOD_UNDEFINED = 0;
  327. const VIRTUALPIXELMETHOD_BACKGROUND = 1;
  328. const VIRTUALPIXELMETHOD_CONSTANT = 2;
  329. const VIRTUALPIXELMETHOD_EDGE = 4;
  330. const VIRTUALPIXELMETHOD_MIRROR = 5;
  331. const VIRTUALPIXELMETHOD_TILE = 7;
  332. const VIRTUALPIXELMETHOD_TRANSPARENT = 8;
  333. const VIRTUALPIXELMETHOD_MASK = 9;
  334. const VIRTUALPIXELMETHOD_BLACK = 10;
  335. const VIRTUALPIXELMETHOD_GRAY = 11;
  336. const VIRTUALPIXELMETHOD_WHITE = 12;
  337. const VIRTUALPIXELMETHOD_HORIZONTALTILE = 13;
  338. const VIRTUALPIXELMETHOD_VERTICALTILE = 14;
  339. const VIRTUALPIXELMETHOD_HORIZONTALTILEEDGE = 15;
  340. const VIRTUALPIXELMETHOD_VERTICALTILEEDGE = 16;
  341. const VIRTUALPIXELMETHOD_CHECKERTILE = 17;
  342. const PREVIEW_UNDEFINED = 0;
  343. const PREVIEW_ROTATE = 1;
  344. const PREVIEW_SHEAR = 2;
  345. const PREVIEW_ROLL = 3;
  346. const PREVIEW_HUE = 4;
  347. const PREVIEW_SATURATION = 5;
  348. const PREVIEW_BRIGHTNESS = 6;
  349. const PREVIEW_GAMMA = 7;
  350. const PREVIEW_SPIFF = 8;
  351. const PREVIEW_DULL = 9;
  352. const PREVIEW_GRAYSCALE = 10;
  353. const PREVIEW_QUANTIZE = 11;
  354. const PREVIEW_DESPECKLE = 12;
  355. const PREVIEW_REDUCENOISE = 13;
  356. const PREVIEW_ADDNOISE = 14;
  357. const PREVIEW_SHARPEN = 15;
  358. const PREVIEW_BLUR = 16;
  359. const PREVIEW_THRESHOLD = 17;
  360. const PREVIEW_EDGEDETECT = 18;
  361. const PREVIEW_SPREAD = 19;
  362. const PREVIEW_SOLARIZE = 20;
  363. const PREVIEW_SHADE = 21;
  364. const PREVIEW_RAISE = 22;
  365. const PREVIEW_SEGMENT = 23;
  366. const PREVIEW_SWIRL = 24;
  367. const PREVIEW_IMPLODE = 25;
  368. const PREVIEW_WAVE = 26;
  369. const PREVIEW_OILPAINT = 27;
  370. const PREVIEW_CHARCOALDRAWING = 28;
  371. const PREVIEW_JPEG = 29;
  372. const RENDERINGINTENT_UNDEFINED = 0;
  373. const RENDERINGINTENT_SATURATION = 1;
  374. const RENDERINGINTENT_PERCEPTUAL = 2;
  375. const RENDERINGINTENT_ABSOLUTE = 3;
  376. const RENDERINGINTENT_RELATIVE = 4;
  377. const INTERLACE_UNDEFINED = 0;
  378. const INTERLACE_NO = 1;
  379. const INTERLACE_LINE = 2;
  380. const INTERLACE_PLANE = 3;
  381. const INTERLACE_PARTITION = 4;
  382. const INTERLACE_GIF = 5;
  383. const INTERLACE_JPEG = 6;
  384. const INTERLACE_PNG = 7;
  385. const FILLRULE_UNDEFINED = 0;
  386. const FILLRULE_EVENODD = 1;
  387. const FILLRULE_NONZERO = 2;
  388. const PATHUNITS_UNDEFINED = 0;
  389. const PATHUNITS_USERSPACE = 1;
  390. const PATHUNITS_USERSPACEONUSE = 2;
  391. const PATHUNITS_OBJECTBOUNDINGBOX = 3;
  392. const LINECAP_UNDEFINED = 0;
  393. const LINECAP_BUTT = 1;
  394. const LINECAP_ROUND = 2;
  395. const LINECAP_SQUARE = 3;
  396. const LINEJOIN_UNDEFINED = 0;
  397. const LINEJOIN_MITER = 1;
  398. const LINEJOIN_ROUND = 2;
  399. const LINEJOIN_BEVEL = 3;
  400. const RESOURCETYPE_UNDEFINED = 0;
  401. const RESOURCETYPE_AREA = 1;
  402. const RESOURCETYPE_DISK = 2;
  403. const RESOURCETYPE_FILE = 3;
  404. const RESOURCETYPE_MAP = 4;
  405. const RESOURCETYPE_MEMORY = 5;
  406. const RESOURCETYPE_TIME = 7;
  407. const RESOURCETYPE_THROTTLE = 8;
  408. const RESOURCETYPE_THREAD = 6;
  409. const DISPOSE_UNRECOGNIZED = 0;
  410. const DISPOSE_UNDEFINED = 0;
  411. const DISPOSE_NONE = 1;
  412. const DISPOSE_BACKGROUND = 2;
  413. const DISPOSE_PREVIOUS = 3;
  414. const INTERPOLATE_UNDEFINED = 0;
  415. const INTERPOLATE_AVERAGE = 1;
  416. const INTERPOLATE_BICUBIC = 2;
  417. const INTERPOLATE_BILINEAR = 3;
  418. const INTERPOLATE_FILTER = 4;
  419. const INTERPOLATE_INTEGER = 5;
  420. const INTERPOLATE_MESH = 6;
  421. const INTERPOLATE_NEARESTNEIGHBOR = 7;
  422. const INTERPOLATE_SPLINE = 8;
  423. const LAYERMETHOD_UNDEFINED = 0;
  424. const LAYERMETHOD_COALESCE = 1;
  425. const LAYERMETHOD_COMPAREANY = 2;
  426. const LAYERMETHOD_COMPARECLEAR = 3;
  427. const LAYERMETHOD_COMPAREOVERLAY = 4;
  428. const LAYERMETHOD_DISPOSE = 5;
  429. const LAYERMETHOD_OPTIMIZE = 6;
  430. const LAYERMETHOD_OPTIMIZEPLUS = 8;
  431. const LAYERMETHOD_OPTIMIZETRANS = 9;
  432. const LAYERMETHOD_COMPOSITE = 12;
  433. const LAYERMETHOD_OPTIMIZEIMAGE = 7;
  434. const LAYERMETHOD_REMOVEDUPS = 10;
  435. const LAYERMETHOD_REMOVEZERO = 11;
  436. const LAYERMETHOD_TRIMBOUNDS = 16;
  437. const ORIENTATION_UNDEFINED = 0;
  438. const ORIENTATION_TOPLEFT = 1;
  439. const ORIENTATION_TOPRIGHT = 2;
  440. const ORIENTATION_BOTTOMRIGHT = 3;
  441. const ORIENTATION_BOTTOMLEFT = 4;
  442. const ORIENTATION_LEFTTOP = 5;
  443. const ORIENTATION_RIGHTTOP = 6;
  444. const ORIENTATION_RIGHTBOTTOM = 7;
  445. const ORIENTATION_LEFTBOTTOM = 8;
  446. const DISTORTION_UNDEFINED = 0;
  447. const DISTORTION_AFFINE = 1;
  448. const DISTORTION_AFFINEPROJECTION = 2;
  449. const DISTORTION_ARC = 9;
  450. const DISTORTION_BILINEAR = 6;
  451. const DISTORTION_PERSPECTIVE = 4;
  452. const DISTORTION_PERSPECTIVEPROJECTION = 5;
  453. const DISTORTION_SCALEROTATETRANSLATE = 3;
  454. const DISTORTION_POLYNOMIAL = 8;
  455. const DISTORTION_POLAR = 10;
  456. const DISTORTION_DEPOLAR = 11;
  457. const DISTORTION_BARREL = 14;
  458. const DISTORTION_SHEPARDS = 16;
  459. const DISTORTION_SENTINEL = 18;
  460. const DISTORTION_BARRELINVERSE = 15;
  461. const DISTORTION_BILINEARFORWARD = 6;
  462. const DISTORTION_BILINEARREVERSE = 7;
  463. const DISTORTION_RESIZE = 17;
  464. const DISTORTION_CYLINDER2PLANE = 12;
  465. const DISTORTION_PLANE2CYLINDER = 13;
  466. const LAYERMETHOD_MERGE = 13;
  467. const LAYERMETHOD_FLATTEN = 14;
  468. const LAYERMETHOD_MOSAIC = 15;
  469. const ALPHACHANNEL_ACTIVATE = 1;
  470. const ALPHACHANNEL_RESET = 7;
  471. const ALPHACHANNEL_SET = 8;
  472. const ALPHACHANNEL_UNDEFINED = 0;
  473. const ALPHACHANNEL_COPY = 3;
  474. const ALPHACHANNEL_DEACTIVATE = 4;
  475. const ALPHACHANNEL_EXTRACT = 5;
  476. const ALPHACHANNEL_OPAQUE = 6;
  477. const ALPHACHANNEL_SHAPE = 9;
  478. const ALPHACHANNEL_TRANSPARENT = 10;
  479. const SPARSECOLORMETHOD_UNDEFINED = 0;
  480. const SPARSECOLORMETHOD_BARYCENTRIC = 1;
  481. const SPARSECOLORMETHOD_BILINEAR = 7;
  482. const SPARSECOLORMETHOD_POLYNOMIAL = 8;
  483. const SPARSECOLORMETHOD_SPEPARDS = 16;
  484. const SPARSECOLORMETHOD_VORONOI = 18;
  485. const SPARSECOLORMETHOD_INVERSE = 19;
  486. const DITHERMETHOD_UNDEFINED = 0;
  487. const DITHERMETHOD_NO = 1;
  488. const DITHERMETHOD_RIEMERSMA = 2;
  489. const DITHERMETHOD_FLOYDSTEINBERG = 3;
  490. const FUNCTION_UNDEFINED = 0;
  491. const FUNCTION_POLYNOMIAL = 1;
  492. const FUNCTION_SINUSOID = 2;
  493. const ALPHACHANNEL_BACKGROUND = 2;
  494. const FUNCTION_ARCSIN = 3;
  495. const FUNCTION_ARCTAN = 4;
  496. const ALPHACHANNEL_FLATTEN = 11;
  497. const ALPHACHANNEL_REMOVE = 12;
  498. const STATISTIC_GRADIENT = 1;
  499. const STATISTIC_MAXIMUM = 2;
  500. const STATISTIC_MEAN = 3;
  501. const STATISTIC_MEDIAN = 4;
  502. const STATISTIC_MINIMUM = 5;
  503. const STATISTIC_MODE = 6;
  504. const STATISTIC_NONPEAK = 7;
  505. const STATISTIC_STANDARD_DEVIATION = 8;
  506. const MORPHOLOGY_CONVOLVE = 1;
  507. const MORPHOLOGY_CORRELATE = 2;
  508. const MORPHOLOGY_ERODE = 3;
  509. const MORPHOLOGY_DILATE = 4;
  510. const MORPHOLOGY_ERODE_INTENSITY = 5;
  511. const MORPHOLOGY_DILATE_INTENSITY = 6;
  512. const MORPHOLOGY_DISTANCE = 7;
  513. const MORPHOLOGY_OPEN = 8;
  514. const MORPHOLOGY_CLOSE = 9;
  515. const MORPHOLOGY_OPEN_INTENSITY = 10;
  516. const MORPHOLOGY_CLOSE_INTENSITY = 11;
  517. const MORPHOLOGY_SMOOTH = 12;
  518. const MORPHOLOGY_EDGE_IN = 13;
  519. const MORPHOLOGY_EDGE_OUT = 14;
  520. const MORPHOLOGY_EDGE = 15;
  521. const MORPHOLOGY_TOP_HAT = 16;
  522. const MORPHOLOGY_BOTTOM_HAT = 17;
  523. const MORPHOLOGY_HIT_AND_MISS = 18;
  524. const MORPHOLOGY_THINNING = 19;
  525. const MORPHOLOGY_THICKEN = 20;
  526. const MORPHOLOGY_VORONOI = 21;
  527. const MORPHOLOGY_ITERATIVE = 22;
  528. const KERNEL_UNITY = 1;
  529. const KERNEL_GAUSSIAN = 2;
  530. const KERNEL_DIFFERENCE_OF_GAUSSIANS = 3;
  531. const KERNEL_LAPLACIAN_OF_GAUSSIANS = 4;
  532. const KERNEL_BLUR = 5;
  533. const KERNEL_COMET = 6;
  534. const KERNEL_LAPLACIAN = 7;
  535. const KERNEL_SOBEL = 8;
  536. const KERNEL_FREI_CHEN = 9;
  537. const KERNEL_ROBERTS = 10;
  538. const KERNEL_PREWITT = 11;
  539. const KERNEL_COMPASS = 12;
  540. const KERNEL_KIRSCH = 13;
  541. const KERNEL_DIAMOND = 14;
  542. const KERNEL_SQUARE = 15;
  543. const KERNEL_RECTANGLE = 16;
  544. const KERNEL_OCTAGON = 17;
  545. const KERNEL_DISK = 18;
  546. const KERNEL_PLUS = 19;
  547. const KERNEL_CROSS = 20;
  548. const KERNEL_RING = 21;
  549. const KERNEL_PEAKS = 22;
  550. const KERNEL_EDGES = 23;
  551. const KERNEL_CORNERS = 24;
  552. const KERNEL_DIAGONALS = 25;
  553. const KERNEL_LINE_ENDS = 26;
  554. const KERNEL_LINE_JUNCTIONS = 27;
  555. const KERNEL_RIDGES = 28;
  556. const KERNEL_CONVEX_HULL = 29;
  557. const KERNEL_THIN_SE = 30;
  558. const KERNEL_SKELETON = 31;
  559. const KERNEL_CHEBYSHEV = 32;
  560. const KERNEL_MANHATTAN = 33;
  561. const KERNEL_OCTAGONAL = 34;
  562. const KERNEL_EUCLIDEAN = 35;
  563. const KERNEL_USER_DEFINED = 36;
  564. const KERNEL_BINOMIAL = 37;
  565. const DIRECTION_LEFT_TO_RIGHT = 2;
  566. const DIRECTION_RIGHT_TO_LEFT = 1;
  567. const NORMALIZE_KERNEL_NONE = 0;
  568. const NORMALIZE_KERNEL_VALUE = 8192;
  569. const NORMALIZE_KERNEL_CORRELATE = 65536;
  570. const NORMALIZE_KERNEL_PERCENT = 4096;
  571. /**
  572. * (PECL imagick 2.0.0)<br/>
  573. * Removes repeated portions of images to optimize
  574. * @link https://php.net/manual/en/imagick.optimizeimagelayers.php
  575. * @return bool <b>TRUE</b> on success.
  576. */
  577. public function optimizeImageLayers () {}
  578. /**
  579. * (PECL imagick 2.0.0)<br/>
  580. * Returns the maximum bounding region between images
  581. * @link https://php.net/manual/en/imagick.compareimagelayers.php
  582. * @param int $method <p>
  583. * One of the layer method constants.
  584. * </p>
  585. * @return Imagick <b>TRUE</b> on success.
  586. */
  587. public function compareImageLayers ($method) {}
  588. /**
  589. * (PECL imagick 2.0.0)<br/>
  590. * Quickly fetch attributes
  591. * @link https://php.net/manual/en/imagick.pingimageblob.php
  592. * @param string $image <p>
  593. * A string containing the image.
  594. * </p>
  595. * @return bool <b>TRUE</b> on success.
  596. */
  597. public function pingImageBlob ($image) {}
  598. /**
  599. * (PECL imagick 2.0.0)<br/>
  600. * Get basic image attributes in a lightweight manner
  601. * @link https://php.net/manual/en/imagick.pingimagefile.php
  602. * @param resource $filehandle <p>
  603. * An open filehandle to the image.
  604. * </p>
  605. * @param string $fileName [optional] <p>
  606. * Optional filename for this image.
  607. * </p>
  608. * @return bool <b>TRUE</b> on success.
  609. */
  610. public function pingImageFile ($filehandle, $fileName = null) {}
  611. /**
  612. * (PECL imagick 2.0.0)<br/>
  613. * Creates a vertical mirror image
  614. * @link https://php.net/manual/en/imagick.transposeimage.php
  615. * @return bool <b>TRUE</b> on success.
  616. */
  617. public function transposeImage () {}
  618. /**
  619. * (PECL imagick 2.0.0)<br/>
  620. * Creates a horizontal mirror image
  621. * @link https://php.net/manual/en/imagick.transverseimage.php
  622. * @return bool <b>TRUE</b> on success.
  623. */
  624. public function transverseImage () {}
  625. /**
  626. * (PECL imagick 2.0.0)<br/>
  627. * Remove edges from the image
  628. * @link https://php.net/manual/en/imagick.trimimage.php
  629. * @param float $fuzz <p>
  630. * By default target must match a particular pixel color exactly.
  631. * However, in many cases two colors may differ by a small amount.
  632. * The fuzz member of image defines how much tolerance is acceptable
  633. * to consider two colors as the same. This parameter represents the variation
  634. * on the quantum range.
  635. * </p>
  636. * @return bool <b>TRUE</b> on success.
  637. */
  638. public function trimImage ($fuzz) {}
  639. /**
  640. * (PECL imagick 2.0.0)<br/>
  641. * Applies wave filter to the image
  642. * @link https://php.net/manual/en/imagick.waveimage.php
  643. * @param float $amplitude <p>
  644. * The amplitude of the wave.
  645. * </p>
  646. * @param float $length <p>
  647. * The length of the wave.
  648. * </p>
  649. * @return bool <b>TRUE</b> on success.
  650. */
  651. public function waveImage ($amplitude, $length) {}
  652. /**
  653. * (PECL imagick 2.0.0)<br/>
  654. * Adds vignette filter to the image
  655. * @link https://php.net/manual/en/imagick.vignetteimage.php
  656. * @param float $blackPoint <p>
  657. * The black point.
  658. * </p>
  659. * @param float $whitePoint <p>
  660. * The white point
  661. * </p>
  662. * @param int $x <p>
  663. * X offset of the ellipse
  664. * </p>
  665. * @param int $y <p>
  666. * Y offset of the ellipse
  667. * </p>
  668. * @return bool <b>TRUE</b> on success.
  669. */
  670. public function vignetteImage ($blackPoint, $whitePoint, $x, $y) {}
  671. /**
  672. * (PECL imagick 2.0.0)<br/>
  673. * Discards all but one of any pixel color
  674. * @link https://php.net/manual/en/imagick.uniqueimagecolors.php
  675. * @return bool <b>TRUE</b> on success.
  676. */
  677. public function uniqueImageColors () {}
  678. /**
  679. * (PECL imagick 2.0.0)<br/>
  680. * Return if the image has a matte channel
  681. * @link https://php.net/manual/en/imagick.getimagematte.php
  682. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  683. */
  684. public function getImageMatte () {}
  685. /**
  686. * (PECL imagick 2.0.0)<br/>
  687. * Sets the image matte channel
  688. * @link https://php.net/manual/en/imagick.setimagematte.php
  689. * @param bool $matte <p>
  690. * True activates the matte channel and false disables it.
  691. * </p>
  692. * @return bool <b>TRUE</b> on success.
  693. */
  694. public function setImageMatte ($matte) {}
  695. /**
  696. * Adaptively resize image with data dependent triangulation
  697. *
  698. * If legacy is true, the calculations are done with the small rounding bug that existed in Imagick before 3.4.0.<br>
  699. * If false, the calculations should produce the same results as ImageMagick CLI does.<br>
  700. * <br>
  701. * <b>Note:</b> The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched.
  702. * In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given.
  703. * @link https://php.net/manual/en/imagick.adaptiveresizeimage.php
  704. * @param int $columns The number of columns in the scaled image.
  705. * @param int $rows The number of rows in the scaled image.
  706. * @param bool $bestfit [optional] Whether to fit the image inside a bounding box.<br>
  707. * The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched. In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given.
  708. * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE
  709. * @return bool TRUE on success
  710. * @throws ImagickException Throws ImagickException on error
  711. * @since 2.0.0
  712. */
  713. public function adaptiveResizeImage ($columns, $rows, $bestfit = false, $legacy = false) {}
  714. /**
  715. * (PECL imagick 2.0.0)<br/>
  716. * Simulates a pencil sketch
  717. * @link https://php.net/manual/en/imagick.sketchimage.php
  718. * @param float $radius <p>
  719. * The radius of the Gaussian, in pixels, not counting the center pixel
  720. * </p>
  721. * @param float $sigma <p>
  722. * The standard deviation of the Gaussian, in pixels.
  723. * </p>
  724. * @param float $angle <p>
  725. * Apply the effect along this angle.
  726. * </p>
  727. * @return bool <b>TRUE</b> on success.
  728. */
  729. public function sketchImage ($radius, $sigma, $angle) {}
  730. /**
  731. * (PECL imagick 2.0.0)<br/>
  732. * Creates a 3D effect
  733. * @link https://php.net/manual/en/imagick.shadeimage.php
  734. * @param bool $gray <p>
  735. * A value other than zero shades the intensity of each pixel.
  736. * </p>
  737. * @param float $azimuth <p>
  738. * Defines the light source direction.
  739. * </p>
  740. * @param float $elevation <p>
  741. * Defines the light source direction.
  742. * </p>
  743. * @return bool <b>TRUE</b> on success.
  744. */
  745. public function shadeImage ($gray, $azimuth, $elevation) {}
  746. /**
  747. * (PECL imagick 2.0.0)<br/>
  748. * Returns the size offset
  749. * @link https://php.net/manual/en/imagick.getsizeoffset.php
  750. * @return int the size offset associated with the Imagick object.
  751. */
  752. public function getSizeOffset () {}
  753. /**
  754. * (PECL imagick 2.0.0)<br/>
  755. * Sets the size and offset of the Imagick object
  756. * @link https://php.net/manual/en/imagick.setsizeoffset.php
  757. * @param int $columns <p>
  758. * The width in pixels.
  759. * </p>
  760. * @param int $rows <p>
  761. * The height in pixels.
  762. * </p>
  763. * @param int $offset <p>
  764. * The image offset.
  765. * </p>
  766. * @return bool <b>TRUE</b> on success.
  767. */
  768. public function setSizeOffset ($columns, $rows, $offset) {}
  769. /**
  770. * (PECL imagick 2.0.0)<br/>
  771. * Adds adaptive blur filter to image
  772. * @link https://php.net/manual/en/imagick.adaptiveblurimage.php
  773. * @param float $radius <p>
  774. * The radius of the Gaussian, in pixels, not counting the center pixel.
  775. * Provide a value of 0 and the radius will be chosen automagically.
  776. * </p>
  777. * @param float $sigma <p>
  778. * The standard deviation of the Gaussian, in pixels.
  779. * </p>
  780. * @param int $channel [optional] <p>
  781. * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to <b>Imagick::CHANNEL_DEFAULT</b>. Refer to this list of channel constants
  782. * </p>
  783. * @return bool <b>TRUE</b> on success.
  784. */
  785. public function adaptiveBlurImage ($radius, $sigma, $channel = Imagick::CHANNEL_DEFAULT) {}
  786. /**
  787. * (PECL imagick 2.0.0)<br/>
  788. * Enhances the contrast of a color image
  789. * @link https://php.net/manual/en/imagick.contraststretchimage.php
  790. * @param float $black_point <p>
  791. * The black point.
  792. * </p>
  793. * @param float $white_point <p>
  794. * The white point.
  795. * </p>
  796. * @param int $channel [optional] <p>
  797. * Provide any channel constant that is valid for your channel mode. To
  798. * apply to more than one channel, combine channeltype constants using
  799. * bitwise operators. <b>Imagick::CHANNEL_ALL</b>. Refer to this
  800. * list of channel constants.
  801. * </p>
  802. * @return bool <b>TRUE</b> on success.
  803. */
  804. public function contrastStretchImage ($black_point, $white_point, $channel = Imagick::CHANNEL_ALL) {}
  805. /**
  806. * (PECL imagick 2.0.0)<br/>
  807. * Adaptively sharpen the image
  808. * @link https://php.net/manual/en/imagick.adaptivesharpenimage.php
  809. * @param float $radius <p>
  810. * The radius of the Gaussian, in pixels, not counting the center pixel. Use 0 for auto-select.
  811. * </p>
  812. * @param float $sigma <p>
  813. * The standard deviation of the Gaussian, in pixels.
  814. * </p>
  815. * @param int $channel [optional] <p>
  816. * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to <b>Imagick::CHANNEL_DEFAULT</b>. Refer to this list of channel constants
  817. * </p>
  818. * @return bool <b>TRUE</b> on success.
  819. */
  820. public function adaptiveSharpenImage ($radius, $sigma, $channel = Imagick::CHANNEL_DEFAULT) {}
  821. /**
  822. * (PECL imagick 2.0.0)<br/>
  823. * Creates a high-contrast, two-color image
  824. * @link https://php.net/manual/en/imagick.randomthresholdimage.php
  825. * @param float $low <p>
  826. * The low point
  827. * </p>
  828. * @param float $high <p>
  829. * The high point
  830. * </p>
  831. * @param int $channel [optional] <p>
  832. * Provide any channel constant that is valid for your channel mode. To
  833. * apply to more than one channel, combine channeltype constants using
  834. * bitwise operators. Refer to this
  835. * list of channel constants.
  836. * </p>
  837. * @return bool <b>TRUE</b> on success.
  838. */
  839. public function randomThresholdImage ($low, $high, $channel = Imagick::CHANNEL_ALL) {}
  840. /**
  841. * @param $xRounding
  842. * @param $yRounding
  843. * @param $strokeWidth [optional]
  844. * @param $displace [optional]
  845. * @param $sizeCorrection [optional]
  846. */
  847. public function roundCornersImage ($xRounding, $yRounding, $strokeWidth, $displace, $sizeCorrection) {}
  848. /**
  849. * (PECL imagick 2.0.0)<br/>
  850. * Rounds image corners
  851. * @link https://php.net/manual/en/imagick.roundcorners.php
  852. * @param float $x_rounding <p>
  853. * x rounding
  854. * </p>
  855. * @param float $y_rounding <p>
  856. * y rounding
  857. * </p>
  858. * @param float $stroke_width [optional] <p>
  859. * stroke width
  860. * </p>
  861. * @param float $displace [optional] <p>
  862. * image displace
  863. * </p>
  864. * @param float $size_correction [optional] <p>
  865. * size correction
  866. * </p>
  867. * @return bool <b>TRUE</b> on success.
  868. */
  869. public function roundCorners ($x_rounding, $y_rounding, $stroke_width = 10.0, $displace = 5.0, $size_correction = -6.0) {}
  870. /**
  871. * (PECL imagick 2.0.0)<br/>
  872. * Set the iterator position
  873. * @link https://php.net/manual/en/imagick.setiteratorindex.php
  874. * @param int $index <p>
  875. * The position to set the iterator to
  876. * </p>
  877. * @return bool <b>TRUE</b> on success.
  878. */
  879. public function setIteratorIndex ($index) {}
  880. /**
  881. * (PECL imagick 2.0.0)<br/>
  882. * Gets the index of the current active image
  883. * @link https://php.net/manual/en/imagick.getiteratorindex.php
  884. * @return int an integer containing the index of the image in the stack.
  885. */
  886. public function getIteratorIndex () {}
  887. /**
  888. * (PECL imagick 2.0.0)<br/>
  889. * Convenience method for setting crop size and the image geometry
  890. * @link https://php.net/manual/en/imagick.transformimage.php
  891. * @param string $crop <p>
  892. * A crop geometry string. This geometry defines a subregion of the image to crop.
  893. * </p>
  894. * @param string $geometry <p>
  895. * An image geometry string. This geometry defines the final size of the image.
  896. * </p>
  897. * @return Imagick <b>TRUE</b> on success.
  898. */
  899. public function transformImage ($crop, $geometry) {}
  900. /**
  901. * (PECL imagick 2.0.0)<br/>
  902. * Sets the image opacity level
  903. * @link https://php.net/manual/en/imagick.setimageopacity.php
  904. * @param float $opacity <p>
  905. * The level of transparency: 1.0 is fully opaque and 0.0 is fully
  906. * transparent.
  907. * </p>
  908. * @return bool <b>TRUE</b> on success.
  909. */
  910. public function setImageOpacity ($opacity) {}
  911. /**
  912. * (PECL imagick 2.2.2)<br/>
  913. * Performs an ordered dither
  914. * @link https://php.net/manual/en/imagick.orderedposterizeimage.php
  915. * @param string $threshold_map <p>
  916. * A string containing the name of the threshold dither map to use
  917. * </p>
  918. * @param int $channel [optional] <p>
  919. * Provide any channel constant that is valid for your channel mode. To
  920. * apply to more than one channel, combine channeltype constants using
  921. * bitwise operators. Refer to this
  922. * list of channel constants.
  923. * </p>
  924. * @return bool <b>TRUE</b> on success.
  925. */
  926. public function orderedPosterizeImage ($threshold_map, $channel = Imagick::CHANNEL_ALL) {}
  927. /**
  928. * (PECL imagick 2.0.0)<br/>
  929. * Simulates a Polaroid picture
  930. * @link https://php.net/manual/en/imagick.polaroidimage.php
  931. * @param ImagickDraw $properties <p>
  932. * The polaroid properties
  933. * </p>
  934. * @param float $angle <p>
  935. * The polaroid angle
  936. * </p>
  937. * @return bool <b>TRUE</b> on success.
  938. */
  939. public function polaroidImage (ImagickDraw $properties, $angle) {}
  940. /**
  941. * (PECL imagick 2.0.0)<br/>
  942. * Returns the named image property
  943. * @link https://php.net/manual/en/imagick.getimageproperty.php
  944. * @param string $name <p>
  945. * name of the property (for example Exif:DateTime)
  946. * </p>
  947. * @return string|false a string containing the image property, false if a
  948. * property with the given name does not exist.
  949. */
  950. public function getImageProperty ($name) {}
  951. /**
  952. * (PECL imagick 2.0.0)<br/>
  953. * Sets an image property
  954. * @link https://php.net/manual/en/imagick.setimageproperty.php
  955. * @param string $name
  956. * @param string $value
  957. * @return bool <b>TRUE</b> on success.
  958. */
  959. public function setImageProperty ($name, $value) {}
  960. /**
  961. * (PECL imagick 2.0.0)<br/>
  962. * Sets the image interpolate pixel method
  963. * @link https://php.net/manual/en/imagick.setimageinterpolatemethod.php
  964. * @param int $method <p>
  965. * The method is one of the <b>Imagick::INTERPOLATE_*</b> constants
  966. * </p>
  967. * @return bool <b>TRUE</b> on success.
  968. */
  969. public function setImageInterpolateMethod ($method) {}
  970. /**
  971. * (PECL imagick 2.0.0)<br/>
  972. * Returns the interpolation method
  973. * @link https://php.net/manual/en/imagick.getimageinterpolatemethod.php
  974. * @return int the interpolate method on success.
  975. */
  976. public function getImageInterpolateMethod () {}
  977. /**
  978. * (PECL imagick 2.0.0)<br/>
  979. * Stretches with saturation the image intensity
  980. * @link https://php.net/manual/en/imagick.linearstretchimage.php
  981. * @param float $blackPoint <p>
  982. * The image black point
  983. * </p>
  984. * @param float $whitePoint <p>
  985. * The image white point
  986. * </p>
  987. * @return bool <b>TRUE</b> on success.
  988. */
  989. public function linearStretchImage ($blackPoint, $whitePoint) {}
  990. /**
  991. * (PECL imagick 2.0.0)<br/>
  992. * Returns the image length in bytes
  993. * @link https://php.net/manual/en/imagick.getimagelength.php
  994. * @return int an int containing the current image size.
  995. */
  996. public function getImageLength () {}
  997. /**
  998. * (No version information available, might only be in SVN)<br/>
  999. * Set image size
  1000. * @link https://php.net/manual/en/imagick.extentimage.php
  1001. * @param int $width <p>
  1002. * The new width
  1003. * </p>
  1004. * @param int $height <p>
  1005. * The new height
  1006. * </p>
  1007. * @param int $x <p>
  1008. * X position for the new size
  1009. * </p>
  1010. * @param int $y <p>
  1011. * Y position for the new size
  1012. * </p>
  1013. * @return bool <b>TRUE</b> on success.
  1014. */
  1015. public function extentImage ($width, $height, $x, $y) {}
  1016. /**
  1017. * (PECL imagick 2.0.0)<br/>
  1018. * Gets the image orientation
  1019. * @link https://php.net/manual/en/imagick.getimageorientation.php
  1020. * @return int an int on success.
  1021. */
  1022. public function getImageOrientation () {}
  1023. /**
  1024. * (PECL imagick 2.0.0)<br/>
  1025. * Sets the image orientation
  1026. * @link https://php.net/manual/en/imagick.setimageorientation.php
  1027. * @param int $orientation <p>
  1028. * One of the orientation constants
  1029. * </p>
  1030. * @return bool <b>TRUE</b> on success.
  1031. */
  1032. public function setImageOrientation ($orientation) {}
  1033. /**
  1034. * (PECL imagick 2.1.0)<br/>
  1035. * Changes the color value of any pixel that matches target
  1036. * @link https://php.net/manual/en/imagick.paintfloodfillimage.php
  1037. * @param mixed $fill <p>
  1038. * ImagickPixel object or a string containing the fill color
  1039. * </p>
  1040. * @param float $fuzz <p>
  1041. * The amount of fuzz. For example, set fuzz to 10 and the color red at
  1042. * intensities of 100 and 102 respectively are now interpreted as the
  1043. * same color for the purposes of the floodfill.
  1044. * </p>
  1045. * @param mixed $bordercolor <p>
  1046. * ImagickPixel object or a string containing the border color
  1047. * </p>
  1048. * @param int $x <p>
  1049. * X start position of the floodfill
  1050. * </p>
  1051. * @param int $y <p>
  1052. * Y start position of the floodfill
  1053. * </p>
  1054. * @param int $channel [optional] <p>
  1055. * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to <b>Imagick::CHANNEL_DEFAULT</b>. Refer to this list of channel constants
  1056. * </p>
  1057. * @return bool <b>TRUE</b> on success.
  1058. */
  1059. public function paintFloodfillImage ($fill, $fuzz, $bordercolor, $x, $y, $channel = Imagick::CHANNEL_ALL) {}
  1060. /**
  1061. * (PECL imagick 2.0.0)<br/>
  1062. * Replaces colors in the image from a color lookup table. Optional second parameter to replace colors in a specific channel. This method is available if Imagick has been compiled against ImageMagick version 6.3.6 or newer.
  1063. * @link https://php.net/manual/en/imagick.clutimage.php
  1064. * @param Imagick $lookup_table <p>
  1065. * Imagick object containing the color lookup table
  1066. * </p>
  1067. * @param int $channel [optional] <p>
  1068. * The Channeltype
  1069. * constant. When not supplied, default channels are replaced.
  1070. * </p>
  1071. * @return bool <b>TRUE</b> on success.
  1072. * @since 2.0.0
  1073. */
  1074. public function clutImage (Imagick $lookup_table, $channel = Imagick::CHANNEL_DEFAULT) {}
  1075. /**
  1076. * (PECL imagick 2.0.0)<br/>
  1077. * Returns the image properties
  1078. * @link https://php.net/manual/en/imagick.getimageproperties.php
  1079. * @param string $pattern [optional] <p>
  1080. * The pattern for property names.
  1081. * </p>
  1082. * @param bool $only_names [optional] <p>
  1083. * Whether to return only property names. If <b>FALSE</b> then also the values are returned
  1084. * </p>
  1085. * @return array an array containing the image properties or property names.
  1086. */
  1087. public function getImageProperties ($pattern = "*", $only_names = true) {}
  1088. /**
  1089. * (PECL imagick 2.2.0)<br/>
  1090. * Returns the image profiles
  1091. * @link https://php.net/manual/en/imagick.getimageprofiles.php
  1092. * @param string $pattern [optional] <p>
  1093. * The pattern for profile names.
  1094. * </p>
  1095. * @param bool $include_values [optional] <p>
  1096. * Whether to return only profile names. If <b>FALSE</b> then only profile names will be returned.
  1097. * </p>
  1098. * @return array an array containing the image profiles or profile names.
  1099. */
  1100. public function getImageProfiles ($pattern = "*", $include_values = true) {}
  1101. /**
  1102. * (PECL imagick 2.0.1)<br/>
  1103. * Distorts an image using various distortion methods
  1104. * @link https://php.net/manual/en/imagick.distortimage.php
  1105. * @param int $method <p>
  1106. * The method of image distortion. See distortion constants
  1107. * </p>
  1108. * @param array $arguments <p>
  1109. * The arguments for this distortion method
  1110. * </p>
  1111. * @param bool $bestfit <p>
  1112. * Attempt to resize destination to fit distorted source
  1113. * </p>
  1114. * @return bool <b>TRUE</b> on success.
  1115. */
  1116. public function distortImage ($method, array $arguments, $bestfit) {}
  1117. /**
  1118. * (No version information available, might only be in SVN)<br/>
  1119. * Writes an image to a filehandle
  1120. * @link https://php.net/manual/en/imagick.writeimagefile.php
  1121. * @param resource $filehandle <p>
  1122. * Filehandle where to write the image
  1123. * </p>
  1124. * @return bool <b>TRUE</b> on success.
  1125. */
  1126. public function writeImageFile ($filehandle) {}
  1127. /**
  1128. * (No version information available, might only be in SVN)<br/>
  1129. * Writes frames to a filehandle
  1130. * @link https://php.net/manual/en/imagick.writeimagesfile.php
  1131. * @param resource $filehandle <p>
  1132. * Filehandle where to write the images
  1133. * </p>
  1134. * @return bool <b>TRUE</b> on success.
  1135. */
  1136. public function writeImagesFile ($filehandle) {}
  1137. /**
  1138. * (No version information available, might only be in SVN)<br/>
  1139. * Reset image page
  1140. * @link https://php.net/manual/en/imagick.resetimagepage.php
  1141. * @param string $page <p>
  1142. * The page definition. For example 7168x5147+0+0
  1143. * </p>
  1144. * @return bool <b>TRUE</b> on success.
  1145. */
  1146. public function resetImagePage ($page) {}
  1147. /**
  1148. * (No version information available, might only be in SVN)<br/>
  1149. * Sets image clip mask
  1150. * @link https://php.net/manual/en/imagick.setimageclipmask.php
  1151. * @param Imagick $clip_mask <p>
  1152. * The Imagick object containing the clip mask
  1153. * </p>
  1154. * @return bool <b>TRUE</b> on success.
  1155. */
  1156. public function setImageClipMask (Imagick $clip_mask) {}
  1157. /**
  1158. * (No version information available, might only be in SVN)<br/>
  1159. * Gets image clip mask
  1160. * @link https://php.net/manual/en/imagick.getimageclipmask.php
  1161. * @return Imagick an Imagick object containing the clip mask.
  1162. */
  1163. public function getImageClipMask () {}
  1164. /**
  1165. * (No version information available, might only be in SVN)<br/>
  1166. * Animates an image or images
  1167. * @link https://php.net/manual/en/imagick.animateimages.php
  1168. * @param string $x_server <p>
  1169. * X server address
  1170. * </p>
  1171. * @return bool <b>TRUE</b> on success.
  1172. */
  1173. public function animateImages ($x_server) {}
  1174. /**
  1175. * (No version information available, might only be in SVN)<br/>
  1176. * Recolors image
  1177. * @link https://php.net/manual/en/imagick.recolorimage.php
  1178. * @param array $matrix <p>
  1179. * The matrix containing the color values
  1180. * </p>
  1181. * @return bool <b>TRUE</b> on success.
  1182. */
  1183. public function recolorImage (array $matrix) {}
  1184. /**
  1185. * (PECL imagick 2.1.0)<br/>
  1186. * Sets font
  1187. * @link https://php.net/manual/en/imagick.setfont.php
  1188. * @param string $font <p>
  1189. * Font name or a filename
  1190. * </p>
  1191. * @return bool <b>TRUE</b> on success.
  1192. */
  1193. public function setFont ($font) {}
  1194. /**
  1195. * (PECL imagick 2.1.0)<br/>
  1196. * Gets font
  1197. * @link https://php.net/manual/en/imagick.getfont.php
  1198. * @return string|false the string containing the font name or <b>FALSE</b> if not font is set.
  1199. */
  1200. public function getFont () {}
  1201. /**
  1202. * (PECL imagick 2.1.0)<br/>
  1203. * Sets point size
  1204. * @link https://php.net/manual/en/imagick.setpointsize.php
  1205. * @param float $point_size <p>
  1206. * Point size
  1207. * </p>
  1208. * @return bool <b>TRUE</b> on success.
  1209. */
  1210. public function setPointSize ($point_size) {}
  1211. /**
  1212. * (No version information available, might only be in SVN)<br/>
  1213. * Gets point size
  1214. * @link https://php.net/manual/en/imagick.getpointsize.php
  1215. * @return float a float containing the point size.
  1216. */
  1217. public function getPointSize () {}
  1218. /**
  1219. * (PECL imagick 2.1.0)<br/>
  1220. * Merges image layers
  1221. * @link https://php.net/manual/en/imagick.mergeimagelayers.php
  1222. * @param int $layer_method <p>
  1223. * One of the <b>Imagick::LAYERMETHOD_*</b> constants
  1224. * </p>
  1225. * @return Imagick Returns an Imagick object containing the merged image.
  1226. * @throws ImagickException
  1227. */
  1228. public function mergeImageLayers ($layer_method) {}
  1229. /**
  1230. * (No version information available, might only be in SVN)<br/>
  1231. * Sets image alpha channel
  1232. * @link https://php.net/manual/en/imagick.setimagealphachannel.php
  1233. * @param int $mode <p>
  1234. * One of the <b>Imagick::ALPHACHANNEL_*</b> constants
  1235. * </p>
  1236. * @return bool <b>TRUE</b> on success.
  1237. */
  1238. public function setImageAlphaChannel ($mode) {}
  1239. /**
  1240. * (No version information available, might only be in SVN)<br/>
  1241. * Changes the color value of any pixel that matches target
  1242. * @link https://php.net/manual/en/imagick.floodfillpaintimage.php
  1243. * @param mixed $fill <p>
  1244. * ImagickPixel object or a string containing the fill color
  1245. * </p>
  1246. * @param float $fuzz <p>
  1247. * The amount of fuzz. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color.
  1248. * </p>
  1249. * @param mixed $target <p>
  1250. * ImagickPixel object or a string containing the target color to paint
  1251. * </p>
  1252. * @param int $x <p>
  1253. * X start position of the floodfill
  1254. * </p>
  1255. * @param int $y <p>
  1256. * Y start position of the floodfill
  1257. * </p>
  1258. * @param bool $invert <p>
  1259. * If <b>TRUE</b> paints any pixel that does not match the target color.
  1260. * </p>
  1261. * @param int $channel [optional] <p>
  1262. * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to <b>Imagick::CHANNEL_DEFAULT</b>. Refer to this list of channel constants
  1263. * </p>
  1264. * @return bool <b>TRUE</b> on success.
  1265. */
  1266. public function floodFillPaintImage ($fill, $fuzz, $target, $x, $y, $invert, $channel = Imagick::CHANNEL_DEFAULT) {}
  1267. /**
  1268. * (No version information available, might only be in SVN)<br/>
  1269. * Changes the color value of any pixel that matches target
  1270. * @link https://php.net/manual/en/imagick.opaquepaintimage.php
  1271. * @param mixed $target <p>
  1272. * ImagickPixel object or a string containing the color to change
  1273. * </p>
  1274. * @param mixed $fill <p>
  1275. * The replacement color
  1276. * </p>
  1277. * @param float $fuzz <p>
  1278. * The amount of fuzz. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color.
  1279. * </p>
  1280. * @param bool $invert <p>
  1281. * If <b>TRUE</b> paints any pixel that does not match the target color.
  1282. * </p>
  1283. * @param int $channel [optional] <p>
  1284. * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to <b>Imagick::CHANNEL_DEFAULT</b>. Refer to this list of channel constants
  1285. * </p>
  1286. * @return bool <b>TRUE</b> on success.
  1287. */
  1288. public function opaquePaintImage ($target, $fill, $fuzz, $invert, $channel = Imagick::CHANNEL_DEFAULT) {}
  1289. /**
  1290. * (No version information available, might only be in SVN)<br/>
  1291. * Paints pixels transparent
  1292. * @link https://php.net/manual/en/imagick.transparentpaintimage.php
  1293. * @param mixed $target <p>
  1294. * The target color to paint
  1295. * </p>
  1296. * @param float $alpha <p>
  1297. * The level of transparency: 1.0 is fully opaque and 0.0 is fully transparent.
  1298. * </p>
  1299. * @param float $fuzz <p>
  1300. * The amount of fuzz. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color.
  1301. * </p>
  1302. * @param bool $invert <p>
  1303. * If <b>TRUE</b> paints any pixel that does not match the target color.
  1304. * </p>
  1305. * @return bool <b>TRUE</b> on success.
  1306. */
  1307. public function transparentPaintImage ($target, $alpha, $fuzz, $invert) {}
  1308. /**
  1309. * (No version information available, might only be in SVN)<br/>
  1310. * Animates an image or images
  1311. * @link https://php.net/manual/en/imagick.liquidrescaleimage.php
  1312. * @param int $width <p>
  1313. * The width of the target size
  1314. * </p>
  1315. * @param int $height <p>
  1316. * The height of the target size
  1317. * </p>
  1318. * @param float $delta_x <p>
  1319. * How much the seam can traverse on x-axis.
  1320. * Passing 0 causes the seams to be straight.
  1321. * </p>
  1322. * @param float $rigidity <p>
  1323. * Introduces a bias for non-straight seams. This parameter is
  1324. * typically 0.
  1325. * </p>
  1326. * @return bool <b>TRUE</b> on success.
  1327. */
  1328. public function liquidRescaleImage ($width, $height, $delta_x, $rigidity) {}
  1329. /**
  1330. * (No version information available, might only be in SVN)<br/>
  1331. * Enciphers an image
  1332. * @link https://php.net/manual/en/imagick.encipherimage.php
  1333. * @param string $passphrase <p>
  1334. * The passphrase
  1335. * </p>
  1336. * @return bool <b>TRUE</b> on success.
  1337. */
  1338. public function encipherImage ($passphrase) {}
  1339. /**
  1340. * (No version information available, might only be in SVN)<br/>
  1341. * Deciphers an image
  1342. * @link https://php.net/manual/en/imagick.decipherimage.php
  1343. * @param string $passphrase <p>
  1344. * The passphrase
  1345. * </p>
  1346. * @return bool <b>TRUE</b> on success.
  1347. */
  1348. public function decipherImage ($passphrase) {}
  1349. /**
  1350. * (No version information available, might only be in SVN)<br/>
  1351. * Sets the gravity
  1352. * @link https://php.net/manual/en/imagick.setgravity.php
  1353. * @param int $gravity <p>
  1354. * The gravity property. Refer to the list of
  1355. * gravity constants.
  1356. * </p>
  1357. * @return bool No value is returned.
  1358. */
  1359. public function setGravity ($gravity) {}
  1360. /**
  1361. * (No version information available, might only be in SVN)<br/>
  1362. * Gets the gravity
  1363. * @link https://php.net/manual/en/imagick.getgravity.php
  1364. * @return int the gravity property. Refer to the list of
  1365. * gravity constants.
  1366. */
  1367. public function getGravity () {}
  1368. /**
  1369. * (PECL imagick 2.2.1)<br/>
  1370. * Gets channel range
  1371. * @link https://php.net/manual/en/imagick.getimagechannelrange.php
  1372. * @param int $channel <p>
  1373. * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to <b>Imagick::CHANNEL_DEFAULT</b>. Refer to this list of channel constants
  1374. * </p>
  1375. * @return array an array containing minima and maxima values of the channel(s).
  1376. */
  1377. public function getImageChannelRange ($channel) {}
  1378. /**
  1379. * (No version information available, might only be in SVN)<br/>
  1380. * Gets the image alpha channel
  1381. * @link https://php.net/manual/en/imagick.getimagealphachannel.php
  1382. * @return int a constant defining the current alpha channel value. Refer to this
  1383. * list of alpha channel constants.
  1384. */
  1385. public function getImageAlphaChannel () {}
  1386. /**
  1387. * (No version information available, might only be in SVN)<br/>
  1388. * Gets channel distortions
  1389. * @link https://php.net/manual/en/imagick.getimagechanneldistortions.php
  1390. * @param Imagick $reference <p>
  1391. * Imagick object containing the reference image
  1392. * </p>
  1393. * @param int $metric <p>
  1394. * Refer to this list of metric type constants.
  1395. * </p>
  1396. * @param int $channel [optional] <p>
  1397. * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to <b>Imagick::CHANNEL_DEFAULT</b>. Refer to this list of channel constants
  1398. * </p>
  1399. * @return float a double describing the channel distortion.
  1400. */
  1401. public function getImageChannelDistortions (Imagick $reference, $metric, $channel = Imagick::CHANNEL_DEFAULT) {}
  1402. /**
  1403. * (No version information available, might only be in SVN)<br/>
  1404. * Sets the image gravity
  1405. * @link https://php.net/manual/en/imagick.setimagegravity.php
  1406. * @param int $gravity <p>
  1407. * The gravity property. Refer to the list of
  1408. * gravity constants.
  1409. * </p>
  1410. * @return bool No value is returned.
  1411. */
  1412. public function setImageGravity ($gravity) {}
  1413. /**
  1414. * (No version information available, might only be in SVN)<br/>
  1415. * Gets the image gravity
  1416. * @link https://php.net/manual/en/imagick.getimagegravity.php
  1417. * @return int the images gravity property. Refer to the list of
  1418. * gravity constants.
  1419. */
  1420. public function getImageGravity () {}
  1421. /**
  1422. * (No version information available, might only be in SVN)<br/>
  1423. * Imports image pixels
  1424. * @link https://php.net/manual/en/imagick.importimagepixels.php
  1425. * @param int $x <p>
  1426. * The image x position
  1427. * </p>
  1428. * @param int $y <p>
  1429. * The image y position
  1430. * </p>
  1431. * @param int $width <p>
  1432. * The image width
  1433. * </p>
  1434. * @param int $height <p>
  1435. * The image height
  1436. * </p>
  1437. * @param string $map <p>
  1438. * Map of pixel ordering as a string. This can be for example RGB.
  1439. * The value can be any combination or order of R = red, G = green, B = blue, A = alpha (0 is transparent),
  1440. * O = opacity (0 is opaque), C = cyan, Y = yellow, M = magenta, K = black, I = intensity (for grayscale), P = pad.
  1441. * </p>
  1442. * @param int $storage <p>
  1443. * The pixel storage method.
  1444. * Refer to this list of pixel constants.
  1445. * </p>
  1446. * @param array $pixels <p>
  1447. * The array of pixels
  1448. * </p>
  1449. * @return bool <b>TRUE</b> on success.
  1450. */
  1451. public function importImagePixels ($x, $y, $width, $height, $map, $storage, array $pixels) {}
  1452. /**
  1453. * (No version information available, might only be in SVN)<br/>
  1454. * Removes skew from the image
  1455. * @link https://php.net/manual/en/imagick.deskewimage.php
  1456. * @param float $threshold <p>
  1457. * Deskew threshold
  1458. * </p>
  1459. * @return bool
  1460. */
  1461. public function deskewImage ($threshold) {}
  1462. /**
  1463. * (No version information available, might only be in SVN)<br/>
  1464. * Segments an image
  1465. * @link https://php.net/manual/en/imagick.segmentimage.php
  1466. * @param int $COLORSPACE <p>
  1467. * One of the COLORSPACE constants.
  1468. * </p>
  1469. * @param float $cluster_threshold <p>
  1470. * A percentage describing minimum number of pixels
  1471. * contained in hexedra before it is considered valid.
  1472. * </p>
  1473. * @param float $smooth_threshold <p>
  1474. * Eliminates noise from the histogram.
  1475. * </p>
  1476. * @param bool $verbose [optional] <p>
  1477. * Whether to output detailed information about recognised classes.
  1478. * </p>
  1479. * @return bool
  1480. */
  1481. public function segmentImage ($COLORSPACE, $cluster_threshold, $smooth_threshold, $verbose = false) {}
  1482. /**
  1483. * (No version information available, might only be in SVN)<br/>
  1484. * Interpolates colors
  1485. * @link https://php.net/manual/en/imagick.sparsecolorimage.php
  1486. * @param int $SPARSE_METHOD <p>
  1487. * Refer to this list of sparse method constants
  1488. * </p>
  1489. * @param array $arguments <p>
  1490. * An array containing the coordinates.
  1491. * The array is in format array(1,1, 2,45)
  1492. * </p>
  1493. * @param int $channel [optional]
  1494. * @return bool <b>TRUE</b> on success.
  1495. */
  1496. public function sparseColorImage ($SPARSE_METHOD, array $arguments, $channel = Imagick::CHANNEL_DEFAULT) {}
  1497. /**
  1498. * (No version information available, might only be in SVN)<br/>
  1499. * Remaps image colors
  1500. * @link https://php.net/manual/en/imagick.remapimage.php
  1501. * @param Imagick $replacement <p>
  1502. * An Imagick object containing the replacement colors
  1503. * </p>
  1504. * @param int $DITHER <p>
  1505. * Refer to this list of dither method constants
  1506. * </p>
  1507. * @return bool <b>TRUE</b> on success.
  1508. */
  1509. public function remapImage (Imagick $replacement, $DITHER) {}
  1510. /**
  1511. * (No version information available, might only be in SVN)<br/>
  1512. * Exports raw image pixels
  1513. * @link https://php.net/manual/en/imagick.exportimagepixels.php
  1514. * @param int $x <p>
  1515. * X-coordinate of the exported area
  1516. * </p>
  1517. * @param int $y <p>
  1518. * Y-coordinate of the exported area
  1519. * </p>
  1520. * @param int $width <p>
  1521. * Width of the exported aread
  1522. * </p>
  1523. * @param int $height <p>
  1524. * Height of the exported area
  1525. * </p>
  1526. * @param string $map <p>
  1527. * Ordering of the exported pixels. For example "RGB".
  1528. * Valid characters for the map are R, G, B, A, O, C, Y, M, K, I and P.
  1529. * </p>
  1530. * @param int $STORAGE <p>
  1531. * Refer to this list of pixel type constants
  1532. * </p>
  1533. * @return array an array containing the pixels values.
  1534. */
  1535. public function exportImagePixels ($x, $y, $width, $height, $map, $STORAGE) {}
  1536. /**
  1537. * (No version information available, might only be in SVN)<br/>
  1538. * The getImageChannelKurtosis purpose
  1539. * @link https://php.net/manual/en/imagick.getimagechannelkurtosis.php
  1540. * @param int $channel [optional] <p>
  1541. * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to <b>Imagick::CHANNEL_DEFAULT</b>. Refer to this list of channel constants
  1542. * </p>
  1543. * @return array an array with kurtosis and skewness
  1544. * members.
  1545. */
  1546. public function getImageChannelKurtosis ($channel = Imagick::CHANNEL_DEFAULT) {}
  1547. /**
  1548. * (No version information available, might only be in SVN)<br/>
  1549. * Applies a function on the image
  1550. * @link https://php.net/manual/en/imagick.functionimage.php
  1551. * @param int $function <p>
  1552. * Refer to this list of function constants
  1553. * </p>
  1554. * @param array $arguments <p>
  1555. * Array of arguments to pass to this function.
  1556. * </p>
  1557. * @param int $channel [optional]
  1558. * @return bool <b>TRUE</b> on success.
  1559. */
  1560. public function functionImage ($function, array $arguments, $channel = Imagick::CHANNEL_DEFAULT) {}
  1561. /**
  1562. * @param $COLORSPACE
  1563. */
  1564. public function transformImageColorspace ($COLORSPACE) {}
  1565. /**
  1566. * (No version information available, might only be in SVN)<br/>
  1567. * Replaces colors in the image
  1568. * @link https://php.net/manual/en/imagick.haldclutimage.php
  1569. * @param Imagick $clut <p>
  1570. * Imagick object containing the Hald lookup image.
  1571. * </p>
  1572. * @param int $channel [optional] <p>
  1573. * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to <b>Imagick::CHANNEL_DEFAULT</b>. Refer to this list of channel constants
  1574. * </p>
  1575. * @return bool <b>TRUE</b> on success.
  1576. */
  1577. public function haldClutImage (Imagick $clut, $channel = Imagick::CHANNEL_DEFAULT) {}
  1578. /**
  1579. * @param $CHANNEL [optional]
  1580. */
  1581. public function autoLevelImage ($CHANNEL) {}
  1582. /**
  1583. * @param $factor [optional]
  1584. */
  1585. public function blueShiftImage ($factor) {}
  1586. /**
  1587. * (No version information available, might only be in SVN)<br/>
  1588. * Get image artifact
  1589. * @link https://php.net/manual/en/imagick.getimageartifact.php
  1590. * @param string $artifact <p>
  1591. * The name of the artifact
  1592. * </p>
  1593. * @return string the artifact value on success.
  1594. */
  1595. public function getImageArtifact ($artifact) {}
  1596. /**
  1597. * (No version information available, might only be in SVN)<br/>
  1598. * Set image artifact
  1599. * @link https://php.net/manual/en/imagick.setimageartifact.php
  1600. * @param string $artifact <p>
  1601. * The name of the artifact
  1602. * </p>
  1603. * @param string $value <p>
  1604. * The value of the artifact
  1605. * </p>
  1606. * @return bool <b>TRUE</b> on success.
  1607. */
  1608. public function setImageArtifact ($artifact, $value) {}
  1609. /**
  1610. * (No version information available, might only be in SVN)<br/>
  1611. * Delete image artifact
  1612. * @link https://php.net/manual/en/imagick.deleteimageartifact.php
  1613. * @param string $artifact <p>
  1614. * The name of the artifact to delete
  1615. * </p>
  1616. * @return bool <b>TRUE</b> on success.
  1617. */
  1618. public function deleteImageArtifact ($artifact) {}
  1619. /**
  1620. * (PECL imagick 0.9.10-0.9.9)<br/>
  1621. * Gets the colorspace
  1622. * @link https://php.net/manual/en/imagick.getcolorspace.php
  1623. * @return int an integer which can be compared against COLORSPACE constants.
  1624. */
  1625. public function getColorspace () {}
  1626. /**
  1627. * (No version information available, might only be in SVN)<br/>
  1628. * Set colorspace
  1629. * @link https://php.net/manual/en/imagick.setcolorspace.php
  1630. * @param int $COLORSPACE <p>
  1631. * One of the COLORSPACE constants
  1632. * </p>
  1633. * @return bool <b>TRUE</b> on success.
  1634. */
  1635. public function setColorspace ($COLORSPACE) {}
  1636. /**
  1637. * @param $CHANNEL [optional]
  1638. */
  1639. public function clampImage ($CHANNEL) {}
  1640. /**
  1641. * @param $stack
  1642. * @param $offset
  1643. */
  1644. public function smushImages ($stack, $offset) {}
  1645. /**
  1646. * (PECL imagick 2.0.0)<br/>
  1647. * The Imagick constructor
  1648. * @link https://php.net/manual/en/imagick.construct.php
  1649. * @param mixed $files <p>
  1650. * The path to an image to load or an array of paths. Paths can include
  1651. * wildcards for file names, or can be URLs.
  1652. * </p>
  1653. * @throws ImagickException Throws ImagickException on error.
  1654. */
  1655. public function __construct ($files = null) {}
  1656. /**
  1657. * @return string
  1658. */
  1659. public function __toString () {}
  1660. public function count () {}
  1661. /**
  1662. * (PECL imagick 2.0.0)<br/>
  1663. * Returns a MagickPixelIterator
  1664. * @link https://php.net/manual/en/imagick.getpixeliterator.php
  1665. * @return ImagickPixelIterator an ImagickPixelIterator on success.
  1666. */
  1667. public function getPixelIterator () {}
  1668. /**
  1669. * (PECL imagick 2.0.0)<br/>
  1670. * Get an ImagickPixelIterator for an image section
  1671. * @link https://php.net/manual/en/imagick.getpixelregioniterator.php
  1672. * @param int $x <p>
  1673. * The x-coordinate of the region.
  1674. * </p>
  1675. * @param int $y <p>
  1676. * The y-coordinate of the region.
  1677. * </p>
  1678. * @param int $columns <p>
  1679. * The width of the region.
  1680. * </p>
  1681. * @param int $rows <p>
  1682. * The height of the region.
  1683. * </p>
  1684. * @return ImagickPixelIterator an ImagickPixelIterator for an image section.
  1685. */
  1686. public function getPixelRegionIterator ($x, $y, $columns, $rows) {}
  1687. /**
  1688. * (PECL imagick 0.9.0-0.9.9)<br/>
  1689. * Reads image from filename
  1690. * @link https://php.net/manual/en/imagick.readimage.php
  1691. * @param string $filename
  1692. * @return bool <b>TRUE</b> on success.
  1693. * @throws ImagickException Throws ImagickException on error.
  1694. */
  1695. public function readImage ($filename) {}
  1696. /**
  1697. * @param $filenames
  1698. * @throws ImagickException Throws ImagickException on error.
  1699. */
  1700. public function readImages ($filenames) {}
  1701. /**
  1702. * (PECL imagick 2.0.0)<br/>
  1703. * Reads image from a binary string
  1704. * @link https://php.net/manual/en/imagick.readimageblob.php
  1705. * @param string $image
  1706. * @param string $filename [optional]
  1707. * @return bool <b>TRUE</b> on success.
  1708. * @throws ImagickException Throws ImagickException on error.
  1709. */
  1710. public function readImageBlob ($image, $filename = null) {}
  1711. /**
  1712. * (PECL imagick 2.0.0)<br/>
  1713. * Sets the format of a particular image
  1714. * @link https://php.net/manual/en/imagick.setimageformat.php
  1715. * @param string $format <p>
  1716. * String presentation of the image format. Format support
  1717. * depends on the ImageMagick installation.
  1718. * </p>
  1719. * @return bool <b>TRUE</b> on success.
  1720. */
  1721. public function setImageFormat ($format) {}
  1722. /**
  1723. * Scales the size of an image to the given dimensions. Passing zero as either of the arguments will preserve dimension while scaling.<br>
  1724. * If legacy is true, the calculations are done with the small rounding bug that existed in Imagick before 3.4.0.<br>
  1725. * If false, the calculations should produce the same results as ImageMagick CLI does.
  1726. * @link https://php.net/manual/en/imagick.scaleimage.php
  1727. * @param int $cols
  1728. * @param int $rows
  1729. * @param bool $bestfit [optional] The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched. In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given.
  1730. * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE
  1731. * @return bool <b>TRUE</b> on success.
  1732. * @throws ImagickException Throws ImagickException on error
  1733. * @since 2.0.0
  1734. */
  1735. public function scaleImage ($cols, $rows, $bestfit = false, $legacy = false) {}
  1736. /**
  1737. * (PECL imagick 0.9.0-0.9.9)<br/>
  1738. * Writes an image to the specified filename
  1739. * @link https://php.net/manual/en/imagick.writeimage.php
  1740. * @param string $filename [optional] <p>
  1741. * Filename where to write the image. The extension of the filename
  1742. * defines the type of the file.
  1743. * Format can be forced regardless of file extension using format: prefix,
  1744. * for example "jpg:test.png".
  1745. * </p>
  1746. * @return bool <b>TRUE</b> on success.
  1747. */
  1748. public function writeImage ($filename = null) {}
  1749. /**
  1750. * (PECL imagick 0.9.0-0.9.9)<br/>
  1751. * Writes an image or image sequence
  1752. * @link https://php.net/manual/en/imagick.writeimages.php
  1753. * @param string $filename
  1754. * @param bool $adjoin
  1755. * @return bool <b>TRUE</b> on success.
  1756. */
  1757. public function writeImages ($filename, $adjoin) {}
  1758. /**
  1759. * (PECL imagick 2.0.0)<br/>
  1760. * Adds blur filter to image
  1761. * @link https://php.net/manual/en/imagick.blurimage.php
  1762. * @param float $radius <p>
  1763. * Blur radius
  1764. * </p>
  1765. * @param float $sigma <p>
  1766. * Standard deviation
  1767. * </p>
  1768. * @param int $channel [optional] <p>
  1769. * The Channeltype
  1770. * constant. When not supplied, all channels are blurred.
  1771. * </p>
  1772. * @return bool <b>TRUE</b> on success.
  1773. */
  1774. public function blurImage ($radius, $sigma, $channel = null) {}
  1775. /**
  1776. * Changes the size of an image to the given dimensions and removes any associated profiles.<br>
  1777. * If legacy is true, the calculations are done with the small rounding bug that existed in Imagick before 3.4.0.<br>
  1778. * If false, the calculations should produce the same results as ImageMagick CLI does.<br>
  1779. * <br>
  1780. * <b>Note:</b> The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched. In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given.
  1781. * @link https://php.net/manual/en/imagick.thumbnailimage.php
  1782. * @param int $columns <p>
  1783. * Image width
  1784. * </p>
  1785. * @param int $rows <p>
  1786. * Image height
  1787. * </p>
  1788. * @param bool $bestfit [optional] <p>
  1789. * Whether to force maximum values
  1790. * </p>
  1791. * The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched. In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given.
  1792. * @param bool $fill [optional]
  1793. * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE
  1794. * @return bool <b>TRUE</b> on success.
  1795. * @since 2.0.0
  1796. */
  1797. public function thumbnailImage ($columns, $rows, $bestfit = false, $fill = false, $legacy = false) {}
  1798. /**
  1799. * Creates a cropped thumbnail at the requested size.
  1800. * If legacy is true, uses the incorrect behaviour that was present until Imagick 3.4.0.
  1801. * If false it uses the correct behaviour.
  1802. * @link https://php.net/manual/en/imagick.cropthumbnailimage.php
  1803. * @param int $width The width of the thumbnail
  1804. * @param int $height The Height of the thumbnail
  1805. * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE
  1806. * @return bool TRUE on succes
  1807. * @throws ImagickException Throws ImagickException on error
  1808. * @since 2.0.0
  1809. */
  1810. public function cropThumbnailImage ($width, $height, $legacy = false) {}
  1811. /**
  1812. * (PECL imagick 2.0.0)<br/>
  1813. * Returns the filename of a particular image in a sequence
  1814. * @link https://php.net/manual/en/imagick.getimagefilename.php
  1815. * @return string a string with the filename of the image.
  1816. */
  1817. public function getImageFilename () {}
  1818. /**
  1819. * (PECL imagick 2.0.0)<br/>
  1820. * Sets the filename of a particular image
  1821. * @link https://php.net/manual/en/imagick.setimagefilename.php
  1822. * @param string $filename
  1823. * @return bool <b>TRUE</b> on success.
  1824. */
  1825. public function setImageFilename ($filename) {}
  1826. /**
  1827. * (PECL imagick 2.0.0)<br/>
  1828. * Returns the format of a particular image in a sequence
  1829. * @link https://php.net/manual/en/imagick.getimageformat.php
  1830. * @return string a string containing the image format on success.
  1831. */
  1832. public function getImageFormat () {}
  1833. /**
  1834. * @link https://www.php.net/manual/en/imagick.getimagemimetype.php
  1835. * @return string Returns the image mime-type.
  1836. */
  1837. public function getImageMimeType () {}
  1838. /**
  1839. * (PECL imagick 2.0.0)<br/>
  1840. * Removes an image from the image list
  1841. * @link https://php.net/manual/en/imagick.removeimage.php
  1842. * @return bool <b>TRUE</b> on success.
  1843. */
  1844. public function removeImage () {}
  1845. /**
  1846. * (PECL imagick 2.0.0)<br/>
  1847. * Destroys the Imagick object
  1848. * @link https://php.net/manual/en/imagick.destroy.php
  1849. * @return bool <b>TRUE</b> on success.
  1850. */
  1851. public function destroy () {}
  1852. /**
  1853. * (PECL imagick 2.0.0)<br/>
  1854. * Clears all resources associated to Imagick object
  1855. * @link https://php.net/manual/en/imagick.clear.php
  1856. * @return bool <b>TRUE</b> on success.
  1857. */
  1858. public function clear () {}
  1859. /**
  1860. * (PECL imagick 2.0.0)<br/>
  1861. * Returns the image length in bytes
  1862. * @link https://php.net/manual/en/imagick.getimagesize.php
  1863. * @return int an int containing the current image size.
  1864. * @deprecated use {@see Imagick::getImageLength()} instead
  1865. */
  1866. public function getImageSize () {}
  1867. /**
  1868. * (PECL imagick 2.0.0)<br/>
  1869. * Returns the image sequence as a blob
  1870. * @link https://php.net/manual/en/imagick.getimageblob.php
  1871. * @return string a string containing the image.
  1872. */
  1873. public function getImageBlob () {}
  1874. /**
  1875. * (PECL imagick 2.0.0)<br/>
  1876. * Returns all image sequences as a blob
  1877. * @link https://php.net/manual/en/imagick.getimagesblob.php
  1878. * @return string a string containing the images. On failure, throws ImagickException on failure
  1879. * @throws ImagickException on failure
  1880. */
  1881. public function getImagesBlob () {}
  1882. /**
  1883. * (PECL imagick 2.0.0)<br/>
  1884. * Sets the Imagick iterator to the first image
  1885. * @link https://php.net/manual/en/imagick.setfirstiterator.php
  1886. * @return bool <b>TRUE</b> on success.
  1887. */
  1888. public function setFirstIterator () {}
  1889. /**
  1890. * (PECL imagick 2.0.1)<br/>
  1891. * Sets the Imagick iterator to the last image
  1892. * @link https://php.net/manual/en/imagick.setlastiterator.php
  1893. * @return bool <b>TRUE</b> on success.
  1894. */
  1895. public function setLastIterator () {}
  1896. public function resetIterator () {}
  1897. /**
  1898. * (PECL imagick 2.0.0)<br/>
  1899. * Move to the previous image in the object
  1900. * @link https://php.net/manual/en/imagick.previousimage.php
  1901. * @return bool <b>TRUE</b> on success.
  1902. */
  1903. public function previousImage () {}
  1904. /**
  1905. * (PECL imagick 2.0.0)<br/>
  1906. * Moves to the next image
  1907. * @link https://php.net/manual/en/imagick.nextimage.php
  1908. * @return bool <b>TRUE</b> on success.
  1909. */
  1910. public function nextImage () {}
  1911. /**
  1912. * (PECL imagick 2.0.0)<br/>
  1913. * Checks if the object has a previous image
  1914. * @link https://php.net/manual/en/imagick.haspreviousimage.php
  1915. * @return bool <b>TRUE</b> if the object has more images when traversing the list in the
  1916. * reverse direction, returns <b>FALSE</b> if there are none.
  1917. */
  1918. public function hasPreviousImage () {}
  1919. /**
  1920. * (PECL imagick 2.0.0)<br/>
  1921. * Checks if the object has more images
  1922. * @link https://php.net/manual/en/imagick.hasnextimage.php
  1923. * @return bool <b>TRUE</b> if the object has more images when traversing the list in the
  1924. * forward direction, returns <b>FALSE</b> if there are none.
  1925. */
  1926. public function hasNextImage () {}
  1927. /**
  1928. * (PECL imagick 2.0.0)<br/>
  1929. * Set the iterator position
  1930. * @link https://php.net/manual/en/imagick.setimageindex.php
  1931. * @param int $index <p>
  1932. * The position to set the iterator to
  1933. * </p>
  1934. * @return bool <b>TRUE</b> on success.
  1935. */
  1936. public function setImageIndex ($index) {}
  1937. /**
  1938. * (PECL imagick 2.0.0)<br/>
  1939. * Gets the index of the current active image
  1940. * @link https://php.net/manual/en/imagick.getimageindex.php
  1941. * @return int an integer containing the index of the image in the stack.
  1942. */
  1943. public function getImageIndex () {}
  1944. /**
  1945. * (PECL imagick 2.0.0)<br/>
  1946. * Adds a comment to your image
  1947. * @link https://php.net/manual/en/imagick.commentimage.php
  1948. * @param string $comment <p>
  1949. * The comment to add
  1950. * </p>
  1951. * @return bool <b>TRUE</b> on success.
  1952. */
  1953. public function commentImage ($comment) {}
  1954. /**
  1955. * (PECL imagick 2.0.0)<br/>
  1956. * Extracts a region of the image
  1957. * @link https://php.net/manual/en/imagick.cropimage.php
  1958. * @param int $width <p>
  1959. * The width of the crop
  1960. * </p>
  1961. * @param int $height <p>
  1962. * The height of the crop
  1963. * </p>
  1964. * @param int $x <p>
  1965. * The X coordinate of the cropped region's top left corner
  1966. * </p>
  1967. * @param int $y <p>
  1968. * The Y coordinate of the cropped region's top left corner
  1969. * </p>
  1970. * @return bool <b>TRUE</b> on success.
  1971. */
  1972. public function cropImage ($width, $height, $x, $y) {}
  1973. /**
  1974. * (PECL imagick 2.0.0)<br/>
  1975. * Adds a label to an image
  1976. * @link https://php.net/manual/en/imagick.labelimage.php
  1977. * @param string $label <p>
  1978. * The label to add
  1979. * </p>
  1980. * @return bool <b>TRUE</b> on success.
  1981. */
  1982. public function labelImage ($label) {}
  1983. /**
  1984. * (PECL imagick 2.0.0)<br/>
  1985. * Gets the width and height as an associative array
  1986. * @link https://php.net/manual/en/imagick.getimagegeometry.php
  1987. * @return array an array with the width/height of the image.
  1988. */
  1989. public function getImageGeometry () {}
  1990. /**
  1991. * (PECL imagick 2.0.0)<br/>
  1992. * Renders the ImagickDraw object on the current image
  1993. * @link https://php.net/manual/en/imagick.drawimage.php
  1994. * @param ImagickDraw $draw <p>
  1995. * The drawing operations to render on the image.
  1996. * </p>
  1997. * @return bool <b>TRUE</b> on success.
  1998. */
  1999. public function drawImage (ImagickDraw $draw) {}
  2000. /**
  2001. * (No version information available, might only be in SVN)<br/>
  2002. * Sets the image compression quality
  2003. * @link https://php.net/manual/en/imagick.setimagecompressionquality.php
  2004. * @param int $quality <p>
  2005. * The image compression quality as an integer
  2006. * </p>
  2007. * @return bool <b>TRUE</b> on success.
  2008. */
  2009. public function setImageCompressionQuality ($quality) {}
  2010. /**
  2011. * (PECL imagick 2.2.2)<br/>
  2012. * Gets the current image's compression quality
  2013. * @link https://php.net/manual/en/imagick.getimagecompressionquality.php
  2014. * @return int integer describing the images compression quality
  2015. */
  2016. public function getImageCompressionQuality () {}
  2017. /**
  2018. * (PECL imagick 2.0.0)<br/>
  2019. * Annotates an image with text
  2020. * @link https://php.net/manual/en/imagick.annotateimage.php
  2021. * @param ImagickDraw $draw_settings <p>
  2022. * The ImagickDraw object that contains settings for drawing the text
  2023. * </p>
  2024. * @param float $x <p>
  2025. * Horizontal offset in pixels to the left of text
  2026. * </p>
  2027. * @param float $y <p>
  2028. * Vertical offset in pixels to the baseline of text
  2029. * </p>
  2030. * @param float $angle <p>
  2031. * The angle at which to write the text
  2032. * </p>
  2033. * @param string $text <p>
  2034. * The string to draw
  2035. * </p>
  2036. * @return bool <b>TRUE</b> on success.
  2037. */
  2038. public function annotateImage (ImagickDraw $draw_settings, $x, $y, $angle, $text) {}
  2039. /**
  2040. * (PECL imagick 2.0.0)<br/>
  2041. * Composite one image onto another
  2042. * @link https://php.net/manual/en/imagick.compositeimage.php
  2043. * @param Imagick $composite_object <p>
  2044. * Imagick object which holds the composite image
  2045. * </p>
  2046. * @param int $composite Composite operator
  2047. * @param int $x <p>
  2048. * The column offset of the composited image
  2049. * </p>
  2050. * @param int $y <p>
  2051. * The row offset of the composited image
  2052. * </p>
  2053. * @param int $channel [optional] <p>
  2054. * Provide any channel constant that is valid for your channel mode. To
  2055. * apply to more than one channel, combine channeltype constants using
  2056. * bitwise operators. Refer to this list of channel constants.
  2057. * </p>
  2058. * @return bool <b>TRUE</b> on success.
  2059. */
  2060. public function compositeImage (Imagick $composite_object, $composite, $x, $y, $channel = Imagick::CHANNEL_ALL) {}
  2061. /**
  2062. * (PECL imagick 2.0.0)<br/>
  2063. * Control the brightness, saturation, and hue
  2064. * @link https://php.net/manual/en/imagick.modulateimage.php
  2065. * @param float $brightness
  2066. * @param float $saturation
  2067. * @param float $hue
  2068. * @return bool <b>TRUE</b> on success.
  2069. */
  2070. public function modulateImage ($brightness, $saturation, $hue) {}
  2071. /**
  2072. * (PECL imagick 2.0.0)<br/>
  2073. * Gets the number of unique colors in the image
  2074. * @link https://php.net/manual/en/imagick.getimagecolors.php
  2075. * @return int <b>TRUE</b> on success.
  2076. */
  2077. public function getImageColors () {}
  2078. /**
  2079. * (PECL imagick 2.0.0)<br/>
  2080. * Creates a composite image
  2081. * @link https://php.net/manual/en/imagick.montageimage.php
  2082. * @param ImagickDraw $draw <p>
  2083. * The font name, size, and color are obtained from this object.
  2084. * </p>
  2085. * @param string $tile_geometry <p>
  2086. * The number of tiles per row and page (e.g. 6x4+0+0).
  2087. * </p>
  2088. * @param string $thumbnail_geometry <p>
  2089. * Preferred image size and border size of each thumbnail
  2090. * (e.g. 120x120+4+3>).
  2091. * </p>
  2092. * @param int $mode <p>
  2093. * Thumbnail framing mode, see Montage Mode constants.
  2094. * </p>
  2095. * @param string $frame <p>
  2096. * Surround the image with an ornamental border (e.g. 15x15+3+3). The
  2097. * frame color is that of the thumbnail's matte color.
  2098. * </p>
  2099. * @return Imagick <b>TRUE</b> on success.
  2100. */
  2101. public function montageImage (ImagickDraw $draw, $tile_geometry, $thumbnail_geometry, $mode, $frame) {}
  2102. /**
  2103. * (PECL imagick 2.0.0)<br/>
  2104. * Identifies an image and fetches attributes
  2105. * @link https://php.net/manual/en/imagick.identifyimage.php
  2106. * @param bool $appendRawOutput [optional]
  2107. * @return array Identifies an image and returns the attributes. Attributes include
  2108. * the image width, height, size, and others.
  2109. */
  2110. public function identifyImage ($appendRawOutput = false) {}
  2111. /**
  2112. * (PECL imagick 2.0.0)<br/>
  2113. * Changes the value of individual pixels based on a threshold
  2114. * @link https://php.net/manual/en/imagick.thresholdimage.php
  2115. * @param float $threshold
  2116. * @param int $channel [optional]
  2117. * @return bool <b>TRUE</b> on success.
  2118. */
  2119. public function thresholdImage ($threshold, $channel = Imagick::CHANNEL_ALL) {}
  2120. /**
  2121. * (PECL imagick 2.0.0)<br/>
  2122. * Selects a threshold for each pixel based on a range of intensity
  2123. * @link https://php.net/manual/en/imagick.adaptivethresholdimage.php
  2124. * @param int $width <p>
  2125. * Width of the local neighborhood.
  2126. * </p>
  2127. * @param int $height <p>
  2128. * Height of the local neighborhood.
  2129. * </p>
  2130. * @param int $offset <p>
  2131. * The mean offset
  2132. * </p>
  2133. * @return bool <b>TRUE</b> on success.
  2134. */
  2135. public function adaptiveThresholdImage ($width, $height, $offset) {}
  2136. /**
  2137. * (PECL imagick 2.0.0)<br/>
  2138. * Forces all pixels below the threshold into black
  2139. * @link https://php.net/manual/en/imagick.blackthresholdimage.php
  2140. * @param mixed $threshold <p>
  2141. * The threshold below which everything turns black
  2142. * </p>
  2143. * @return bool <b>TRUE</b> on success.
  2144. */
  2145. public function blackThresholdImage ($threshold) {}
  2146. /**
  2147. * (PECL imagick 2.0.0)<br/>
  2148. * Force all pixels above the threshold into white
  2149. * @link https://php.net/manual/en/imagick.whitethresholdimage.php
  2150. * @param mixed $threshold
  2151. * @return bool <b>TRUE</b> on success.
  2152. */
  2153. public function whiteThresholdImage ($threshold) {}
  2154. /**
  2155. * (PECL imagick 2.0.0)<br/>
  2156. * Append a set of images
  2157. * @link https://php.net/manual/en/imagick.appendimages.php
  2158. * @param bool $stack [optional] <p>
  2159. * Whether to stack the images vertically.
  2160. * By default (or if <b>FALSE</b> is specified) images are stacked left-to-right.
  2161. * If <i>stack</i> is <b>TRUE</b>, images are stacked top-to-bottom.
  2162. * </p>
  2163. * @return Imagick Imagick instance on success.
  2164. */
  2165. public function appendImages ($stack = false) {}
  2166. /**
  2167. * (PECL imagick 2.0.0)<br/>
  2168. * Simulates a charcoal drawing
  2169. * @link https://php.net/manual/en/imagick.charcoalimage.php
  2170. * @param float $radius <p>
  2171. * The radius of the Gaussian, in pixels, not counting the center pixel
  2172. * </p>
  2173. * @param float $sigma <p>
  2174. * The standard deviation of the Gaussian, in pixels
  2175. * </p>
  2176. * @return bool <b>TRUE</b> on success.
  2177. */
  2178. public function charcoalImage ($radius, $sigma) {}
  2179. /**
  2180. * (PECL imagick 2.0.0)<br/>
  2181. * Enhances the contrast of a color image
  2182. * @link https://php.net/manual/en/imagick.normalizeimage.php
  2183. * @param int $channel [optional] <p>
  2184. * Provide any channel constant that is valid for your channel mode. To
  2185. * apply to more than one channel, combine channeltype constants using
  2186. * bitwise operators. Refer to this
  2187. * list of channel constants.
  2188. * </p>
  2189. * @return bool <b>TRUE</b> on success.
  2190. */
  2191. public function normalizeImage ($channel = Imagick::CHANNEL_ALL) {}
  2192. /**
  2193. * (PECL imagick 2.0.0)<br/>
  2194. * Simulates an oil painting
  2195. * @link https://php.net/manual/en/imagick.oilpaintimage.php
  2196. * @param float $radius <p>
  2197. * The radius of the circular neighborhood.
  2198. * </p>
  2199. * @return bool <b>TRUE</b> on success.
  2200. */
  2201. public function oilPaintImage ($radius) {}
  2202. /**
  2203. * (PECL imagick 2.0.0)<br/>
  2204. * Reduces the image to a limited number of color level
  2205. * @link https://php.net/manual/en/imagick.posterizeimage.php
  2206. * @param int $levels
  2207. * @param bool $dither
  2208. * @return bool <b>TRUE</b> on success.
  2209. */
  2210. public function posterizeImage ($levels, $dither) {}
  2211. /**
  2212. * (PECL imagick 2.0.0)<br/>
  2213. * Radial blurs an image
  2214. * @link https://php.net/manual/en/imagick.radialblurimage.php
  2215. * @param float $angle
  2216. * @param int $channel [optional]
  2217. * @return bool <b>TRUE</b> on success.
  2218. */
  2219. public function radialBlurImage ($angle, $channel = Imagick::CHANNEL_ALL) {}
  2220. /**
  2221. * (PECL imagick 2.0.0)<br/>
  2222. * Creates a simulated 3d button-like effect
  2223. * @link https://php.net/manual/en/imagick.raiseimage.php
  2224. * @param int $width
  2225. * @param int $height
  2226. * @param int $x
  2227. * @param int $y
  2228. * @param bool $raise
  2229. * @return bool <b>TRUE</b> on success.
  2230. */
  2231. public function raiseImage ($width, $height, $x, $y, $raise) {}
  2232. /**
  2233. * (PECL imagick 2.0.0)<br/>
  2234. * Resample image to desired resolution
  2235. * @link https://php.net/manual/en/imagick.resampleimage.php
  2236. * @param float $x_resolution
  2237. * @param float $y_resolution
  2238. * @param int $filter
  2239. * @param float $blur
  2240. * @return bool <b>TRUE</b> on success.
  2241. */
  2242. public function resampleImage ($x_resolution, $y_resolution, $filter, $blur) {}
  2243. /**
  2244. * Scales an image to the desired dimensions with one of these filters:<br>
  2245. * If legacy is true, the calculations are done with the small rounding bug that existed in Imagick before 3.4.0.<br>
  2246. * If false, the calculations should produce the same results as ImageMagick CLI does.<br>
  2247. * <br>
  2248. * <b>Note:</b> The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched.<br>
  2249. * In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given.
  2250. * @link https://php.net/manual/en/imagick.resizeimage.php
  2251. * @param int $columns Width of the image
  2252. * @param int $rows Height of the image
  2253. * @param int $filter Refer to the list of filter constants.
  2254. * @param float $blur The blur factor where > 1 is blurry, < 1 is sharp.
  2255. * @param bool $bestfit [optional] Added since 2.1.0. Added optional fit parameter. This method now supports proportional scaling. Pass zero as either parameter for proportional scaling
  2256. * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE
  2257. * @return bool TRUE on success
  2258. * @since 2.0.0
  2259. */
  2260. public function resizeImage ($columns, $rows, $filter, $blur, $bestfit = false, $legacy = false) {}
  2261. /**
  2262. * (PECL imagick 2.0.0)<br/>
  2263. * Offsets an image
  2264. * @link https://php.net/manual/en/imagick.rollimage.php
  2265. * @param int $x <p>
  2266. * The X offset.
  2267. * </p>
  2268. * @param int $y <p>
  2269. * The Y offset.
  2270. * </p>
  2271. * @return bool <b>TRUE</b> on success.
  2272. */
  2273. public function rollImage ($x, $y) {}
  2274. /**
  2275. * (PECL imagick 2.0.0)<br/>
  2276. * Rotates an image
  2277. * @link https://php.net/manual/en/imagick.rotateimage.php
  2278. * @param mixed $background <p>
  2279. * The background color
  2280. * </p>
  2281. * @param float $degrees <p>
  2282. * The number of degrees to rotate the image
  2283. * </p>
  2284. * @return bool <b>TRUE</b> on success.
  2285. */
  2286. public function rotateImage ($background, $degrees) {}
  2287. /**
  2288. * (PECL imagick 2.0.0)<br/>
  2289. * Scales an image with pixel sampling
  2290. * @link https://php.net/manual/en/imagick.sampleimage.php
  2291. * @param int $columns
  2292. * @param int $rows
  2293. * @return bool <b>TRUE</b> on success.
  2294. */
  2295. public function sampleImage ($columns, $rows) {}
  2296. /**
  2297. * (PECL imagick 2.0.0)<br/>
  2298. * Applies a solarizing effect to the image
  2299. * @link https://php.net/manual/en/imagick.solarizeimage.php
  2300. * @param int $threshold
  2301. * @return bool <b>TRUE</b> on success.
  2302. */
  2303. public function solarizeImage ($threshold) {}
  2304. /**
  2305. * (PECL imagick 2.0.0)<br/>
  2306. * Simulates an image shadow
  2307. * @link https://php.net/manual/en/imagick.shadowimage.php
  2308. * @param float $opacity
  2309. * @param float $sigma
  2310. * @param int $x
  2311. * @param int $y
  2312. * @return bool <b>TRUE</b> on success.
  2313. */
  2314. public function shadowImage ($opacity, $sigma, $x, $y) {}
  2315. /**
  2316. * @param $key
  2317. * @param $value
  2318. */
  2319. public function setImageAttribute ($key, $value) {}
  2320. /**
  2321. * (PECL imagick 2.0.0)<br/>
  2322. * Sets the image background color
  2323. * @link https://php.net/manual/en/imagick.setimagebackgroundcolor.php
  2324. * @param mixed $background
  2325. * @return bool <b>TRUE</b> on success.
  2326. */
  2327. public function setImageBackgroundColor ($background) {}
  2328. /**
  2329. * (PECL imagick 2.0.0)<br/>
  2330. * Sets the image composite operator
  2331. * @link https://php.net/manual/en/imagick.setimagecompose.php
  2332. * @param int $compose
  2333. * @return bool <b>TRUE</b> on success.
  2334. */
  2335. public function setImageCompose ($compose) {}
  2336. /**
  2337. * (PECL imagick 2.0.0)<br/>
  2338. * Sets the image compression
  2339. * @link https://php.net/manual/en/imagick.setimagecompression.php
  2340. * @param int $compression <p>
  2341. * One of the <b>COMPRESSION</b> constants
  2342. * </p>
  2343. * @return bool <b>TRUE</b> on success.
  2344. */
  2345. public function setImageCompression ($compression) {}
  2346. /**
  2347. * (PECL imagick 2.0.0)<br/>
  2348. * Sets the image delay
  2349. * @link https://php.net/manual/en/imagick.setimagedelay.php
  2350. * @param int $delay <p>
  2351. * The amount of time expressed in 'ticks' that the image should be
  2352. * displayed for. For animated GIFs there are 100 ticks per second, so a
  2353. * value of 20 would be 20/100 of a second aka 1/5th of a second.
  2354. * </p>
  2355. * @return bool <b>TRUE</b> on success.
  2356. */
  2357. public function setImageDelay ($delay) {}
  2358. /**
  2359. * (PECL imagick 2.0.0)<br/>
  2360. * Sets the image depth
  2361. * @link https://php.net/manual/en/imagick.setimagedepth.php
  2362. * @param int $depth
  2363. * @return bool <b>TRUE</b> on success.
  2364. */
  2365. public function setImageDepth ($depth) {}
  2366. /**
  2367. * (PECL imagick 2.0.0)<br/>
  2368. * Sets the image gamma
  2369. * @link https://php.net/manual/en/imagick.setimagegamma.php
  2370. * @param float $gamma
  2371. * @return bool <b>TRUE</b> on success.
  2372. */
  2373. public function setImageGamma ($gamma) {}
  2374. /**
  2375. * (PECL imagick 2.0.0)<br/>
  2376. * Sets the image iterations
  2377. * @link https://php.net/manual/en/imagick.setimageiterations.php
  2378. * @param int $iterations <p>
  2379. * The number of iterations the image should loop over. Set to '0' to loop
  2380. * continuously.
  2381. * </p>
  2382. * @return bool <b>TRUE</b> on success.
  2383. */
  2384. public function setImageIterations ($iterations) {}
  2385. /**
  2386. * (PECL imagick 2.0.0)<br/>
  2387. * Sets the image matte color
  2388. * @link https://php.net/manual/en/imagick.setimagemattecolor.php
  2389. * @param mixed $matte
  2390. * @return bool <b>TRUE</b> on success.
  2391. */
  2392. public function setImageMatteColor ($matte) {}
  2393. /**
  2394. * (PECL imagick 2.0.0)<br/>
  2395. * Sets the page geometry of the image
  2396. * @link https://php.net/manual/en/imagick.setimagepage.php
  2397. * @param int $width
  2398. * @param int $height
  2399. * @param int $x
  2400. * @param int $y
  2401. * @return bool <b>TRUE</b> on success.
  2402. */
  2403. public function setImagePage ($width, $height, $x, $y) {}
  2404. /**
  2405. * @param $filename
  2406. */
  2407. public function setImageProgressMonitor ($filename) {}
  2408. /**
  2409. * (PECL imagick 2.0.0)<br/>
  2410. * Sets the image resolution
  2411. * @link https://php.net/manual/en/imagick.setimageresolution.php
  2412. * @param float $x_resolution
  2413. * @param float $y_resolution
  2414. * @return bool <b>TRUE</b> on success.
  2415. */
  2416. public function setImageResolution ($x_resolution, $y_resolution) {}
  2417. /**
  2418. * (PECL imagick 2.0.0)<br/>
  2419. * Sets the image scene
  2420. * @link https://php.net/manual/en/imagick.setimagescene.php
  2421. * @param int $scene
  2422. * @return bool <b>TRUE</b> on success.
  2423. */
  2424. public function setImageScene ($scene) {}
  2425. /**
  2426. * (PECL imagick 2.0.0)<br/>
  2427. * Sets the image ticks-per-second
  2428. * @link https://php.net/manual/en/imagick.setimagetickspersecond.php
  2429. * @param int $ticks_per_second <p>
  2430. * The duration for which an image should be displayed expressed in ticks
  2431. * per second.
  2432. * </p>
  2433. * @return bool <b>TRUE</b> on success.
  2434. */
  2435. public function setImageTicksPerSecond ($ticks_per_second) {}
  2436. /**
  2437. * (PECL imagick 2.0.0)<br/>
  2438. * Sets the image type
  2439. * @link https://php.net/manual/en/imagick.setimagetype.php
  2440. * @param int $image_type
  2441. * @return bool <b>TRUE</b> on success.
  2442. */
  2443. public function setImageType ($image_type) {}
  2444. /**
  2445. * (PECL imagick 2.0.0)<br/>
  2446. * Sets the image units of resolution
  2447. * @link https://php.net/manual/en/imagick.setimageunits.php
  2448. * @param int $units
  2449. * @return bool <b>TRUE</b> on success.
  2450. */
  2451. public function setImageUnits ($units) {}
  2452. /**
  2453. * (PECL imagick 2.0.0)<br/>
  2454. * Sharpens an image
  2455. * @link https://php.net/manual/en/imagick.sharpenimage.php
  2456. * @param float $radius
  2457. * @param float $sigma
  2458. * @param int $channel [optional]
  2459. * @return bool <b>TRUE</b> on success.
  2460. */
  2461. public function sharpenImage ($radius, $sigma, $channel = Imagick::CHANNEL_ALL) {}
  2462. /**
  2463. * (PECL imagick 2.0.0)<br/>
  2464. * Shaves pixels from the image edges
  2465. * @link https://php.net/manual/en/imagick.shaveimage.php
  2466. * @param int $columns
  2467. * @param int $rows
  2468. * @return bool <b>TRUE</b> on success.
  2469. */
  2470. public function shaveImage ($columns, $rows) {}
  2471. /**
  2472. * (PECL imagick 2.0.0)<br/>
  2473. * Creating a parallelogram
  2474. * @link https://php.net/manual/en/imagick.shearimage.php
  2475. * @param mixed $background <p>
  2476. * The background color
  2477. * </p>
  2478. * @param float $x_shear <p>
  2479. * The number of degrees to shear on the x axis
  2480. * </p>
  2481. * @param float $y_shear <p>
  2482. * The number of degrees to shear on the y axis
  2483. * </p>
  2484. * @return bool <b>TRUE</b> on success.
  2485. */
  2486. public function shearImage ($background, $x_shear, $y_shear) {}
  2487. /**
  2488. * (PECL imagick 2.0.0)<br/>
  2489. * Splices a solid color into the image
  2490. * @link https://php.net/manual/en/imagick.spliceimage.php
  2491. * @param int $width
  2492. * @param int $height
  2493. * @param int $x
  2494. * @param int $y
  2495. * @return bool <b>TRUE</b> on success.
  2496. */
  2497. public function spliceImage ($width, $height, $x, $y) {}
  2498. /**
  2499. * (PECL imagick 2.0.0)<br/>
  2500. * Fetch basic attributes about the image
  2501. * @link https://php.net/manual/en/imagick.pingimage.php
  2502. * @param string $filename <p>
  2503. * The filename to read the information from.
  2504. * </p>
  2505. * @return bool <b>TRUE</b> on success.
  2506. */
  2507. public function pingImage ($filename) {}
  2508. /**
  2509. * (PECL imagick 2.0.0)<br/>
  2510. * Reads image from open filehandle
  2511. * @link https://php.net/manual/en/imagick.readimagefile.php
  2512. * @param resource $filehandle
  2513. * @param string $fileName [optional]
  2514. * @return bool <b>TRUE</b> on success.
  2515. */
  2516. public function readImageFile ($filehandle, $fileName = null) {}
  2517. /**
  2518. * (PECL imagick 2.0.0)<br/>
  2519. * Displays an image
  2520. * @link https://php.net/manual/en/imagick.displayimage.php
  2521. * @param string $servername <p>
  2522. * The X server name
  2523. * </p>
  2524. * @return bool <b>TRUE</b> on success.
  2525. */
  2526. public function displayImage ($servername) {}
  2527. /**
  2528. * (PECL imagick 2.0.0)<br/>
  2529. * Displays an image or image sequence
  2530. * @link https://php.net/manual/en/imagick.displayimages.php
  2531. * @param string $servername <p>
  2532. * The X server name
  2533. * </p>
  2534. * @return bool <b>TRUE</b> on success.
  2535. */
  2536. public function displayImages ($servername) {}
  2537. /**
  2538. * (PECL imagick 2.0.0)<br/>
  2539. * Randomly displaces each pixel in a block
  2540. * @link https://php.net/manual/en/imagick.spreadimage.php
  2541. * @param float $radius
  2542. * @return bool <b>TRUE</b> on success.
  2543. */
  2544. public function spreadImage ($radius) {}
  2545. /**
  2546. * (PECL imagick 2.0.0)<br/>
  2547. * Swirls the pixels about the center of the image
  2548. * @link https://php.net/manual/en/imagick.swirlimage.php
  2549. * @param float $degrees
  2550. * @return bool <b>TRUE</b> on success.
  2551. */
  2552. public function swirlImage ($degrees) {}
  2553. /**
  2554. * (PECL imagick 2.0.0)<br/>
  2555. * Strips an image of all profiles and comments
  2556. * @link https://php.net/manual/en/imagick.stripimage.php
  2557. * @return bool <b>TRUE</b> on success.
  2558. */
  2559. public function stripImage () {}
  2560. /**
  2561. * (PECL imagick 2.0.0)<br/>
  2562. * Returns formats supported by Imagick
  2563. * @link https://php.net/manual/en/imagick.queryformats.php
  2564. * @param string $pattern [optional]
  2565. * @return array an array containing the formats supported by Imagick.
  2566. */
  2567. public static function queryFormats ($pattern = "*") {}
  2568. /**
  2569. * (PECL imagick 2.0.0)<br/>
  2570. * Returns the configured fonts
  2571. * @link https://php.net/manual/en/imagick.queryfonts.php
  2572. * @param string $pattern [optional] <p>
  2573. * The query pattern
  2574. * </p>
  2575. * @return array an array containing the configured fonts.
  2576. */
  2577. public static function queryFonts ($pattern = "*") {}
  2578. /**
  2579. * (PECL imagick 2.0.0)<br/>
  2580. * Returns an array representing the font metrics
  2581. * @link https://php.net/manual/en/imagick.queryfontmetrics.php
  2582. * @param ImagickDraw $properties <p>
  2583. * ImagickDraw object containing font properties
  2584. * </p>
  2585. * @param string $text <p>
  2586. * The text
  2587. * </p>
  2588. * @param bool $multiline [optional] <p>
  2589. * Multiline parameter. If left empty it is autodetected
  2590. * </p>
  2591. * @return array a multi-dimensional array representing the font metrics.
  2592. */
  2593. public function queryFontMetrics (ImagickDraw $properties, $text, $multiline = null) {}
  2594. /**
  2595. * (PECL imagick 2.0.0)<br/>
  2596. * Hides a digital watermark within the image
  2597. * @link https://php.net/manual/en/imagick.steganoimage.php
  2598. * @param Imagick $watermark_wand
  2599. * @param int $offset
  2600. * @return Imagick <b>TRUE</b> on success.
  2601. */
  2602. public function steganoImage (Imagick $watermark_wand, $offset) {}
  2603. /**
  2604. * (PECL imagick 2.0.0)<br/>
  2605. * Adds random noise to the image
  2606. * @link https://php.net/manual/en/imagick.addnoiseimage.php
  2607. * @param int $noise_type <p>
  2608. * The type of the noise. Refer to this list of
  2609. * noise constants.
  2610. * </p>
  2611. * @param int $channel [optional] <p>
  2612. * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to <b>Imagick::CHANNEL_DEFAULT</b>. Refer to this list of channel constants
  2613. * </p>
  2614. * @return bool <b>TRUE</b> on success.
  2615. */
  2616. public function addNoiseImage ($noise_type, $channel = Imagick::CHANNEL_DEFAULT) {}
  2617. /**
  2618. * (PECL imagick 2.0.0)<br/>
  2619. * Simulates motion blur
  2620. * @link https://php.net/manual/en/imagick.motionblurimage.php
  2621. * @param float $radius <p>
  2622. * The radius of the Gaussian, in pixels, not counting the center pixel.
  2623. * </p>
  2624. * @param float $sigma <p>
  2625. * The standard deviation of the Gaussian, in pixels.
  2626. * </p>
  2627. * @param float $angle <p>
  2628. * Apply the effect along this angle.
  2629. * </p>
  2630. * @param int $channel [optional] <p>
  2631. * Provide any channel constant that is valid for your channel mode. To
  2632. * apply to more than one channel, combine channeltype constants using
  2633. * bitwise operators. Refer to this
  2634. * list of channel constants.
  2635. * The channel argument affects only if Imagick is compiled against ImageMagick version
  2636. * 6.4.4 or greater.
  2637. * </p>
  2638. * @return bool <b>TRUE</b> on success.
  2639. */
  2640. public function motionBlurImage ($radius, $sigma, $angle, $channel = Imagick::CHANNEL_DEFAULT) {}
  2641. /**
  2642. * (PECL imagick 2.0.0)<br/>
  2643. * Forms a mosaic from images
  2644. * @link https://php.net/manual/en/imagick.mosaicimages.php
  2645. * @return Imagick <b>TRUE</b> on success.
  2646. */
  2647. public function mosaicImages () {}
  2648. /**
  2649. * (PECL imagick 2.0.0)<br/>
  2650. * Method morphs a set of images
  2651. * @link https://php.net/manual/en/imagick.morphimages.php
  2652. * @param int $number_frames <p>
  2653. * The number of in-between images to generate.
  2654. * </p>
  2655. * @return Imagick This method returns a new Imagick object on success.
  2656. * Throw an <b>ImagickException</b> on error.
  2657. * @throws ImagickException on error
  2658. */
  2659. public function morphImages ($number_frames) {}
  2660. /**
  2661. * (PECL imagick 2.0.0)<br/>
  2662. * Scales an image proportionally to half its size
  2663. * @link https://php.net/manual/en/imagick.minifyimage.php
  2664. * @return bool <b>TRUE</b> on success.
  2665. */
  2666. public function minifyImage () {}
  2667. /**
  2668. * (PECL imagick 2.0.0)<br/>
  2669. * Transforms an image
  2670. * @link https://php.net/manual/en/imagick.affinetransformimage.php
  2671. * @param ImagickDraw $matrix <p>
  2672. * The affine matrix
  2673. * </p>
  2674. * @return bool <b>TRUE</b> on success.
  2675. */
  2676. public function affineTransformImage (ImagickDraw $matrix) {}
  2677. /**
  2678. * (PECL imagick 2.0.0)<br/>
  2679. * Average a set of images
  2680. * @link https://php.net/manual/en/imagick.averageimages.php
  2681. * @return Imagick a new Imagick object on success.
  2682. */
  2683. public function averageImages () {}
  2684. /**
  2685. * (PECL imagick 2.0.0)<br/>
  2686. * Surrounds the image with a border
  2687. * @link https://php.net/manual/en/imagick.borderimage.php
  2688. * @param mixed $bordercolor <p>
  2689. * ImagickPixel object or a string containing the border color
  2690. * </p>
  2691. * @param int $width <p>
  2692. * Border width
  2693. * </p>
  2694. * @param int $height <p>
  2695. * Border height
  2696. * </p>
  2697. * @return bool <b>TRUE</b> on success.
  2698. */
  2699. public function borderImage ($bordercolor, $width, $height) {}
  2700. /**
  2701. * (PECL imagick 2.0.0)<br/>
  2702. * Removes a region of an image and trims
  2703. * @link https://php.net/manual/en/imagick.chopimage.php
  2704. * @param int $width <p>
  2705. * Width of the chopped area
  2706. * </p>
  2707. * @param int $height <p>
  2708. * Height of the chopped area
  2709. * </p>
  2710. * @param int $x <p>
  2711. * X origo of the chopped area
  2712. * </p>
  2713. * @param int $y <p>
  2714. * Y origo of the chopped area
  2715. * </p>
  2716. * @return bool <b>TRUE</b> on success.
  2717. */
  2718. public function chopImage ($width, $height, $x, $y) {}
  2719. /**
  2720. * (PECL imagick 2.0.0)<br/>
  2721. * Clips along the first path from the 8BIM profile
  2722. * @link https://php.net/manual/en/imagick.clipimage.php
  2723. * @return bool <b>TRUE</b> on success.
  2724. */
  2725. public function clipImage () {}
  2726. /**
  2727. * (PECL imagick 2.0.0)<br/>
  2728. * Clips along the named paths from the 8BIM profile
  2729. * @link https://php.net/manual/en/imagick.clippathimage.php
  2730. * @param string $pathname <p>
  2731. * The name of the path
  2732. * </p>
  2733. * @param bool $inside <p>
  2734. * If <b>TRUE</b> later operations take effect inside clipping path.
  2735. * Otherwise later operations take effect outside clipping path.
  2736. * </p>
  2737. * @return bool <b>TRUE</b> on success.
  2738. */
  2739. public function clipPathImage ($pathname, $inside) {}
  2740. /**
  2741. * @param $pathname
  2742. * @param $inside
  2743. */
  2744. public function clipImagePath ($pathname, $inside) {}
  2745. /**
  2746. * (PECL imagick 2.0.0)<br/>
  2747. * Composites a set of images
  2748. * @link https://php.net/manual/en/imagick.coalesceimages.php
  2749. * @return Imagick a new Imagick object on success.
  2750. */
  2751. public function coalesceImages () {}
  2752. /**
  2753. * (PECL imagick 2.0.0)<br/>
  2754. * Changes the color value of any pixel that matches target
  2755. * @link https://php.net/manual/en/imagick.colorfloodfillimage.php
  2756. * @param mixed $fill <p>
  2757. * ImagickPixel object containing the fill color
  2758. * </p>
  2759. * @param float $fuzz <p>
  2760. * The amount of fuzz. For example, set fuzz to 10 and the color red at
  2761. * intensities of 100 and 102 respectively are now interpreted as the
  2762. * same color for the purposes of the floodfill.
  2763. * </p>
  2764. * @param mixed $bordercolor <p>
  2765. * ImagickPixel object containing the border color
  2766. * </p>
  2767. * @param int $x <p>
  2768. * X start position of the floodfill
  2769. * </p>
  2770. * @param int $y <p>
  2771. * Y start position of the floodfill
  2772. * </p>
  2773. * @return bool <b>TRUE</b> on success.
  2774. */
  2775. public function colorFloodfillImage ($fill, $fuzz, $bordercolor, $x, $y) {}
  2776. /**
  2777. * Blends the fill color with each pixel in the image. The 'opacity' color is a per channel strength factor for how strongly the color should be applied.<br>
  2778. * If legacy is true, the behaviour of this function is incorrect, but consistent with how it behaved before Imagick version 3.4.0
  2779. * @link https://php.net/manual/en/imagick.colorizeimage.php
  2780. * @param mixed $colorize <p>
  2781. * ImagickPixel object or a string containing the colorize color
  2782. * </p>
  2783. * @param mixed $opacity <p>
  2784. * ImagickPixel object or an float containing the opacity value.
  2785. * 1.0 is fully opaque and 0.0 is fully transparent.
  2786. * </p>
  2787. * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE
  2788. * @return bool <b>TRUE</b> on success.
  2789. * @throws ImagickException Throws ImagickException on error
  2790. * @since 2.0.0
  2791. */
  2792. public function colorizeImage ($colorize, $opacity, $legacy = false) {}
  2793. /**
  2794. * (PECL imagick 2.0.0)<br/>
  2795. * Returns the difference in one or more images
  2796. * @link https://php.net/manual/en/imagick.compareimagechannels.php
  2797. * @param Imagick $image <p>
  2798. * Imagick object containing the image to compare.
  2799. * </p>
  2800. * @param int $channelType <p>
  2801. * Provide any channel constant that is valid for your channel mode. To
  2802. * apply to more than one channel, combine channeltype constants using
  2803. * bitwise operators. Refer to this
  2804. * list of channel constants.
  2805. * </p>
  2806. * @param int $metricType <p>
  2807. * One of the metric type constants.
  2808. * </p>
  2809. * @return array Array consisting of new_wand and
  2810. * distortion.
  2811. */
  2812. public function compareImageChannels (Imagick $image, $channelType, $metricType) {}
  2813. /**
  2814. * (PECL imagick 2.0.0)<br/>
  2815. * Compares an image to a reconstructed image
  2816. * @link https://php.net/manual/en/imagick.compareimages.php
  2817. * @param Imagick $compare <p>
  2818. * An image to compare to.
  2819. * </p>
  2820. * @param int $metric <p>
  2821. * Provide a valid metric type constant. Refer to this
  2822. * list of metric constants.
  2823. * </p>
  2824. * @return array Array consisting of an Imagick object of the
  2825. * reconstructed image and a double representing the difference.
  2826. * @throws ImagickException Throws ImagickException on error.
  2827. */
  2828. public function compareImages (Imagick $compare, $metric) {}
  2829. /**
  2830. * (PECL imagick 2.0.0)<br/>
  2831. * Change the contrast of the image
  2832. * @link https://php.net/manual/en/imagick.contrastimage.php
  2833. * @param bool $sharpen <p>
  2834. * The sharpen value
  2835. * </p>
  2836. * @return bool <b>TRUE</b> on success.
  2837. */
  2838. public function contrastImage ($sharpen) {}
  2839. /**
  2840. * (PECL imagick 2.0.0)<br/>
  2841. * Combines one or more images into a single image
  2842. * @link https://php.net/manual/en/imagick.combineimages.php
  2843. * @param int $channelType <p>
  2844. * Provide any channel constant that is valid for your channel mode. To
  2845. * apply to more than one channel, combine channeltype constants using
  2846. * bitwise operators. Refer to this
  2847. * list of channel constants.
  2848. * </p>
  2849. * @return Imagick <b>TRUE</b> on success.
  2850. */
  2851. public function combineImages ($channelType) {}
  2852. /**
  2853. * (PECL imagick 2.0.0)<br/>
  2854. * Applies a custom convolution kernel to the image
  2855. * @link https://php.net/manual/en/imagick.convolveimage.php
  2856. * @param array $kernel <p>
  2857. * The convolution kernel
  2858. * </p>
  2859. * @param int $channel [optional] <p>
  2860. * Provide any channel constant that is valid for your channel mode. To
  2861. * apply to more than one channel, combine channeltype constants using
  2862. * bitwise operators. Refer to this
  2863. * list of channel constants.
  2864. * </p>
  2865. * @return bool <b>TRUE</b> on success.
  2866. */
  2867. public function convolveImage (array $kernel, $channel = Imagick::CHANNEL_ALL) {}
  2868. /**
  2869. * (PECL imagick 2.0.0)<br/>
  2870. * Displaces an image's colormap
  2871. * @link https://php.net/manual/en/imagick.cyclecolormapimage.php
  2872. * @param int $displace <p>
  2873. * The amount to displace the colormap.
  2874. * </p>
  2875. * @return bool <b>TRUE</b> on success.
  2876. */
  2877. public function cycleColormapImage ($displace) {}
  2878. /**
  2879. * (PECL imagick 2.0.0)<br/>
  2880. * Returns certain pixel differences between images
  2881. * @link https://php.net/manual/en/imagick.deconstructimages.php
  2882. * @return Imagick a new Imagick object on success.
  2883. */
  2884. public function deconstructImages () {}
  2885. /**
  2886. * (PECL imagick 2.0.0)<br/>
  2887. * Reduces the speckle noise in an image
  2888. * @link https://php.net/manual/en/imagick.despeckleimage.php
  2889. * @return bool <b>TRUE</b> on success.
  2890. */
  2891. public function despeckleImage () {}
  2892. /**
  2893. * (PECL imagick 2.0.0)<br/>
  2894. * Enhance edges within the image
  2895. * @link https://php.net/manual/en/imagick.edgeimage.php
  2896. * @param float $radius <p>
  2897. * The radius of the operation.
  2898. * </p>
  2899. * @return bool <b>TRUE</b> on success.
  2900. */
  2901. public function edgeImage ($radius) {}
  2902. /**
  2903. * (PECL imagick 2.0.0)<br/>
  2904. * Returns a grayscale image with a three-dimensional effect
  2905. * @link https://php.net/manual/en/imagick.embossimage.php
  2906. * @param float $radius <p>
  2907. * The radius of the effect
  2908. * </p>
  2909. * @param float $sigma <p>
  2910. * The sigma of the effect
  2911. * </p>
  2912. * @return bool <b>TRUE</b> on success.
  2913. */
  2914. public function embossImage ($radius, $sigma) {}
  2915. /**
  2916. * (PECL imagick 2.0.0)<br/>
  2917. * Improves the quality of a noisy image
  2918. * @link https://php.net/manual/en/imagick.enhanceimage.php
  2919. * @return bool <b>TRUE</b> on success.
  2920. */
  2921. public function enhanceImage () {}
  2922. /**
  2923. * (PECL imagick 2.0.0)<br/>
  2924. * Equalizes the image histogram
  2925. * @link https://php.net/manual/en/imagick.equalizeimage.php
  2926. * @return bool <b>TRUE</b> on success.
  2927. */
  2928. public function equalizeImage () {}
  2929. /**
  2930. * (PECL imagick 2.0.0)<br/>
  2931. * Applies an expression to an image
  2932. * @link https://php.net/manual/en/imagick.evaluateimage.php
  2933. * @param int $op <p>
  2934. * The evaluation operator
  2935. * </p>
  2936. * @param float $constant <p>
  2937. * The value of the operator
  2938. * </p>
  2939. * @param int $channel [optional] <p>
  2940. * Provide any channel constant that is valid for your channel mode. To
  2941. * apply to more than one channel, combine channeltype constants using
  2942. * bitwise operators. Refer to this
  2943. * list of channel constants.
  2944. * </p>
  2945. * @return bool <b>TRUE</b> on success.
  2946. */
  2947. public function evaluateImage ($op, $constant, $channel = Imagick::CHANNEL_ALL) {}
  2948. /**
  2949. * Merges a sequence of images. This is useful for combining Photoshop layers into a single image.
  2950. * This is replaced by:
  2951. * <pre>
  2952. * $im = $im->mergeImageLayers(\Imagick::LAYERMETHOD_FLATTEN)
  2953. * </pre>
  2954. * @link https://php.net/manual/en/imagick.flattenimages.php
  2955. * @return Imagick Returns an Imagick object containing the merged image.
  2956. * @throws ImagickException Throws ImagickException on error.
  2957. * @since 2.0.0
  2958. */
  2959. public function flattenImages () {}
  2960. /**
  2961. * (PECL imagick 2.0.0)<br/>
  2962. * Creates a vertical mirror image
  2963. * @link https://php.net/manual/en/imagick.flipimage.php
  2964. * @return bool <b>TRUE</b> on success.
  2965. */
  2966. public function flipImage () {}
  2967. /**
  2968. * (PECL imagick 2.0.0)<br/>
  2969. * Creates a horizontal mirror image
  2970. * @link https://php.net/manual/en/imagick.flopimage.php
  2971. * @return bool <b>TRUE</b> on success.
  2972. */
  2973. public function flopImage () {}
  2974. /**
  2975. * (PECL imagick 2.0.0)<br/>
  2976. * Adds a simulated three-dimensional border
  2977. * @link https://php.net/manual/en/imagick.frameimage.php
  2978. * @param mixed $matte_color <p>
  2979. * ImagickPixel object or a string representing the matte color
  2980. * </p>
  2981. * @param int $width <p>
  2982. * The width of the border
  2983. * </p>
  2984. * @param int $height <p>
  2985. * The height of the border
  2986. * </p>
  2987. * @param int $inner_bevel <p>
  2988. * The inner bevel width
  2989. * </p>
  2990. * @param int $outer_bevel <p>
  2991. * The outer bevel width
  2992. * </p>
  2993. * @return bool <b>TRUE</b> on success.
  2994. */
  2995. public function frameImage ($matte_color, $width, $height, $inner_bevel, $outer_bevel) {}
  2996. /**
  2997. * (PECL imagick 2.0.0)<br/>
  2998. * Evaluate expression for each pixel in the image
  2999. * @link https://php.net/manual/en/imagick.fximage.php
  3000. * @param string $expression <p>
  3001. * The expression.
  3002. * </p>
  3003. * @param int $channel [optional] <p>
  3004. * Provide any channel constant that is valid for your channel mode. To
  3005. * apply to more than one channel, combine channeltype constants using
  3006. * bitwise operators. Refer to this
  3007. * list of channel constants.
  3008. * </p>
  3009. * @return Imagick <b>TRUE</b> on success.
  3010. */
  3011. public function fxImage ($expression, $channel = Imagick::CHANNEL_ALL) {}
  3012. /**
  3013. * (PECL imagick 2.0.0)<br/>
  3014. * Gamma-corrects an image
  3015. * @link https://php.net/manual/en/imagick.gammaimage.php
  3016. * @param float $gamma <p>
  3017. * The amount of gamma-correction.
  3018. * </p>
  3019. * @param int $channel [optional] <p>
  3020. * Provide any channel constant that is valid for your channel mode. To
  3021. * apply to more than one channel, combine channeltype constants using
  3022. * bitwise operators. Refer to this
  3023. * list of channel constants.
  3024. * </p>
  3025. * @return bool <b>TRUE</b> on success.
  3026. */
  3027. public function gammaImage ($gamma, $channel = Imagick::CHANNEL_ALL) {}
  3028. /**
  3029. * (PECL imagick 2.0.0)<br/>
  3030. * Blurs an image
  3031. * @link https://php.net/manual/en/imagick.gaussianblurimage.php
  3032. * @param float $radius <p>
  3033. * The radius of the Gaussian, in pixels, not counting the center pixel.
  3034. * </p>
  3035. * @param float $sigma <p>
  3036. * The standard deviation of the Gaussian, in pixels.
  3037. * </p>
  3038. * @param int $channel [optional] <p>
  3039. * Provide any channel constant that is valid for your channel mode. To
  3040. * apply to more than one channel, combine channeltype constants using
  3041. * bitwise operators. Refer to this
  3042. * list of channel constants.
  3043. * </p>
  3044. * @return bool <b>TRUE</b> on success.
  3045. */
  3046. public function gaussianBlurImage ($radius, $sigma, $channel = Imagick::CHANNEL_ALL) {}
  3047. /**
  3048. * @param $key
  3049. */
  3050. public function getImageAttribute ($key) {}
  3051. /**
  3052. * (PECL imagick 2.0.0)<br/>
  3053. * Returns the image background color
  3054. * @link https://php.net/manual/en/imagick.getimagebackgroundcolor.php
  3055. * @return ImagickPixel an ImagickPixel set to the background color of the image.
  3056. */
  3057. public function getImageBackgroundColor () {}
  3058. /**
  3059. * (PECL imagick 2.0.0)<br/>
  3060. * Returns the chromaticy blue primary point
  3061. * @link https://php.net/manual/en/imagick.getimageblueprimary.php
  3062. * @return array Array consisting of "x" and "y" coordinates of point.
  3063. */
  3064. public function getImageBluePrimary () {}
  3065. /**
  3066. * (PECL imagick 2.0.0)<br/>
  3067. * Returns the image border color
  3068. * @link https://php.net/manual/en/imagick.getimagebordercolor.php
  3069. * @return ImagickPixel <b>TRUE</b> on success.
  3070. */
  3071. public function getImageBorderColor () {}
  3072. /**
  3073. * (PECL imagick 2.0.0)<br/>
  3074. * Gets the depth for a particular image channel
  3075. * @link https://php.net/manual/en/imagick.getimagechanneldepth.php
  3076. * @param int $channel <p>
  3077. * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to <b>Imagick::CHANNEL_DEFAULT</b>. Refer to this list of channel constants
  3078. * </p>
  3079. * @return int <b>TRUE</b> on success.
  3080. */
  3081. public function getImageChannelDepth ($channel) {}
  3082. /**
  3083. * (PECL imagick 2.0.0)<br/>
  3084. * Compares image channels of an image to a reconstructed image
  3085. * @link https://php.net/manual/en/imagick.getimagechanneldistortion.php
  3086. * @param Imagick $reference <p>
  3087. * Imagick object to compare to.
  3088. * </p>
  3089. * @param int $channel <p>
  3090. * Provide any channel constant that is valid for your channel mode. To
  3091. * apply to more than one channel, combine channeltype constants using
  3092. * bitwise operators. Refer to this
  3093. * list of channel constants.
  3094. * </p>
  3095. * @param int $metric <p>
  3096. * One of the metric type constants.
  3097. * </p>
  3098. * @return float <b>TRUE</b> on success.
  3099. */
  3100. public function getImageChannelDistortion (Imagick $reference, $channel, $metric) {}
  3101. /**
  3102. * (PECL imagick 2.0.0)<br/>
  3103. * Gets the extrema for one or more image channels
  3104. * @link https://php.net/manual/en/imagick.getimagechannelextrema.php
  3105. * @param int $channel <p>
  3106. * Provide any channel constant that is valid for your channel mode. To
  3107. * apply to more than one channel, combine channeltype constants using
  3108. * bitwise operators. Refer to this
  3109. * list of channel constants.
  3110. * </p>
  3111. * @return array <b>TRUE</b> on success.
  3112. */
  3113. public function getImageChannelExtrema ($channel) {}
  3114. /**
  3115. * (PECL imagick 2.0.0)<br/>
  3116. * Gets the mean and standard deviation
  3117. * @link https://php.net/manual/en/imagick.getimagechannelmean.php
  3118. * @param int $channel <p>
  3119. * Provide any channel constant that is valid for your channel mode. To
  3120. * apply to more than one channel, combine channeltype constants using
  3121. * bitwise operators. Refer to this
  3122. * list of channel constants.
  3123. * </p>
  3124. * @return array <b>TRUE</b> on success.
  3125. */
  3126. public function getImageChannelMean ($channel) {}
  3127. /**
  3128. * (PECL imagick 2.0.0)<br/>
  3129. * Returns statistics for each channel in the image
  3130. * @link https://php.net/manual/en/imagick.getimagechannelstatistics.php
  3131. * @return array <b>TRUE</b> on success.
  3132. */
  3133. public function getImageChannelStatistics () {}
  3134. /**
  3135. * (PECL imagick 2.0.0)<br/>
  3136. * Returns the color of the specified colormap index
  3137. * @link https://php.net/manual/en/imagick.getimagecolormapcolor.php
  3138. * @param int $index <p>
  3139. * The offset into the image colormap.
  3140. * </p>
  3141. * @return ImagickPixel <b>TRUE</b> on success.
  3142. */
  3143. public function getImageColormapColor ($index) {}
  3144. /**
  3145. * (PECL imagick 2.0.0)<br/>
  3146. * Gets the image colorspace
  3147. * @link https://php.net/manual/en/imagick.getimagecolorspace.php
  3148. * @return int <b>TRUE</b> on success.
  3149. */
  3150. public function getImageColorspace () {}
  3151. /**
  3152. * (PECL imagick 2.0.0)<br/>
  3153. * Returns the composite operator associated with the image
  3154. * @link https://php.net/manual/en/imagick.getimagecompose.php
  3155. * @return int <b>TRUE</b> on success.
  3156. */
  3157. public function getImageCompose () {}
  3158. /**
  3159. * (PECL imagick 2.0.0)<br/>
  3160. * Gets the image delay
  3161. * @link https://php.net/manual/en/imagick.getimagedelay.php
  3162. * @return int the image delay.
  3163. */
  3164. public function getImageDelay () {}
  3165. /**
  3166. * (PECL imagick 0.9.1-0.9.9)<br/>
  3167. * Gets the image depth
  3168. * @link https://php.net/manual/en/imagick.getimagedepth.php
  3169. * @return int The image depth.
  3170. */
  3171. public function getImageDepth () {}
  3172. /**
  3173. * (PECL imagick 2.0.0)<br/>
  3174. * Compares an image to a reconstructed image
  3175. * @link https://php.net/manual/en/imagick.getimagedistortion.php
  3176. * @param Imagick $reference <p>
  3177. * Imagick object to compare to.
  3178. * </p>
  3179. * @param int $metric <p>
  3180. * One of the metric type constants.
  3181. * </p>
  3182. * @return float the distortion metric used on the image (or the best guess
  3183. * thereof).
  3184. */
  3185. public function getImageDistortion (Imagick $reference, $metric) {}
  3186. /**
  3187. * (PECL imagick 2.0.0)<br/>
  3188. * Gets the extrema for the image
  3189. * @link https://php.net/manual/en/imagick.getimageextrema.php
  3190. * @return array an associative array with the keys "min" and "max".
  3191. */
  3192. public function getImageExtrema () {}
  3193. /**
  3194. * (PECL imagick 2.0.0)<br/>
  3195. * Gets the image disposal method
  3196. * @link https://php.net/manual/en/imagick.getimagedispose.php
  3197. * @return int the dispose method on success.
  3198. */
  3199. public function getImageDispose () {}
  3200. /**
  3201. * (PECL imagick 2.0.0)<br/>
  3202. * Gets the image gamma
  3203. * @link https://php.net/manual/en/imagick.getimagegamma.php
  3204. * @return float the image gamma on success.
  3205. */
  3206. public function getImageGamma () {}
  3207. /**
  3208. * (PECL imagick 2.0.0)<br/>
  3209. * Returns the chromaticy green primary point
  3210. * @link https://php.net/manual/en/imagick.getimagegreenprimary.php
  3211. * @return array an array with the keys "x" and "y" on success, throws an ImagickException on failure.
  3212. * @throws ImagickException on failure
  3213. */
  3214. public function getImageGreenPrimary () {}
  3215. /**
  3216. * (PECL imagick 2.0.0)<br/>
  3217. * Returns the image height
  3218. * @link https://php.net/manual/en/imagick.getimageheight.php
  3219. * @return int the image height in pixels.
  3220. */
  3221. public function getImageHeight () {}
  3222. /**
  3223. * (PECL imagick 2.0.0)<br/>
  3224. * Gets the image histogram
  3225. * @link https://php.net/manual/en/imagick.getimagehistogram.php
  3226. * @return array the image histogram as an array of ImagickPixel objects.
  3227. */
  3228. public function getImageHistogram () {}
  3229. /**
  3230. * (PECL imagick 2.0.0)<br/>
  3231. * Gets the image interlace scheme
  3232. * @link https://php.net/manual/en/imagick.getimageinterlacescheme.php
  3233. * @return int the interlace scheme as an integer on success.
  3234. * Trhow an <b>ImagickException</b> on error.
  3235. * @throws ImagickException on error
  3236. */
  3237. public function getImageInterlaceScheme () {}
  3238. /**
  3239. * (PECL imagick 2.0.0)<br/>
  3240. * Gets the image iterations
  3241. * @link https://php.net/manual/en/imagick.getimageiterations.php
  3242. * @return int the image iterations as an integer.
  3243. */
  3244. public function getImageIterations () {}
  3245. /**
  3246. * (PECL imagick 2.0.0)<br/>
  3247. * Returns the image matte color
  3248. * @link https://php.net/manual/en/imagick.getimagemattecolor.php
  3249. * @return ImagickPixel ImagickPixel object on success.
  3250. */
  3251. public function getImageMatteColor () {}
  3252. /**
  3253. * (PECL imagick 2.0.0)<br/>
  3254. * Returns the page geometry
  3255. * @link https://php.net/manual/en/imagick.getimagepage.php
  3256. * @return array the page geometry associated with the image in an array with the
  3257. * keys "width", "height", "x", and "y".
  3258. */
  3259. public function getImagePage () {}
  3260. /**
  3261. * (PECL imagick 2.0.0)<br/>
  3262. * Returns the color of the specified pixel
  3263. * @link https://php.net/manual/en/imagick.getimagepixelcolor.php
  3264. * @param int $x <p>
  3265. * The x-coordinate of the pixel
  3266. * </p>
  3267. * @param int $y <p>
  3268. * The y-coordinate of the pixel
  3269. * </p>
  3270. * @return ImagickPixel an ImagickPixel instance for the color at the coordinates given.
  3271. */
  3272. public function getImagePixelColor ($x, $y) {}
  3273. /**
  3274. * (PECL imagick 2.0.0)<br/>
  3275. * Returns the named image profile
  3276. * @link https://php.net/manual/en/imagick.getimageprofile.php
  3277. * @param string $name <p>
  3278. * The name of the profile to return.
  3279. * </p>
  3280. * @return string a string containing the image profile.
  3281. */
  3282. public function getImageProfile ($name) {}
  3283. /**
  3284. * (PECL imagick 2.0.0)<br/>
  3285. * Returns the chromaticity red primary point
  3286. * @link https://php.net/manual/en/imagick.getimageredprimary.php
  3287. * @return array the chromaticity red primary point as an array with the keys "x"
  3288. * and "y".
  3289. * Throw an <b>ImagickException</b> on error.
  3290. * @throws ImagickException on error
  3291. */
  3292. public function getImageRedPrimary () {}
  3293. /**
  3294. * (PECL imagick 2.0.0)<br/>
  3295. * Gets the image rendering intent
  3296. * @link https://php.net/manual/en/imagick.getimagerenderingintent.php
  3297. * @return int the image rendering intent.
  3298. */
  3299. public function getImageRenderingIntent () {}
  3300. /**
  3301. * (PECL imagick 2.0.0)<br/>
  3302. * Gets the image X and Y resolution
  3303. * @link https://php.net/manual/en/imagick.getimageresolution.php
  3304. * @return array the resolution as an array.
  3305. */
  3306. public function getImageResolution () {}
  3307. /**
  3308. * (PECL imagick 2.0.0)<br/>
  3309. * Gets the image scene
  3310. * @link https://php.net/manual/en/imagick.getimagescene.php
  3311. * @return int the image scene.
  3312. */
  3313. public function getImageScene () {}
  3314. /**
  3315. * (PECL imagick 2.0.0)<br/>
  3316. * Generates an SHA-256 message digest
  3317. * @link https://php.net/manual/en/imagick.getimagesignature.php
  3318. * @return string a string containing the SHA-256 hash of the file.
  3319. */
  3320. public function getImageSignature () {}
  3321. /**
  3322. * (PECL imagick 2.0.0)<br/>
  3323. * Gets the image ticks-per-second
  3324. * @link https://php.net/manual/en/imagick.getimagetickspersecond.php
  3325. * @return int the image ticks-per-second.
  3326. */
  3327. public function getImageTicksPerSecond () {}
  3328. /**
  3329. * (PECL imagick 0.9.10-0.9.9)<br/>
  3330. * Gets the potential image type
  3331. * @link https://php.net/manual/en/imagick.getimagetype.php
  3332. * @return int the potential image type.
  3333. * <b>imagick::IMGTYPE_UNDEFINED</b>
  3334. * <b>imagick::IMGTYPE_BILEVEL</b>
  3335. * <b>imagick::IMGTYPE_GRAYSCALE</b>
  3336. * <b>imagick::IMGTYPE_GRAYSCALEMATTE</b>
  3337. * <b>imagick::IMGTYPE_PALETTE</b>
  3338. * <b>imagick::IMGTYPE_PALETTEMATTE</b>
  3339. * <b>imagick::IMGTYPE_TRUECOLOR</b>
  3340. * <b>imagick::IMGTYPE_TRUECOLORMATTE</b>
  3341. * <b>imagick::IMGTYPE_COLORSEPARATION</b>
  3342. * <b>imagick::IMGTYPE_COLORSEPARATIONMATTE</b>
  3343. * <b>imagick::IMGTYPE_OPTIMIZE</b>
  3344. */
  3345. public function getImageType () {}
  3346. /**
  3347. * (PECL imagick 2.0.0)<br/>
  3348. * Gets the image units of resolution
  3349. * @link https://php.net/manual/en/imagick.getimageunits.php
  3350. * @return int the image units of resolution.
  3351. */
  3352. public function getImageUnits () {}
  3353. /**
  3354. * (PECL imagick 2.0.0)<br/>
  3355. * Returns the virtual pixel method
  3356. * @link https://php.net/manual/en/imagick.getimagevirtualpixelmethod.php
  3357. * @return int the virtual pixel method on success.
  3358. */
  3359. public function getImageVirtualPixelMethod () {}
  3360. /**
  3361. * (PECL imagick 2.0.0)<br/>
  3362. * Returns the chromaticity white point
  3363. * @link https://php.net/manual/en/imagick.getimagewhitepoint.php
  3364. * @return array the chromaticity white point as an associative array with the keys
  3365. * "x" and "y".
  3366. */
  3367. public function getImageWhitePoint () {}
  3368. /**
  3369. * (PECL imagick 2.0.0)<br/>
  3370. * Returns the image width
  3371. * @link https://php.net/manual/en/imagick.getimagewidth.php
  3372. * @return int the image width.
  3373. */
  3374. public function getImageWidth () {}
  3375. /**
  3376. * (PECL imagick 2.0.0)<br/>
  3377. * Returns the number of images in the object
  3378. * @link https://php.net/manual/en/imagick.getnumberimages.php
  3379. * @return int the number of images associated with Imagick object.
  3380. */
  3381. public function getNumberImages () {}
  3382. /**
  3383. * (PECL imagick 2.0.0)<br/>
  3384. * Gets the image total ink density
  3385. * @link https://php.net/manual/en/imagick.getimagetotalinkdensity.php
  3386. * @return float the image total ink density of the image.
  3387. * Throw an <b>ImagickException</b> on error.
  3388. * @throws ImagickException on error
  3389. */
  3390. public function getImageTotalInkDensity () {}
  3391. /**
  3392. * (PECL imagick 2.0.0)<br/>
  3393. * Extracts a region of the image
  3394. * @link https://php.net/manual/en/imagick.getimageregion.php
  3395. * @param int $width <p>
  3396. * The width of the extracted region.
  3397. * </p>
  3398. * @param int $height <p>
  3399. * The height of the extracted region.
  3400. * </p>
  3401. * @param int $x <p>
  3402. * X-coordinate of the top-left corner of the extracted region.
  3403. * </p>
  3404. * @param int $y <p>
  3405. * Y-coordinate of the top-left corner of the extracted region.
  3406. * </p>
  3407. * @return Imagick Extracts a region of the image and returns it as a new wand.
  3408. */
  3409. public function getImageRegion ($width, $height, $x, $y) {}
  3410. /**
  3411. * (PECL imagick 2.0.0)<br/>
  3412. * Creates a new image as a copy
  3413. * @link https://php.net/manual/en/imagick.implodeimage.php
  3414. * @param float $radius <p>
  3415. * The radius of the implode
  3416. * </p>
  3417. * @return bool <b>TRUE</b> on success.
  3418. */
  3419. public function implodeImage ($radius) {}
  3420. /**
  3421. * (PECL imagick 2.0.0)<br/>
  3422. * Adjusts the levels of an image
  3423. * @link https://php.net/manual/en/imagick.levelimage.php
  3424. * @param float $blackPoint <p>
  3425. * The image black point
  3426. * </p>
  3427. * @param float $gamma <p>
  3428. * The gamma value
  3429. * </p>
  3430. * @param float $whitePoint <p>
  3431. * The image white point
  3432. * </p>
  3433. * @param int $channel [optional] <p>
  3434. * Provide any channel constant that is valid for your channel mode. To
  3435. * apply to more than one channel, combine channeltype constants using
  3436. * bitwise operators. Refer to this
  3437. * list of channel constants.
  3438. * </p>
  3439. * @return bool <b>TRUE</b> on success.
  3440. */
  3441. public function levelImage ($blackPoint, $gamma, $whitePoint, $channel = Imagick::CHANNEL_ALL) {}
  3442. /**
  3443. * (PECL imagick 2.0.0)<br/>
  3444. * Scales an image proportionally 2x
  3445. * @link https://php.net/manual/en/imagick.magnifyimage.php
  3446. * @return bool <b>TRUE</b> on success.
  3447. */
  3448. public function magnifyImage () {}
  3449. /**
  3450. * (PECL imagick 2.0.0)<br/>
  3451. * Replaces the colors of an image with the closest color from a reference image.
  3452. * @link https://php.net/manual/en/imagick.mapimage.php
  3453. * @param Imagick $map
  3454. * @param bool $dither
  3455. * @return bool <b>TRUE</b> on success.
  3456. */
  3457. public function mapImage (Imagick $map, $dither) {}
  3458. /**
  3459. * (PECL imagick 2.0.0)<br/>
  3460. * Changes the transparency value of a color
  3461. * @link https://php.net/manual/en/imagick.mattefloodfillimage.php
  3462. * @param float $alpha <p>
  3463. * The level of transparency: 1.0 is fully opaque and 0.0 is fully
  3464. * transparent.
  3465. * </p>
  3466. * @param float $fuzz <p>
  3467. * The fuzz member of image defines how much tolerance is acceptable to
  3468. * consider two colors as the same.
  3469. * </p>
  3470. * @param mixed $bordercolor <p>
  3471. * An <b>ImagickPixel</b> object or string representing the border color.
  3472. * </p>
  3473. * @param int $x <p>
  3474. * The starting x coordinate of the operation.
  3475. * </p>
  3476. * @param int $y <p>
  3477. * The starting y coordinate of the operation.
  3478. * </p>
  3479. * @return bool <b>TRUE</b> on success.
  3480. */
  3481. public function matteFloodfillImage ($alpha, $fuzz, $bordercolor, $x, $y) {}
  3482. /**
  3483. * (PECL imagick 2.0.0)<br/>
  3484. * Applies a digital filter
  3485. * @link https://php.net/manual/en/imagick.medianfilterimage.php
  3486. * @param float $radius <p>
  3487. * The radius of the pixel neighborhood.
  3488. * </p>
  3489. * @return bool <b>TRUE</b> on success.
  3490. */
  3491. public function medianFilterImage ($radius) {}
  3492. /**
  3493. * (PECL imagick 2.0.0)<br/>
  3494. * Negates the colors in the reference image
  3495. * @link https://php.net/manual/en/imagick.negateimage.php
  3496. * @param bool $gray <p>
  3497. * Whether to only negate grayscale pixels within the image.
  3498. * </p>
  3499. * @param int $channel [optional] <p>
  3500. * Provide any channel constant that is valid for your channel mode. To
  3501. * apply to more than one channel, combine channeltype constants using
  3502. * bitwise operators. Refer to this
  3503. * list of channel constants.
  3504. * </p>
  3505. * @return bool <b>TRUE</b> on success.
  3506. */
  3507. public function negateImage ($gray, $channel = Imagick::CHANNEL_ALL) {}
  3508. /**
  3509. * (PECL imagick 2.0.0)<br/>
  3510. * Change any pixel that matches color
  3511. * @link https://php.net/manual/en/imagick.paintopaqueimage.php
  3512. * @param mixed $target <p>
  3513. * Change this target color to the fill color within the image. An
  3514. * ImagickPixel object or a string representing the target color.
  3515. * </p>
  3516. * @param mixed $fill <p>
  3517. * An ImagickPixel object or a string representing the fill color.
  3518. * </p>
  3519. * @param float $fuzz <p>
  3520. * The fuzz member of image defines how much tolerance is acceptable to
  3521. * consider two colors as the same.
  3522. * </p>
  3523. * @param int $channel [optional] <p>
  3524. * Provide any channel constant that is valid for your channel mode. To
  3525. * apply to more than one channel, combine channeltype constants using
  3526. * bitwise operators. Refer to this
  3527. * list of channel constants.
  3528. * </p>
  3529. * @return bool <b>TRUE</b> on success.
  3530. */
  3531. public function paintOpaqueImage ($target, $fill, $fuzz, $channel = Imagick::CHANNEL_ALL) {}
  3532. /**
  3533. * (PECL imagick 2.0.0)<br/>
  3534. * Changes any pixel that matches color with the color defined by fill
  3535. * @link https://php.net/manual/en/imagick.painttransparentimage.php
  3536. * @param mixed $target <p>
  3537. * Change this target color to specified opacity value within the image.
  3538. * </p>
  3539. * @param float $alpha <p>
  3540. * The level of transparency: 1.0 is fully opaque and 0.0 is fully
  3541. * transparent.
  3542. * </p>
  3543. * @param float $fuzz <p>
  3544. * The fuzz member of image defines how much tolerance is acceptable to
  3545. * consider two colors as the same.
  3546. * </p>
  3547. * @return bool <b>TRUE</b> on success.
  3548. */
  3549. public function paintTransparentImage ($target, $alpha, $fuzz) {}
  3550. /**
  3551. * (PECL imagick 2.0.0)<br/>
  3552. * Quickly pin-point appropriate parameters for image processing
  3553. * @link https://php.net/manual/en/imagick.previewimages.php
  3554. * @param int $preview <p>
  3555. * Preview type. See Preview type constants
  3556. * </p>
  3557. * @return bool <b>TRUE</b> on success.
  3558. */
  3559. public function previewImages ($preview) {}
  3560. /**
  3561. * (PECL imagick 2.0.0)<br/>
  3562. * Adds or removes a profile from an image
  3563. * @link https://php.net/manual/en/imagick.profileimage.php
  3564. * @param string $name
  3565. * @param string $profile
  3566. * @return bool <b>TRUE</b> on success.
  3567. */
  3568. public function profileImage ($name, $profile) {}
  3569. /**
  3570. * (PECL imagick 2.0.0)<br/>
  3571. * Analyzes the colors within a reference image
  3572. * @link https://php.net/manual/en/imagick.quantizeimage.php
  3573. * @param int $numberColors
  3574. * @param int $colorspace
  3575. * @param int $treedepth
  3576. * @param bool $dither
  3577. * @param bool $measureError
  3578. * @return bool <b>TRUE</b> on success.
  3579. */
  3580. public function quantizeImage ($numberColors, $colorspace, $treedepth, $dither, $measureError) {}
  3581. /**
  3582. * (PECL imagick 2.0.0)<br/>
  3583. * Analyzes the colors within a sequence of images
  3584. * @link https://php.net/manual/en/imagick.quantizeimages.php
  3585. * @param int $numberColors
  3586. * @param int $colorspace
  3587. * @param int $treedepth
  3588. * @param bool $dither
  3589. * @param bool $measureError
  3590. * @return bool <b>TRUE</b> on success.
  3591. */
  3592. public function quantizeImages ($numberColors, $colorspace, $treedepth, $dither, $measureError) {}
  3593. /**
  3594. * (PECL imagick 2.0.0)<br/>
  3595. * Smooths the contours of an image
  3596. * @link https://php.net/manual/en/imagick.reducenoiseimage.php
  3597. * @param float $radius
  3598. * @return bool <b>TRUE</b> on success.
  3599. */
  3600. public function reduceNoiseImage ($radius) {}
  3601. /**
  3602. * (PECL imagick 2.0.0)<br/>
  3603. * Removes the named image profile and returns it
  3604. * @link https://php.net/manual/en/imagick.removeimageprofile.php
  3605. * @param string $name
  3606. * @return string a string containing the profile of the image.
  3607. */
  3608. public function removeImageProfile ($name) {}
  3609. /**
  3610. * (PECL imagick 2.0.0)<br/>
  3611. * Separates a channel from the image
  3612. * @link https://php.net/manual/en/imagick.separateimagechannel.php
  3613. * @param int $channel
  3614. * @return bool <b>TRUE</b> on success.
  3615. */
  3616. public function separateImageChannel ($channel) {}
  3617. /**
  3618. * (PECL imagick 2.0.0)<br/>
  3619. * Sepia tones an image
  3620. * @link https://php.net/manual/en/imagick.sepiatoneimage.php
  3621. * @param float $threshold
  3622. * @return bool <b>TRUE</b> on success.
  3623. */
  3624. public function sepiaToneImage ($threshold) {}
  3625. /**
  3626. * (PECL imagick 2.0.0)<br/>
  3627. * Sets the image bias for any method that convolves an image
  3628. * @link https://php.net/manual/en/imagick.setimagebias.php
  3629. * @param float $bias
  3630. * @return bool <b>TRUE</b> on success.
  3631. */
  3632. public function setImageBias ($bias) {}
  3633. /**
  3634. * (PECL imagick 2.0.0)<br/>
  3635. * Sets the image chromaticity blue primary point
  3636. * @link https://php.net/manual/en/imagick.setimageblueprimary.php
  3637. * @param float $x
  3638. * @param float $y
  3639. * @return bool <b>TRUE</b> on success.
  3640. */
  3641. public function setImageBluePrimary ($x, $y) {}
  3642. /**
  3643. * (PECL imagick 2.0.0)<br/>
  3644. * Sets the image border color
  3645. * @link https://php.net/manual/en/imagick.setimagebordercolor.php
  3646. * @param mixed $border <p>
  3647. * The border color
  3648. * </p>
  3649. * @return bool <b>TRUE</b> on success.
  3650. */
  3651. public function setImageBorderColor ($border) {}
  3652. /**
  3653. * (PECL imagick 2.0.0)<br/>
  3654. * Sets the depth of a particular image channel
  3655. * @link https://php.net/manual/en/imagick.setimagechanneldepth.php
  3656. * @param int $channel
  3657. * @param int $depth
  3658. * @return bool <b>TRUE</b> on success.
  3659. */
  3660. public function setImageChannelDepth ($channel, $depth) {}
  3661. /**
  3662. * (PECL imagick 2.0.0)<br/>
  3663. * Sets the color of the specified colormap index
  3664. * @link https://php.net/manual/en/imagick.setimagecolormapcolor.php
  3665. * @param int $index
  3666. * @param ImagickPixel $color
  3667. * @return bool <b>TRUE</b> on success.
  3668. */
  3669. public function setImageColormapColor ($index, ImagickPixel $color) {}
  3670. /**
  3671. * (PECL imagick 2.0.0)<br/>
  3672. * Sets the image colorspace
  3673. * @link https://php.net/manual/en/imagick.setimagecolorspace.php
  3674. * @param int $colorspace <p>
  3675. * One of the COLORSPACE constants
  3676. * </p>
  3677. * @return bool <b>TRUE</b> on success.
  3678. */
  3679. public function setImageColorspace ($colorspace) {}
  3680. /**
  3681. * (PECL imagick 2.0.0)<br/>
  3682. * Sets the image disposal method
  3683. * @link https://php.net/manual/en/imagick.setimagedispose.php
  3684. * @param int $dispose
  3685. * @return bool <b>TRUE</b> on success.
  3686. */
  3687. public function setImageDispose ($dispose) {}
  3688. /**
  3689. * (PECL imagick 2.0.0)<br/>
  3690. * Sets the image size
  3691. * @link https://php.net/manual/en/imagick.setimageextent.php
  3692. * @param int $columns
  3693. * @param int $rows
  3694. * @return bool <b>TRUE</b> on success.
  3695. */
  3696. public function setImageExtent ($columns, $rows) {}
  3697. /**
  3698. * (PECL imagick 2.0.0)<br/>
  3699. * Sets the image chromaticity green primary point
  3700. * @link https://php.net/manual/en/imagick.setimagegreenprimary.php
  3701. * @param float $x
  3702. * @param float $y
  3703. * @return bool <b>TRUE</b> on success.
  3704. */
  3705. public function setImageGreenPrimary ($x, $y) {}
  3706. /**
  3707. * (PECL imagick 2.0.0)<br/>
  3708. * Sets the image compression
  3709. * @link https://php.net/manual/en/imagick.setimageinterlacescheme.php
  3710. * @param int $interlace_scheme
  3711. * @return bool <b>TRUE</b> on success.
  3712. */
  3713. public function setImageInterlaceScheme ($interlace_scheme) {}
  3714. /**
  3715. * (PECL imagick 2.0.0)<br/>
  3716. * Adds a named profile to the Imagick object
  3717. * @link https://php.net/manual/en/imagick.setimageprofile.php
  3718. * @param string $name
  3719. * @param string $profile
  3720. * @return bool <b>TRUE</b> on success.
  3721. */
  3722. public function setImageProfile ($name, $profile) {}
  3723. /**
  3724. * (PECL imagick 2.0.0)<br/>
  3725. * Sets the image chromaticity red primary point
  3726. * @link https://php.net/manual/en/imagick.setimageredprimary.php
  3727. * @param float $x
  3728. * @param float $y
  3729. * @return bool <b>TRUE</b> on success.
  3730. */
  3731. public function setImageRedPrimary ($x, $y) {}
  3732. /**
  3733. * (PECL imagick 2.0.0)<br/>
  3734. * Sets the image rendering intent
  3735. * @link https://php.net/manual/en/imagick.setimagerenderingintent.php
  3736. * @param int $rendering_intent
  3737. * @return bool <b>TRUE</b> on success.
  3738. */
  3739. public function setImageRenderingIntent ($rendering_intent) {}
  3740. /**
  3741. * (PECL imagick 2.0.0)<br/>
  3742. * Sets the image virtual pixel method
  3743. * @link https://php.net/manual/en/imagick.setimagevirtualpixelmethod.php
  3744. * @param int $method
  3745. * @return bool <b>TRUE</b> on success.
  3746. */
  3747. public function setImageVirtualPixelMethod ($method) {}
  3748. /**
  3749. * (PECL imagick 2.0.0)<br/>
  3750. * Sets the image chromaticity white point
  3751. * @link https://php.net/manual/en/imagick.setimagewhitepoint.php
  3752. * @param float $x
  3753. * @param float $y
  3754. * @return bool <b>TRUE</b> on success.
  3755. */
  3756. public function setImageWhitePoint ($x, $y) {}
  3757. /**
  3758. * (PECL imagick 2.0.0)<br/>
  3759. * Adjusts the contrast of an image
  3760. * @link https://php.net/manual/en/imagick.sigmoidalcontrastimage.php
  3761. * @param bool $sharpen
  3762. * @param float $alpha
  3763. * @param float $beta
  3764. * @param int $channel [optional]
  3765. * @return bool <b>TRUE</b> on success.
  3766. */
  3767. public function sigmoidalContrastImage ($sharpen, $alpha, $beta, $channel = Imagick::CHANNEL_ALL) {}
  3768. /**
  3769. * (PECL imagick 2.0.0)<br/>
  3770. * Composites two images
  3771. * @link https://php.net/manual/en/imagick.stereoimage.php
  3772. * @param Imagick $offset_wand
  3773. * @return bool <b>TRUE</b> on success.
  3774. */
  3775. public function stereoImage (Imagick $offset_wand) {}
  3776. /**
  3777. * (PECL imagick 2.0.0)<br/>
  3778. * Repeatedly tiles the texture image
  3779. * @link https://php.net/manual/en/imagick.textureimage.php
  3780. * @param Imagick $texture_wand
  3781. * @return bool <b>TRUE</b> on success.
  3782. */
  3783. public function textureImage (Imagick $texture_wand) {}
  3784. /**
  3785. * pplies a color vector to each pixel in the image. The 'opacity' color is a per channel strength factor for how strongly the color should be applied.
  3786. * If legacy is true, the behaviour of this function is incorrect, but consistent with how it behaved before Imagick version 3.4.0
  3787. * @link https://php.net/manual/en/imagick.tintimage.php
  3788. * @param mixed $tint
  3789. * @param mixed $opacity
  3790. * @param bool $legacy [optional]
  3791. * @return bool <b>TRUE</b> on success.
  3792. * @throws ImagickException Throws ImagickException on error
  3793. * @since 2.0.0
  3794. */
  3795. public function tintImage ($tint, $opacity, $legacy = false) {}
  3796. /**
  3797. * (PECL imagick 2.0.0)<br/>
  3798. * Sharpens an image
  3799. * @link https://php.net/manual/en/imagick.unsharpmaskimage.php
  3800. * @param float $radius
  3801. * @param float $sigma
  3802. * @param float $amount
  3803. * @param float $threshold
  3804. * @param int $channel [optional]
  3805. * @return bool <b>TRUE</b> on success.
  3806. */
  3807. public function unsharpMaskImage ($radius, $sigma, $amount, $threshold, $channel = Imagick::CHANNEL_ALL) {}
  3808. /**
  3809. * (PECL imagick 2.0.0)<br/>
  3810. * Returns a new Imagick object
  3811. * @link https://php.net/manual/en/imagick.getimage.php
  3812. * @return Imagick a new Imagick object with the current image sequence.
  3813. */
  3814. public function getImage () {}
  3815. /**
  3816. * (PECL imagick 2.0.0)<br/>
  3817. * Adds new image to Imagick object image list
  3818. * @link https://php.net/manual/en/imagick.addimage.php
  3819. * @param Imagick $source <p>
  3820. * The source Imagick object
  3821. * </p>
  3822. * @return bool <b>TRUE</b> on success.
  3823. */
  3824. public function addImage (Imagick $source) {}
  3825. /**
  3826. * (PECL imagick 2.0.0)<br/>
  3827. * Replaces image in the object
  3828. * @link https://php.net/manual/en/imagick.setimage.php
  3829. * @param Imagick $replace <p>
  3830. * The replace Imagick object
  3831. * </p>
  3832. * @return bool <b>TRUE</b> on success.
  3833. */
  3834. public function setImage (Imagick $replace) {}
  3835. /**
  3836. * (PECL imagick 2.0.0)<br/>
  3837. * Creates a new image
  3838. * @link https://php.net/manual/en/imagick.newimage.php
  3839. * @param int $cols <p>
  3840. * Columns in the new image
  3841. * </p>
  3842. * @param int $rows <p>
  3843. * Rows in the new image
  3844. * </p>
  3845. * @param mixed $background <p>
  3846. * The background color used for this image
  3847. * </p>
  3848. * @param string $format [optional] <p>
  3849. * Image format. This parameter was added in Imagick version 2.0.1.
  3850. * </p>
  3851. * @return bool <b>TRUE</b> on success.
  3852. */
  3853. public function newImage ($cols, $rows, $background, $format = null) {}
  3854. /**
  3855. * (PECL imagick 2.0.0)<br/>
  3856. * Creates a new image
  3857. * @link https://php.net/manual/en/imagick.newpseudoimage.php
  3858. * @param int $columns <p>
  3859. * columns in the new image
  3860. * </p>
  3861. * @param int $rows <p>
  3862. * rows in the new image
  3863. * </p>
  3864. * @param string $pseudoString <p>
  3865. * string containing pseudo image definition.
  3866. * </p>
  3867. * @return bool <b>TRUE</b> on success.
  3868. */
  3869. public function newPseudoImage ($columns, $rows, $pseudoString) {}
  3870. /**
  3871. * (PECL imagick 2.0.0)<br/>
  3872. * Gets the object compression type
  3873. * @link https://php.net/manual/en/imagick.getcompression.php
  3874. * @return int the compression constant
  3875. */
  3876. public function getCompression () {}
  3877. /**
  3878. * (PECL imagick 2.0.0)<br/>
  3879. * Gets the object compression quality
  3880. * @link https://php.net/manual/en/imagick.getcompressionquality.php
  3881. * @return int integer describing the compression quality
  3882. */
  3883. public function getCompressionQuality () {}
  3884. /**
  3885. * (PECL imagick 2.0.0)<br/>
  3886. * Returns the ImageMagick API copyright as a string
  3887. * @link https://php.net/manual/en/imagick.getcopyright.php
  3888. * @return string a string containing the copyright notice of Imagemagick and
  3889. * Magickwand C API.
  3890. */
  3891. public static function getCopyright () {}
  3892. /**
  3893. * (PECL imagick 2.0.0)<br/>
  3894. * The filename associated with an image sequence
  3895. * @link https://php.net/manual/en/imagick.getfilename.php
  3896. * @return string a string on success.
  3897. */
  3898. public function getFilename () {}
  3899. /**
  3900. * (PECL imagick 2.0.0)<br/>
  3901. * Returns the format of the Imagick object
  3902. * @link https://php.net/manual/en/imagick.getformat.php
  3903. * @return string the format of the image.
  3904. */
  3905. public function getFormat () {}
  3906. /**
  3907. * (PECL imagick 2.0.0)<br/>
  3908. * Returns the ImageMagick home URL
  3909. * @link https://php.net/manual/en/imagick.gethomeurl.php
  3910. * @return string a link to the imagemagick homepage.
  3911. */
  3912. public static function getHomeURL () {}
  3913. /**
  3914. * (PECL imagick 2.0.0)<br/>
  3915. * Gets the object interlace scheme
  3916. * @link https://php.net/manual/en/imagick.getinterlacescheme.php
  3917. * @return int Gets the wand interlace
  3918. * scheme.
  3919. */
  3920. public function getInterlaceScheme () {}
  3921. /**
  3922. * (PECL imagick 2.0.0)<br/>
  3923. * Returns a value associated with the specified key
  3924. * @link https://php.net/manual/en/imagick.getoption.php
  3925. * @param string $key <p>
  3926. * The name of the option
  3927. * </p>
  3928. * @return string a value associated with a wand and the specified key.
  3929. */
  3930. public function getOption ($key) {}
  3931. /**
  3932. * (PECL imagick 2.0.0)<br/>
  3933. * Returns the ImageMagick package name
  3934. * @link https://php.net/manual/en/imagick.getpackagename.php
  3935. * @return string the ImageMagick package name as a string.
  3936. */
  3937. public static function getPackageName () {}
  3938. /**
  3939. * (PECL imagick 2.0.0)<br/>
  3940. * Returns the page geometry
  3941. * @link https://php.net/manual/en/imagick.getpage.php
  3942. * @return array the page geometry associated with the Imagick object in
  3943. * an associative array with the keys "width", "height", "x", and "y",
  3944. * throwing ImagickException on error.
  3945. * @throws ImagickException on error
  3946. */
  3947. public function getPage () {}
  3948. /**
  3949. * (PECL imagick 2.0.0)<br/>
  3950. * Gets the quantum depth
  3951. * @link https://php.net/manual/en/imagick.getquantumdepth.php
  3952. * @return array the Imagick quantum depth as a string.
  3953. */
  3954. public static function getQuantumDepth () {}
  3955. /**
  3956. * (PECL imagick 2.0.0)<br/>
  3957. * Returns the Imagick quantum range
  3958. * @link https://php.net/manual/en/imagick.getquantumrange.php
  3959. * @return array the Imagick quantum range as a string.
  3960. */
  3961. public static function getQuantumRange () {}
  3962. /**
  3963. * (PECL imagick 2.0.0)<br/>
  3964. * Returns the ImageMagick release date
  3965. * @link https://php.net/manual/en/imagick.getreleasedate.php
  3966. * @return string the ImageMagick release date as a string.
  3967. */
  3968. public static function getReleaseDate () {}
  3969. /**
  3970. * (PECL imagick 2.0.0)<br/>
  3971. * Returns the specified resource's memory usage
  3972. * @link https://php.net/manual/en/imagick.getresource.php
  3973. * @param int $type <p>
  3974. * Refer to the list of resourcetype constants.
  3975. * </p>
  3976. * @return int the specified resource's memory usage in megabytes.
  3977. */
  3978. public static function getResource ($type) {}
  3979. /**
  3980. * (PECL imagick 2.0.0)<br/>
  3981. * Returns the specified resource limit
  3982. * @link https://php.net/manual/en/imagick.getresourcelimit.php
  3983. * @param int $type <p>
  3984. * Refer to the list of resourcetype constants.
  3985. * </p>
  3986. * @return int the specified resource limit in megabytes.
  3987. */
  3988. public static function getResourceLimit ($type) {}
  3989. /**
  3990. * (PECL imagick 2.0.0)<br/>
  3991. * Gets the horizontal and vertical sampling factor
  3992. * @link https://php.net/manual/en/imagick.getsamplingfactors.php
  3993. * @return array an associative array with the horizontal and vertical sampling
  3994. * factors of the image.
  3995. */
  3996. public function getSamplingFactors () {}
  3997. /**
  3998. * (PECL imagick 2.0.0)<br/>
  3999. * Returns the size associated with the Imagick object
  4000. * @link https://php.net/manual/en/imagick.getsize.php
  4001. * @return array the size associated with the Imagick object as an array with the
  4002. * keys "columns" and "rows".
  4003. */
  4004. public function getSize () {}
  4005. /**
  4006. * (PECL imagick 2.0.0)<br/>
  4007. * Returns the ImageMagick API version
  4008. * @link https://php.net/manual/en/imagick.getversion.php
  4009. * @return array the ImageMagick API version as a string and as a number.
  4010. */
  4011. public static function getVersion () {}
  4012. /**
  4013. * (PECL imagick 2.0.0)<br/>
  4014. * Sets the object's default background color
  4015. * @link https://php.net/manual/en/imagick.setbackgroundcolor.php
  4016. * @param mixed $background
  4017. * @return bool <b>TRUE</b> on success.
  4018. */
  4019. public function setBackgroundColor ($background) {}
  4020. /**
  4021. * (PECL imagick 2.0.0)<br/>
  4022. * Sets the object's default compression type
  4023. * @link https://php.net/manual/en/imagick.setcompression.php
  4024. * @param int $compression
  4025. * @return bool <b>TRUE</b> on success.
  4026. */
  4027. public function setCompression ($compression) {}
  4028. /**
  4029. * (PECL imagick 0.9.10-0.9.9)<br/>
  4030. * Sets the object's default compression quality
  4031. * @link https://php.net/manual/en/imagick.setcompressionquality.php
  4032. * @param int $quality
  4033. * @return bool <b>TRUE</b> on success.
  4034. */
  4035. public function setCompressionQuality ($quality) {}
  4036. /**
  4037. * (PECL imagick 2.0.0)<br/>
  4038. * Sets the filename before you read or write the image
  4039. * @link https://php.net/manual/en/imagick.setfilename.php
  4040. * @param string $filename
  4041. * @return bool <b>TRUE</b> on success.
  4042. */
  4043. public function setFilename ($filename) {}
  4044. /**
  4045. * (PECL imagick 2.0.0)<br/>
  4046. * Sets the format of the Imagick object
  4047. * @link https://php.net/manual/en/imagick.setformat.php
  4048. * @param string $format
  4049. * @return bool <b>TRUE</b> on success.
  4050. */
  4051. public function setFormat ($format) {}
  4052. /**
  4053. * (PECL imagick 2.0.0)<br/>
  4054. * Sets the image compression
  4055. * @link https://php.net/manual/en/imagick.setinterlacescheme.php
  4056. * @param int $interlace_scheme
  4057. * @return bool <b>TRUE</b> on success.
  4058. */
  4059. public function setInterlaceScheme ($interlace_scheme) {}
  4060. /**
  4061. * (PECL imagick 2.0.0)<br/>
  4062. * Set an option
  4063. * @link https://php.net/manual/en/imagick.setoption.php
  4064. * @param string $key
  4065. * @param string $value
  4066. * @return bool <b>TRUE</b> on success.
  4067. */
  4068. public function setOption ($key, $value) {}
  4069. /**
  4070. * (PECL imagick 2.0.0)<br/>
  4071. * Sets the page geometry of the Imagick object
  4072. * @link https://php.net/manual/en/imagick.setpage.php
  4073. * @param int $width
  4074. * @param int $height
  4075. * @param int $x
  4076. * @param int $y
  4077. * @return bool <b>TRUE</b> on success.
  4078. */
  4079. public function setPage ($width, $height, $x, $y) {}
  4080. /**
  4081. * (PECL imagick 2.0.0)<br/>
  4082. * Sets the limit for a particular resource in megabytes
  4083. * @link https://php.net/manual/en/imagick.setresourcelimit.php
  4084. * @param int $type <p>
  4085. * Refer to the list of resourcetype constants.
  4086. * </p>
  4087. * @param int $limit <p>
  4088. * The resource limit. The unit depends on the type of the resource being limited.
  4089. * </p>
  4090. * @return bool <b>TRUE</b> on success.
  4091. */
  4092. public static function setResourceLimit ($type, $limit) {}
  4093. /**
  4094. * (PECL imagick 2.0.0)<br/>
  4095. * Sets the image resolution
  4096. * @link https://php.net/manual/en/imagick.setresolution.php
  4097. * @param float $x_resolution <p>
  4098. * The horizontal resolution.
  4099. * </p>
  4100. * @param float $y_resolution <p>
  4101. * The vertical resolution.
  4102. * </p>
  4103. * @return bool <b>TRUE</b> on success.
  4104. */
  4105. public function setResolution ($x_resolution, $y_resolution) {}
  4106. /**
  4107. * (PECL imagick 2.0.0)<br/>
  4108. * Sets the image sampling factors
  4109. * @link https://php.net/manual/en/imagick.setsamplingfactors.php
  4110. * @param array $factors
  4111. * @return bool <b>TRUE</b> on success.
  4112. */
  4113. public function setSamplingFactors (array $factors) {}
  4114. /**
  4115. * (PECL imagick 2.0.0)<br/>
  4116. * Sets the size of the Imagick object
  4117. * @link https://php.net/manual/en/imagick.setsize.php
  4118. * @param int $columns
  4119. * @param int $rows
  4120. * @return bool <b>TRUE</b> on success.
  4121. */
  4122. public function setSize ($columns, $rows) {}
  4123. /**
  4124. * (PECL imagick 2.0.0)<br/>
  4125. * Sets the image type attribute
  4126. * @link https://php.net/manual/en/imagick.settype.php
  4127. * @param int $image_type
  4128. * @return bool <b>TRUE</b> on success.
  4129. */
  4130. public function setType ($image_type) {}
  4131. public function key () {}
  4132. public function next () {}
  4133. public function rewind () {}
  4134. /**
  4135. * (PECL imagick 2.0.0)<br/>
  4136. * Checks if the current item is valid
  4137. * @link https://php.net/manual/en/imagick.valid.php
  4138. * @return bool <b>TRUE</b> on success.
  4139. */
  4140. public function valid () {}
  4141. /**
  4142. * (PECL imagick 2.0.0)<br/>
  4143. * Returns a reference to the current Imagick object
  4144. * @link https://php.net/manual/en/imagick.current.php
  4145. * @return Imagick self on success.
  4146. */
  4147. public function current () {}
  4148. /**
  4149. * Change the brightness and/or contrast of an image. It converts the brightness and contrast parameters into slope and intercept and calls a polynomical function to apply to the image.
  4150. * @link https://php.net/manual/en/imagick.brightnesscontrastimage.php
  4151. * @param string $brightness
  4152. * @param string $contrast
  4153. * @param int $CHANNEL [optional]
  4154. * @return void
  4155. * @since 3.3.0
  4156. */
  4157. public function brightnessContrastImage ($brightness, $contrast, $CHANNEL = Imagick::CHANNEL_DEFAULT) { }
  4158. /**
  4159. * Applies a user supplied kernel to the image according to the given morphology method.
  4160. * @link https://php.net/manual/en/imagick.morphology.php
  4161. * @param int $morphologyMethod Which morphology method to use one of the \Imagick::MORPHOLOGY_* constants.
  4162. * @param int $iterations The number of iteration to apply the morphology function. A value of -1 means loop until no change found. How this is applied may depend on the morphology method. Typically this is a value of 1.
  4163. * @param ImagickKernel $ImagickKernel
  4164. * @param int $CHANNEL [optional]
  4165. * @return void
  4166. * @since 3.3.0
  4167. */
  4168. public function morphology ($morphologyMethod, $iterations, ImagickKernel $ImagickKernel, $CHANNEL = Imagick::CHANNEL_DEFAULT) { }
  4169. /**
  4170. * Applies a custom convolution kernel to the image.
  4171. * @link https://php.net/manual/en/imagick.filter.php
  4172. * @param ImagickKernel $ImagickKernel An instance of ImagickKernel that represents either a single kernel or a linked series of kernels.
  4173. * @param int $CHANNEL [optional] Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants
  4174. * @return void
  4175. * @since 3.3.0
  4176. */
  4177. public function filter (ImagickKernel $ImagickKernel , $CHANNEL = Imagick::CHANNEL_DEFAULT) { }
  4178. /**
  4179. * Apply color transformation to an image. The method permits saturation changes, hue rotation, luminance to alpha, and various other effects. Although variable-sized transformation matrices can be used, typically one uses a 5x5 matrix for an RGBA image and a 6x6 for CMYKA (or RGBA with offsets).
  4180. * The matrix is similar to those used by Adobe Flash except offsets are in column 6 rather than 5 (in support of CMYKA images) and offsets are normalized (divide Flash offset by 255)
  4181. * @link https://php.net/manual/en/imagick.colormatriximage.php
  4182. * @param string $color_matrix
  4183. * @return void
  4184. * @since 3.3.0
  4185. */
  4186. public function colorMatrixImage ($color_matrix = Imagick::CHANNEL_DEFAULT) { }
  4187. /**
  4188. * Deletes an image property.
  4189. * @link https://php.net/manual/en/imagick.deleteimageproperty.php
  4190. * @param string $name The name of the property to delete.
  4191. * @return void
  4192. * @since 3.3.0
  4193. */
  4194. public function deleteImageProperty ($name) { }
  4195. /**
  4196. * Implements the discrete Fourier transform (DFT) of the image either as a magnitude / phase or real / imaginary image pair.
  4197. * @link https://php.net/manual/en/imagick.forwardfouriertransformimage.php
  4198. * @param bool $magnitude If true, return as magnitude / phase pair otherwise a real / imaginary image pair.
  4199. * @return void
  4200. * @since 3.3.0
  4201. */
  4202. public function forwardFourierTransformimage ($magnitude) { }
  4203. /**
  4204. * Gets the current image's compression type.
  4205. * @link https://php.net/manual/en/imagick.getimagecompression.php
  4206. * @return int
  4207. * @since 3.3.0
  4208. */
  4209. public function getImageCompression () { }
  4210. /**
  4211. * Get the StringRegistry entry for the named key or false if not set.
  4212. * @link https://php.net/manual/en/imagick.getregistry.php
  4213. * @param string $key
  4214. * @return string|false
  4215. * @throws Exception Since version >=3.4.3. Throws an exception if the key does not exist, rather than terminating the program.
  4216. * @since 3.3.0
  4217. */
  4218. public static function getRegistry ($key) { }
  4219. /**
  4220. * Returns the ImageMagick quantum range as an integer.
  4221. * @link https://php.net/manual/en/imagick.getquantum.php
  4222. * @return int
  4223. * @since 3.3.0
  4224. */
  4225. public static function getQuantum () { }
  4226. /**
  4227. * Replaces any embedded formatting characters with the appropriate image property and returns the interpreted text. See https://www.imagemagick.org/script/escape.php for escape sequences.
  4228. * @link https://php.net/manual/en/imagick.identifyformat.php
  4229. * @see https://www.imagemagick.org/script/escape.php
  4230. * @param string $embedText A string containing formatting sequences e.g. "Trim box: %@ number of unique colors: %k".
  4231. * @return bool
  4232. * @since 3.3.0
  4233. */
  4234. public function identifyFormat ($embedText) { }
  4235. /**
  4236. * Implements the inverse discrete Fourier transform (DFT) of the image either as a magnitude / phase or real / imaginary image pair.
  4237. * @link https://php.net/manual/en/imagick.inversefouriertransformimage.php
  4238. * @param Imagick $complement The second image to combine with this one to form either the magnitude / phase or real / imaginary image pair.
  4239. * @param bool $magnitude If true, combine as magnitude / phase pair otherwise a real / imaginary image pair.
  4240. * @return void
  4241. * @since 3.3.0
  4242. */
  4243. public function inverseFourierTransformImage ($complement, $magnitude) { }
  4244. /**
  4245. * List all the registry settings. Returns an array of all the key/value pairs in the registry
  4246. * @link https://php.net/manual/en/imagick.listregistry.php
  4247. * @return array An array containing the key/values from the registry.
  4248. * @since 3.3.0
  4249. */
  4250. public static function listRegistry () { }
  4251. /**
  4252. * Rotational blurs an image.
  4253. * @link https://php.net/manual/en/imagick.rotationalblurimage.php
  4254. * @param string $angle
  4255. * @param string $CHANNEL
  4256. * @return void
  4257. * @since 3.3.0
  4258. */
  4259. public function rotationalBlurImage ($angle, $CHANNEL = Imagick::CHANNEL_DEFAULT) { }
  4260. /**
  4261. * Selectively blur an image within a contrast threshold. It is similar to the unsharpen mask that sharpens everything with contrast above a certain threshold.
  4262. * @link https://php.net/manual/en/imagick.selectiveblurimage.php
  4263. * @param float $radius
  4264. * @param float $sigma
  4265. * @param float $threshold
  4266. * @param int $CHANNEL Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants
  4267. * @return void
  4268. * @since 3.3.0
  4269. */
  4270. public function selectiveBlurImage ($radius, $sigma, $threshold, $CHANNEL = Imagick::CHANNEL_DEFAULT) { }
  4271. /**
  4272. * Set whether antialiasing should be used for operations. On by default.
  4273. * @param bool $antialias
  4274. * @return int
  4275. * @since 3.3.0
  4276. */
  4277. public function setAntiAlias ($antialias) { }
  4278. /**
  4279. * @link https://php.net/manual/en/imagick.setimagebiasquantum.php
  4280. * @param string $bias
  4281. * @return void
  4282. * @since 3.3.0
  4283. */
  4284. public function setImageBiasQuantum ($bias) { }
  4285. /**
  4286. * Set a callback that will be called during the processing of the Imagick image.
  4287. * @link https://php.net/manual/en/imagick.setprogressmonitor.php
  4288. * @param callable $callback The progress function to call. It should return true if image processing should continue, or false if it should be cancelled.
  4289. * The offset parameter indicates the progress and the span parameter indicates the total amount of work needed to be done.
  4290. * <pre> bool callback ( mixed $offset , mixed $span ) </pre>
  4291. * <b>Caution</b>
  4292. * The values passed to the callback function are not consistent. In particular the span parameter can increase during image processing. Because of this calculating the percentage complete of an image operation is not trivial.
  4293. * @return void
  4294. * @since 3.3.0
  4295. */
  4296. public function setProgressMonitor ($callback) { }
  4297. /**
  4298. * Sets the ImageMagick registry entry named key to value. This is most useful for setting "temporary-path" which controls where ImageMagick creates temporary images e.g. while processing PDFs.
  4299. * @link https://php.net/manual/en/imagick.setregistry.php
  4300. * @param string $key
  4301. * @param string $value
  4302. * @return void
  4303. * @since 3.3.0
  4304. */
  4305. public static function setRegistry ($key, $value) { }
  4306. /**
  4307. * Replace each pixel with corresponding statistic from the neighborhood of the specified width and height.
  4308. * @link https://php.net/manual/en/imagick.statisticimage.php
  4309. * @param int $type
  4310. * @param int $width
  4311. * @param int $height
  4312. * @param int $channel [optional]
  4313. * @return void
  4314. * @since 3.3.0
  4315. */
  4316. public function statisticImage ($type, $width, $height, $channel = Imagick::CHANNEL_DEFAULT ) { }
  4317. /**
  4318. * Searches for a subimage in the current image and returns a similarity image such that an exact match location is
  4319. * completely white and if none of the pixels match, black, otherwise some gray level in-between.
  4320. * You can also pass in the optional parameters bestMatch and similarity. After calling the function similarity will
  4321. * be set to the 'score' of the similarity between the subimage and the matching position in the larger image,
  4322. * bestMatch will contain an associative array with elements x, y, width, height that describe the matching region.
  4323. *
  4324. * @link https://php.net/manual/en/imagick.subimagematch.php
  4325. * @param Imagick $imagick
  4326. * @param array $bestMatch [optional]
  4327. * @param float $similarity [optional] A new image that displays the amount of similarity at each pixel.
  4328. * @param float $similarity_threshold [optional] Only used if compiled with ImageMagick (library) > 7
  4329. * @param int $metric [optional] Only used if compiled with ImageMagick (library) > 7
  4330. * @return Imagick
  4331. * @since 3.3.0
  4332. */
  4333. public function subImageMatch (Imagick $imagick, array &$bestMatch, &$similarity, $similarity_threshold, $metric) { }
  4334. /**
  4335. * Is an alias of Imagick::subImageMatch
  4336. *
  4337. * @param Imagick $imagick
  4338. * @param array $bestMatch [optional]
  4339. * @param float $similarity [optional] A new image that displays the amount of similarity at each pixel.
  4340. * @param float $similarity_threshold [optional]
  4341. * @param int $metric [optional]
  4342. * @return Imagick
  4343. * @see Imagick::subImageMatch() This function is an alias of subImageMatch()
  4344. * @since 3.4.0
  4345. */
  4346. public function similarityImage (Imagick $imagick, array &$bestMatch, &$similarity, $similarity_threshold, $metric) { }
  4347. /**
  4348. * Returns any ImageMagick configure options that match the specified pattern (e.g. "*" for all). Options include NAME, VERSION, LIB_VERSION, etc.
  4349. * @return string
  4350. * @since 3.4.0
  4351. */
  4352. public function getConfigureOptions () { }
  4353. /**
  4354. * GetFeatures() returns the ImageMagick features that have been compiled into the runtime.
  4355. * @return string
  4356. * @since 3.4.0
  4357. */
  4358. public function getFeatures () { }
  4359. /**
  4360. * @return int
  4361. * @since 3.4.0
  4362. */
  4363. public function getHDRIEnabled () { }
  4364. /**
  4365. * Sets the image channel mask. Returns the previous set channel mask.
  4366. * Only works with Imagick >=7
  4367. * @param int $channel
  4368. * @since 3.4.0
  4369. */
  4370. public function setImageChannelMask ($channel) {}
  4371. /**
  4372. * Merge multiple images of the same size together with the selected operator. https://www.imagemagick.org/Usage/layers/#evaluate-sequence
  4373. * @param int $EVALUATE_CONSTANT
  4374. * @return bool
  4375. * @see https://www.imagemagick.org/Usage/layers/#evaluate-sequence
  4376. * @since 3.4.0
  4377. */
  4378. public function evaluateImages ($EVALUATE_CONSTANT) { }
  4379. /**
  4380. * Extracts the 'mean' from the image and adjust the image to try make set its gamma appropriately.
  4381. * @param int $channel [optional] Default value Imagick::CHANNEL_ALL
  4382. * @return bool
  4383. * @since 3.4.1
  4384. */
  4385. public function autoGammaImage ($channel = Imagick::CHANNEL_ALL) { }
  4386. /**
  4387. * Adjusts an image so that its orientation is suitable $ for viewing (i.e. top-left orientation).
  4388. * @return bool
  4389. * @since 3.4.1
  4390. */
  4391. public function autoOrient () { }
  4392. /**
  4393. * Composite one image onto another using the specified gravity.
  4394. *
  4395. * @param Imagick $imagick
  4396. * @param int $COMPOSITE_CONSTANT
  4397. * @param int $GRAVITY_CONSTANT
  4398. * @return bool
  4399. * @since 3.4.1
  4400. */
  4401. public function compositeImageGravity(Imagick $imagick, $COMPOSITE_CONSTANT, $GRAVITY_CONSTANT) { }
  4402. /**
  4403. * Attempts to increase the appearance of large-scale light-dark transitions.
  4404. *
  4405. * @param float $radius
  4406. * @param float $strength
  4407. * @return bool
  4408. * @since 3.4.1
  4409. */
  4410. public function localContrastImage($radius, $strength) { }
  4411. /**
  4412. * Identifies the potential image type, returns one of the Imagick::IMGTYPE_* constants
  4413. * @return int
  4414. * @since 3.4.3
  4415. */
  4416. public function identifyImageType() { }
  4417. /**
  4418. * Sets the image to the specified alpha level. Will replace ImagickDraw::setOpacity()
  4419. *
  4420. * @param float $alpha
  4421. * @return bool
  4422. * @since 3.4.3
  4423. */
  4424. public function setImageAlpha($alpha) { }
  4425. }
  4426. /**
  4427. * @method ImagickDraw clone() (PECL imagick 2.0.0)<br/>Makes an exact copy of the specified ImagickDraw object
  4428. * @link https://php.net/manual/en/class.imagickdraw.php
  4429. */
  4430. class ImagickDraw {
  4431. public function resetVectorGraphics () {}
  4432. public function getTextKerning () {}
  4433. /**
  4434. * @param $kerning
  4435. */
  4436. public function setTextKerning ($kerning) {}
  4437. public function getTextInterWordSpacing () {}
  4438. /**
  4439. * @param $spacing
  4440. */
  4441. public function setTextInterWordSpacing ($spacing) {}
  4442. public function getTextInterLineSpacing () {}
  4443. /**
  4444. * @param $spacing
  4445. */
  4446. public function setTextInterLineSpacing ($spacing) {}
  4447. /**
  4448. * (PECL imagick 2.0.0)<br/>
  4449. * The ImagickDraw constructor
  4450. * @link https://php.net/manual/en/imagickdraw.construct.php
  4451. */
  4452. public function __construct () {}
  4453. /**
  4454. * (PECL imagick 2.0.0)<br/>
  4455. * Sets the fill color to be used for drawing filled objects
  4456. * @link https://php.net/manual/en/imagickdraw.setfillcolor.php
  4457. * @param ImagickPixel $fill_pixel <p>
  4458. * ImagickPixel to use to set the color
  4459. * </p>
  4460. * @return bool No value is returned.
  4461. */
  4462. public function setFillColor (ImagickPixel $fill_pixel) {}
  4463. /**
  4464. * (PECL imagick 2.0.0)<br/>
  4465. * Sets the opacity to use when drawing using the fill color or fill texture
  4466. * @link https://php.net/manual/en/imagickdraw.setfillalpha.php
  4467. * @param float $opacity <p>
  4468. * fill alpha
  4469. * </p>
  4470. * @return bool No value is returned.
  4471. */
  4472. public function setFillAlpha ($opacity) {}
  4473. /**
  4474. * @param $x_resolution
  4475. * @param $y_resolution
  4476. */
  4477. public function setResolution ($x_resolution, $y_resolution) {}
  4478. /**
  4479. * (PECL imagick 2.0.0)<br/>
  4480. * Sets the color used for stroking object outlines
  4481. * @link https://php.net/manual/en/imagickdraw.setstrokecolor.php
  4482. * @param ImagickPixel $stroke_pixel <p>
  4483. * the stroke color
  4484. * </p>
  4485. * @return bool No value is returned.
  4486. */
  4487. public function setStrokeColor (ImagickPixel $stroke_pixel) {}
  4488. /**
  4489. * (PECL imagick 2.0.0)<br/>
  4490. * Specifies the opacity of stroked object outlines
  4491. * @link https://php.net/manual/en/imagickdraw.setstrokealpha.php
  4492. * @param float $opacity <p>
  4493. * opacity
  4494. * </p>
  4495. * @return bool No value is returned.
  4496. */
  4497. public function setStrokeAlpha ($opacity) {}
  4498. /**
  4499. * (PECL imagick 2.0.0)<br/>
  4500. * Sets the width of the stroke used to draw object outlines
  4501. * @link https://php.net/manual/en/imagickdraw.setstrokewidth.php
  4502. * @param float $stroke_width <p>
  4503. * stroke width
  4504. * </p>
  4505. * @return bool No value is returned.
  4506. */
  4507. public function setStrokeWidth ($stroke_width) {}
  4508. /**
  4509. * (PECL imagick 2.0.0)<br/>
  4510. * Clears the ImagickDraw
  4511. * @link https://php.net/manual/en/imagickdraw.clear.php
  4512. * @return bool an ImagickDraw object.
  4513. */
  4514. public function clear () {}
  4515. /**
  4516. * (PECL imagick 2.0.0)<br/>
  4517. * Draws a circle
  4518. * @link https://php.net/manual/en/imagickdraw.circle.php
  4519. * @param float $ox <p>
  4520. * origin x coordinate
  4521. * </p>
  4522. * @param float $oy <p>
  4523. * origin y coordinate
  4524. * </p>
  4525. * @param float $px <p>
  4526. * perimeter x coordinate
  4527. * </p>
  4528. * @param float $py <p>
  4529. * perimeter y coordinate
  4530. * </p>
  4531. * @return bool No value is returned.
  4532. */
  4533. public function circle ($ox, $oy, $px, $py) {}
  4534. /**
  4535. * (PECL imagick 2.0.0)<br/>
  4536. * Draws text on the image
  4537. * @link https://php.net/manual/en/imagickdraw.annotation.php
  4538. * @param float $x <p>
  4539. * The x coordinate where text is drawn
  4540. * </p>
  4541. * @param float $y <p>
  4542. * The y coordinate where text is drawn
  4543. * </p>
  4544. * @param string $text <p>
  4545. * The text to draw on the image
  4546. * </p>
  4547. * @return bool No value is returned.
  4548. */
  4549. public function annotation ($x, $y, $text) {}
  4550. /**
  4551. * (PECL imagick 2.0.0)<br/>
  4552. * Controls whether text is antialiased
  4553. * @link https://php.net/manual/en/imagickdraw.settextantialias.php
  4554. * @param bool $antiAlias
  4555. * @return bool No value is returned.
  4556. */
  4557. public function setTextAntialias ($antiAlias) {}
  4558. /**
  4559. * (PECL imagick 2.0.0)<br/>
  4560. * Specifies specifies the text code set
  4561. * @link https://php.net/manual/en/imagickdraw.settextencoding.php
  4562. * @param string $encoding <p>
  4563. * the encoding name
  4564. * </p>
  4565. * @return bool No value is returned.
  4566. */
  4567. public function setTextEncoding ($encoding) {}
  4568. /**
  4569. * (PECL imagick 2.0.0)<br/>
  4570. * Sets the fully-specified font to use when annotating with text
  4571. * @link https://php.net/manual/en/imagickdraw.setfont.php
  4572. * @param string $font_name
  4573. * @return bool <b>TRUE</b> on success.
  4574. */
  4575. public function setFont ($font_name) {}
  4576. /**
  4577. * (PECL imagick 2.0.0)<br/>
  4578. * Sets the font family to use when annotating with text
  4579. * @link https://php.net/manual/en/imagickdraw.setfontfamily.php
  4580. * @param string $font_family <p>
  4581. * the font family
  4582. * </p>
  4583. * @return bool <b>TRUE</b> on success.
  4584. */
  4585. public function setFontFamily ($font_family) {}
  4586. /**
  4587. * (PECL imagick 2.0.0)<br/>
  4588. * Sets the font pointsize to use when annotating with text
  4589. * @link https://php.net/manual/en/imagickdraw.setfontsize.php
  4590. * @param float $pointsize <p>
  4591. * the point size
  4592. * </p>
  4593. * @return bool No value is returned.
  4594. */
  4595. public function setFontSize ($pointsize) {}
  4596. /**
  4597. * (PECL imagick 2.0.0)<br/>
  4598. * Sets the font style to use when annotating with text
  4599. * @link https://php.net/manual/en/imagickdraw.setfontstyle.php
  4600. * @param int $style <p>
  4601. * STYLETYPE_ constant
  4602. * </p>
  4603. * @return bool No value is returned.
  4604. */
  4605. public function setFontStyle ($style) {}
  4606. /**
  4607. * (PECL imagick 2.0.0)<br/>
  4608. * Sets the font weight
  4609. * @link https://php.net/manual/en/imagickdraw.setfontweight.php
  4610. * @param int $font_weight
  4611. * @return bool
  4612. */
  4613. public function setFontWeight ($font_weight) {}
  4614. /**
  4615. * (PECL imagick 2.0.0)<br/>
  4616. * Returns the font
  4617. * @link https://php.net/manual/en/imagickdraw.getfont.php
  4618. * @return string|false a string on success and false if no font is set.
  4619. */
  4620. public function getFont () {}
  4621. /**
  4622. * (PECL imagick 2.0.0)<br/>
  4623. * Returns the font family
  4624. * @link https://php.net/manual/en/imagickdraw.getfontfamily.php
  4625. * @return string|false the font family currently selected or false if font family is not set.
  4626. */
  4627. public function getFontFamily () {}
  4628. /**
  4629. * (PECL imagick 2.0.0)<br/>
  4630. * Returns the font pointsize
  4631. * @link https://php.net/manual/en/imagickdraw.getfontsize.php
  4632. * @return float the font size associated with the current ImagickDraw object.
  4633. */
  4634. public function getFontSize () {}
  4635. /**
  4636. * (PECL imagick 2.0.0)<br/>
  4637. * Returns the font style
  4638. * @link https://php.net/manual/en/imagickdraw.getfontstyle.php
  4639. * @return int the font style constant (STYLE_) associated with the ImagickDraw object
  4640. * or 0 if no style is set.
  4641. */
  4642. public function getFontStyle () {}
  4643. /**
  4644. * (PECL imagick 2.0.0)<br/>
  4645. * Returns the font weight
  4646. * @link https://php.net/manual/en/imagickdraw.getfontweight.php
  4647. * @return int an int on success and 0 if no weight is set.
  4648. */
  4649. public function getFontWeight () {}
  4650. /**
  4651. * (PECL imagick 2.0.0)<br/>
  4652. * Frees all associated resources
  4653. * @link https://php.net/manual/en/imagickdraw.destroy.php
  4654. * @return bool No value is returned.
  4655. */
  4656. public function destroy () {}
  4657. /**
  4658. * (PECL imagick 2.0.0)<br/>
  4659. * Draws a rectangle
  4660. * @link https://php.net/manual/en/imagickdraw.rectangle.php
  4661. * @param float $x1 <p>
  4662. * x coordinate of the top left corner
  4663. * </p>
  4664. * @param float $y1 <p>
  4665. * y coordinate of the top left corner
  4666. * </p>
  4667. * @param float $x2 <p>
  4668. * x coordinate of the bottom right corner
  4669. * </p>
  4670. * @param float $y2 <p>
  4671. * y coordinate of the bottom right corner
  4672. * </p>
  4673. * @return bool No value is returned.
  4674. */
  4675. public function rectangle ($x1, $y1, $x2, $y2) {}
  4676. /**
  4677. * (PECL imagick 2.0.0)<br/>
  4678. * Draws a rounded rectangle
  4679. * @link https://php.net/manual/en/imagickdraw.roundrectangle.php
  4680. * @param float $x1 <p>
  4681. * x coordinate of the top left corner
  4682. * </p>
  4683. * @param float $y1 <p>
  4684. * y coordinate of the top left corner
  4685. * </p>
  4686. * @param float $x2 <p>
  4687. * x coordinate of the bottom right
  4688. * </p>
  4689. * @param float $y2 <p>
  4690. * y coordinate of the bottom right
  4691. * </p>
  4692. * @param float $rx <p>
  4693. * x rounding
  4694. * </p>
  4695. * @param float $ry <p>
  4696. * y rounding
  4697. * </p>
  4698. * @return bool No value is returned.
  4699. */
  4700. public function roundRectangle ($x1, $y1, $x2, $y2, $rx, $ry) {}
  4701. /**
  4702. * (PECL imagick 2.0.0)<br/>
  4703. * Draws an ellipse on the image
  4704. * @link https://php.net/manual/en/imagickdraw.ellipse.php
  4705. * @param float $ox
  4706. * @param float $oy
  4707. * @param float $rx
  4708. * @param float $ry
  4709. * @param float $start
  4710. * @param float $end
  4711. * @return bool No value is returned.
  4712. */
  4713. public function ellipse ($ox, $oy, $rx, $ry, $start, $end) {}
  4714. /**
  4715. * (PECL imagick 2.0.0)<br/>
  4716. * Skews the current coordinate system in the horizontal direction
  4717. * @link https://php.net/manual/en/imagickdraw.skewx.php
  4718. * @param float $degrees <p>
  4719. * degrees to skew
  4720. * </p>
  4721. * @return bool No value is returned.
  4722. */
  4723. public function skewX ($degrees) {}
  4724. /**
  4725. * (PECL imagick 2.0.0)<br/>
  4726. * Skews the current coordinate system in the vertical direction
  4727. * @link https://php.net/manual/en/imagickdraw.skewy.php
  4728. * @param float $degrees <p>
  4729. * degrees to skew
  4730. * </p>
  4731. * @return bool No value is returned.
  4732. */
  4733. public function skewY ($degrees) {}
  4734. /**
  4735. * (PECL imagick 2.0.0)<br/>
  4736. * Applies a translation to the current coordinate system
  4737. * @link https://php.net/manual/en/imagickdraw.translate.php
  4738. * @param float $x <p>
  4739. * horizontal translation
  4740. * </p>
  4741. * @param float $y <p>
  4742. * vertical translation
  4743. * </p>
  4744. * @return bool No value is returned.
  4745. */
  4746. public function translate ($x, $y) {}
  4747. /**
  4748. * (PECL imagick 2.0.0)<br/>
  4749. * Draws a line
  4750. * @link https://php.net/manual/en/imagickdraw.line.php
  4751. * @param float $sx <p>
  4752. * starting x coordinate
  4753. * </p>
  4754. * @param float $sy <p>
  4755. * starting y coordinate
  4756. * </p>
  4757. * @param float $ex <p>
  4758. * ending x coordinate
  4759. * </p>
  4760. * @param float $ey <p>
  4761. * ending y coordinate
  4762. * </p>
  4763. * @return bool No value is returned.
  4764. */
  4765. public function line ($sx, $sy, $ex, $ey) {}
  4766. /**
  4767. * (PECL imagick 2.0.0)<br/>
  4768. * Draws an arc
  4769. * @link https://php.net/manual/en/imagickdraw.arc.php
  4770. * @param float $sx <p>
  4771. * Starting x ordinate of bounding rectangle
  4772. * </p>
  4773. * @param float $sy <p>
  4774. * starting y ordinate of bounding rectangle
  4775. * </p>
  4776. * @param float $ex <p>
  4777. * ending x ordinate of bounding rectangle
  4778. * </p>
  4779. * @param float $ey <p>
  4780. * ending y ordinate of bounding rectangle
  4781. * </p>
  4782. * @param float $sd <p>
  4783. * starting degrees of rotation
  4784. * </p>
  4785. * @param float $ed <p>
  4786. * ending degrees of rotation
  4787. * </p>
  4788. * @return bool No value is returned.
  4789. */
  4790. public function arc ($sx, $sy, $ex, $ey, $sd, $ed) {}
  4791. /**
  4792. * (PECL imagick 2.0.0)<br/>
  4793. * Paints on the image's opacity channel
  4794. * @link https://php.net/manual/en/imagickdraw.matte.php
  4795. * @param float $x <p>
  4796. * x coordinate of the matte
  4797. * </p>
  4798. * @param float $y <p>
  4799. * y coordinate of the matte
  4800. * </p>
  4801. * @param int $paintMethod <p>
  4802. * PAINT_ constant
  4803. * </p>
  4804. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  4805. */
  4806. public function matte ($x, $y, $paintMethod) {}
  4807. /**
  4808. * (PECL imagick 2.0.0)<br/>
  4809. * Draws a polygon
  4810. * @link https://php.net/manual/en/imagickdraw.polygon.php
  4811. * @param array $coordinates <p>
  4812. * multidimensional array like array( array( 'x' => 3, 'y' => 4 ), array( 'x' => 2, 'y' => 6 ) );
  4813. * </p>
  4814. * @return bool <b>TRUE</b> on success.
  4815. */
  4816. public function polygon (array $coordinates) {}
  4817. /**
  4818. * (PECL imagick 2.0.0)<br/>
  4819. * Draws a point
  4820. * @link https://php.net/manual/en/imagickdraw.point.php
  4821. * @param float $x <p>
  4822. * point's x coordinate
  4823. * </p>
  4824. * @param float $y <p>
  4825. * point's y coordinate
  4826. * </p>
  4827. * @return bool No value is returned.
  4828. */
  4829. public function point ($x, $y) {}
  4830. /**
  4831. * (PECL imagick 2.0.0)<br/>
  4832. * Returns the text decoration
  4833. * @link https://php.net/manual/en/imagickdraw.gettextdecoration.php
  4834. * @return int one of the DECORATION_ constants
  4835. * and 0 if no decoration is set.
  4836. */
  4837. public function getTextDecoration () {}
  4838. /**
  4839. * (PECL imagick 2.0.0)<br/>
  4840. * Returns the code set used for text annotations
  4841. * @link https://php.net/manual/en/imagickdraw.gettextencoding.php
  4842. * @return string a string specifying the code set
  4843. * or false if text encoding is not set.
  4844. */
  4845. public function getTextEncoding () {}
  4846. public function getFontStretch () {}
  4847. /**
  4848. * (PECL imagick 2.0.0)<br/>
  4849. * Sets the font stretch to use when annotating with text
  4850. * @link https://php.net/manual/en/imagickdraw.setfontstretch.php
  4851. * @param int $fontStretch <p>
  4852. * STRETCH_ constant
  4853. * </p>
  4854. * @return bool No value is returned.
  4855. */
  4856. public function setFontStretch ($fontStretch) {}
  4857. /**
  4858. * (PECL imagick 2.0.0)<br/>
  4859. * Controls whether stroked outlines are antialiased
  4860. * @link https://php.net/manual/en/imagickdraw.setstrokeantialias.php
  4861. * @param bool $stroke_antialias <p>
  4862. * the antialias setting
  4863. * </p>
  4864. * @return bool No value is returned.
  4865. */
  4866. public function setStrokeAntialias ($stroke_antialias) {}
  4867. /**
  4868. * (PECL imagick 2.0.0)<br/>
  4869. * Specifies a text alignment
  4870. * @link https://php.net/manual/en/imagickdraw.settextalignment.php
  4871. * @param int $alignment <p>
  4872. * ALIGN_ constant
  4873. * </p>
  4874. * @return bool No value is returned.
  4875. */
  4876. public function setTextAlignment ($alignment) {}
  4877. /**
  4878. * (PECL imagick 2.0.0)<br/>
  4879. * Specifies a decoration
  4880. * @link https://php.net/manual/en/imagickdraw.settextdecoration.php
  4881. * @param int $decoration <p>
  4882. * DECORATION_ constant
  4883. * </p>
  4884. * @return bool No value is returned.
  4885. */
  4886. public function setTextDecoration ($decoration) {}
  4887. /**
  4888. * (PECL imagick 2.0.0)<br/>
  4889. * Specifies the color of a background rectangle
  4890. * @link https://php.net/manual/en/imagickdraw.settextundercolor.php
  4891. * @param ImagickPixel $under_color <p>
  4892. * the under color
  4893. * </p>
  4894. * @return bool No value is returned.
  4895. */
  4896. public function setTextUnderColor (ImagickPixel $under_color) {}
  4897. /**
  4898. * (PECL imagick 2.0.0)<br/>
  4899. * Sets the overall canvas size
  4900. * @link https://php.net/manual/en/imagickdraw.setviewbox.php
  4901. * @param int $x1 <p>
  4902. * left x coordinate
  4903. * </p>
  4904. * @param int $y1 <p>
  4905. * left y coordinate
  4906. * </p>
  4907. * @param int $x2 <p>
  4908. * right x coordinate
  4909. * </p>
  4910. * @param int $y2 <p>
  4911. * right y coordinate
  4912. * </p>
  4913. * @return bool No value is returned.
  4914. */
  4915. public function setViewbox ($x1, $y1, $x2, $y2) {}
  4916. /**
  4917. * (PECL imagick 2.0.0)<br/>
  4918. * Adjusts the current affine transformation matrix
  4919. * @link https://php.net/manual/en/imagickdraw.affine.php
  4920. * @param array $affine <p>
  4921. * Affine matrix parameters
  4922. * </p>
  4923. * @return bool No value is returned.
  4924. */
  4925. public function affine (array $affine) {}
  4926. /**
  4927. * (PECL imagick 2.0.0)<br/>
  4928. * Draws a bezier curve
  4929. * @link https://php.net/manual/en/imagickdraw.bezier.php
  4930. * @param array $coordinates <p>
  4931. * Multidimensional array like array( array( 'x' => 1, 'y' => 2 ),
  4932. * array( 'x' => 3, 'y' => 4 ) )
  4933. * </p>
  4934. * @return bool No value is returned.
  4935. */
  4936. public function bezier (array $coordinates) {}
  4937. /**
  4938. * (PECL imagick 2.0.0)<br/>
  4939. * Composites an image onto the current image
  4940. * @link https://php.net/manual/en/imagickdraw.composite.php
  4941. * @param int $compose <p>
  4942. * composition operator. One of COMPOSITE_ constants
  4943. * </p>
  4944. * @param float $x <p>
  4945. * x coordinate of the top left corner
  4946. * </p>
  4947. * @param float $y <p>
  4948. * y coordinate of the top left corner
  4949. * </p>
  4950. * @param float $width <p>
  4951. * width of the composition image
  4952. * </p>
  4953. * @param float $height <p>
  4954. * height of the composition image
  4955. * </p>
  4956. * @param Imagick $compositeWand <p>
  4957. * the Imagick object where composition image is taken from
  4958. * </p>
  4959. * @return bool <b>TRUE</b> on success.
  4960. */
  4961. public function composite ($compose, $x, $y, $width, $height, Imagick $compositeWand) {}
  4962. /**
  4963. * (PECL imagick 2.0.0)<br/>
  4964. * Draws color on image
  4965. * @link https://php.net/manual/en/imagickdraw.color.php
  4966. * @param float $x <p>
  4967. * x coordinate of the paint
  4968. * </p>
  4969. * @param float $y <p>
  4970. * y coordinate of the paint
  4971. * </p>
  4972. * @param int $paintMethod <p>
  4973. * one of the PAINT_ constants
  4974. * </p>
  4975. * @return bool No value is returned.
  4976. */
  4977. public function color ($x, $y, $paintMethod) {}
  4978. /**
  4979. * (PECL imagick 2.0.0)<br/>
  4980. * Adds a comment
  4981. * @link https://php.net/manual/en/imagickdraw.comment.php
  4982. * @param string $comment <p>
  4983. * The comment string to add to vector output stream
  4984. * </p>
  4985. * @return bool No value is returned.
  4986. */
  4987. public function comment ($comment) {}
  4988. /**
  4989. * (PECL imagick 2.0.0)<br/>
  4990. * Obtains the current clipping path ID
  4991. * @link https://php.net/manual/en/imagickdraw.getclippath.php
  4992. * @return string|false a string containing the clip path ID or false if no clip path exists.
  4993. */
  4994. public function getClipPath () {}
  4995. /**
  4996. * (PECL imagick 2.0.0)<br/>
  4997. * Returns the current polygon fill rule
  4998. * @link https://php.net/manual/en/imagickdraw.getcliprule.php
  4999. * @return int one of the FILLRULE_ constants.
  5000. */
  5001. public function getClipRule () {}
  5002. /**
  5003. * (PECL imagick 2.0.0)<br/>
  5004. * Returns the interpretation of clip path units
  5005. * @link https://php.net/manual/en/imagickdraw.getclipunits.php
  5006. * @return int an int on success.
  5007. */
  5008. public function getClipUnits () {}
  5009. /**
  5010. * (PECL imagick 2.0.0)<br/>
  5011. * Returns the fill color
  5012. * @link https://php.net/manual/en/imagickdraw.getfillcolor.php
  5013. * @return ImagickPixel an ImagickPixel object.
  5014. */
  5015. public function getFillColor () {}
  5016. /**
  5017. * (PECL imagick 2.0.0)<br/>
  5018. * Returns the opacity used when drawing
  5019. * @link https://php.net/manual/en/imagickdraw.getfillopacity.php
  5020. * @return float The opacity.
  5021. */
  5022. public function getFillOpacity () {}
  5023. /**
  5024. * (PECL imagick 2.0.0)<br/>
  5025. * Returns the fill rule
  5026. * @link https://php.net/manual/en/imagickdraw.getfillrule.php
  5027. * @return int a FILLRULE_ constant
  5028. */
  5029. public function getFillRule () {}
  5030. /**
  5031. * (PECL imagick 2.0.0)<br/>
  5032. * Returns the text placement gravity
  5033. * @link https://php.net/manual/en/imagickdraw.getgravity.php
  5034. * @return int a GRAVITY_ constant on success and 0 if no gravity is set.
  5035. */
  5036. public function getGravity () {}
  5037. /**
  5038. * (PECL imagick 2.0.0)<br/>
  5039. * Returns the current stroke antialias setting
  5040. * @link https://php.net/manual/en/imagickdraw.getstrokeantialias.php
  5041. * @return bool <b>TRUE</b> if antialiasing is on and false if it is off.
  5042. */
  5043. public function getStrokeAntialias () {}
  5044. /**
  5045. * (PECL imagick 2.0.0)<br/>
  5046. * Returns the color used for stroking object outlines
  5047. * @link https://php.net/manual/en/imagickdraw.getstrokecolor.php
  5048. * @return ImagickPixel an ImagickPixel object which describes the color.
  5049. */
  5050. public function getStrokeColor () {}
  5051. /**
  5052. * (PECL imagick 2.0.0)<br/>
  5053. * Returns an array representing the pattern of dashes and gaps used to stroke paths
  5054. * @link https://php.net/manual/en/imagickdraw.getstrokedasharray.php
  5055. * @return array an array on success and empty array if not set.
  5056. */
  5057. public function getStrokeDashArray () {}
  5058. /**
  5059. * (PECL imagick 2.0.0)<br/>
  5060. * Returns the offset into the dash pattern to start the dash
  5061. * @link https://php.net/manual/en/imagickdraw.getstrokedashoffset.php
  5062. * @return float a float representing the offset and 0 if it's not set.
  5063. */
  5064. public function getStrokeDashOffset () {}
  5065. /**
  5066. * (PECL imagick 2.0.0)<br/>
  5067. * Returns the shape to be used at the end of open subpaths when they are stroked
  5068. * @link https://php.net/manual/en/imagickdraw.getstrokelinecap.php
  5069. * @return int one of the LINECAP_ constants or 0 if stroke linecap is not set.
  5070. */
  5071. public function getStrokeLineCap () {}
  5072. /**
  5073. * (PECL imagick 2.0.0)<br/>
  5074. * Returns the shape to be used at the corners of paths when they are stroked
  5075. * @link https://php.net/manual/en/imagickdraw.getstrokelinejoin.php
  5076. * @return int one of the LINEJOIN_ constants or 0 if stroke line join is not set.
  5077. */
  5078. public function getStrokeLineJoin () {}
  5079. /**
  5080. * (PECL imagick 2.0.0)<br/>
  5081. * Returns the stroke miter limit
  5082. * @link https://php.net/manual/en/imagickdraw.getstrokemiterlimit.php
  5083. * @return int an int describing the miter limit
  5084. * and 0 if no miter limit is set.
  5085. */
  5086. public function getStrokeMiterLimit () {}
  5087. /**
  5088. * (PECL imagick 2.0.0)<br/>
  5089. * Returns the opacity of stroked object outlines
  5090. * @link https://php.net/manual/en/imagickdraw.getstrokeopacity.php
  5091. * @return float a double describing the opacity.
  5092. */
  5093. public function getStrokeOpacity () {}
  5094. /**
  5095. * (PECL imagick 2.0.0)<br/>
  5096. * Returns the width of the stroke used to draw object outlines
  5097. * @link https://php.net/manual/en/imagickdraw.getstrokewidth.php
  5098. * @return float a double describing the stroke width.
  5099. */
  5100. public function getStrokeWidth () {}
  5101. /**
  5102. * (PECL imagick 2.0.0)<br/>
  5103. * Returns the text alignment
  5104. * @link https://php.net/manual/en/imagickdraw.gettextalignment.php
  5105. * @return int one of the ALIGN_ constants and 0 if no align is set.
  5106. */
  5107. public function getTextAlignment () {}
  5108. /**
  5109. * (PECL imagick 2.0.0)<br/>
  5110. * Returns the current text antialias setting
  5111. * @link https://php.net/manual/en/imagickdraw.gettextantialias.php
  5112. * @return bool <b>TRUE</b> if text is antialiased and false if not.
  5113. */
  5114. public function getTextAntialias () {}
  5115. /**
  5116. * (PECL imagick 2.0.0)<br/>
  5117. * Returns a string containing vector graphics
  5118. * @link https://php.net/manual/en/imagickdraw.getvectorgraphics.php
  5119. * @return string a string containing the vector graphics.
  5120. */
  5121. public function getVectorGraphics () {}
  5122. /**
  5123. * (PECL imagick 2.0.0)<br/>
  5124. * Returns the text under color
  5125. * @link https://php.net/manual/en/imagickdraw.gettextundercolor.php
  5126. * @return ImagickPixel an ImagickPixel object describing the color.
  5127. */
  5128. public function getTextUnderColor () {}
  5129. /**
  5130. * (PECL imagick 2.0.0)<br/>
  5131. * Adds a path element to the current path
  5132. * @link https://php.net/manual/en/imagickdraw.pathclose.php
  5133. * @return bool No value is returned.
  5134. */
  5135. public function pathClose () {}
  5136. /**
  5137. * (PECL imagick 2.0.0)<br/>
  5138. * Draws a cubic Bezier curve
  5139. * @link https://php.net/manual/en/imagickdraw.pathcurvetoabsolute.php
  5140. * @param float $x1 <p>
  5141. * x coordinate of the first control point
  5142. * </p>
  5143. * @param float $y1 <p>
  5144. * y coordinate of the first control point
  5145. * </p>
  5146. * @param float $x2 <p>
  5147. * x coordinate of the second control point
  5148. * </p>
  5149. * @param float $y2 <p>
  5150. * y coordinate of the first control point
  5151. * </p>
  5152. * @param float $x <p>
  5153. * x coordinate of the curve end
  5154. * </p>
  5155. * @param float $y <p>
  5156. * y coordinate of the curve end
  5157. * </p>
  5158. * @return bool No value is returned.
  5159. */
  5160. public function pathCurveToAbsolute ($x1, $y1, $x2, $y2, $x, $y) {}
  5161. /**
  5162. * (PECL imagick 2.0.0)<br/>
  5163. * Draws a cubic Bezier curve
  5164. * @link https://php.net/manual/en/imagickdraw.pathcurvetorelative.php
  5165. * @param float $x1 <p>
  5166. * x coordinate of starting control point
  5167. * </p>
  5168. * @param float $y1 <p>
  5169. * y coordinate of starting control point
  5170. * </p>
  5171. * @param float $x2 <p>
  5172. * x coordinate of ending control point
  5173. * </p>
  5174. * @param float $y2 <p>
  5175. * y coordinate of ending control point
  5176. * </p>
  5177. * @param float $x <p>
  5178. * ending x coordinate
  5179. * </p>
  5180. * @param float $y <p>
  5181. * ending y coordinate
  5182. * </p>
  5183. * @return bool No value is returned.
  5184. */
  5185. public function pathCurveToRelative ($x1, $y1, $x2, $y2, $x, $y) {}
  5186. /**
  5187. * (PECL imagick 2.0.0)<br/>
  5188. * Draws a quadratic Bezier curve
  5189. * @link https://php.net/manual/en/imagickdraw.pathcurvetoquadraticbezierabsolute.php
  5190. * @param float $x1 <p>
  5191. * x coordinate of the control point
  5192. * </p>
  5193. * @param float $y1 <p>
  5194. * y coordinate of the control point
  5195. * </p>
  5196. * @param float $x <p>
  5197. * x coordinate of the end point
  5198. * </p>
  5199. * @param float $y <p>
  5200. * y coordinate of the end point
  5201. * </p>
  5202. * @return bool No value is returned.
  5203. */
  5204. public function pathCurveToQuadraticBezierAbsolute ($x1, $y1, $x, $y) {}
  5205. /**
  5206. * (PECL imagick 2.0.0)<br/>
  5207. * Draws a quadratic Bezier curve
  5208. * @link https://php.net/manual/en/imagickdraw.pathcurvetoquadraticbezierrelative.php
  5209. * @param float $x1 <p>
  5210. * starting x coordinate
  5211. * </p>
  5212. * @param float $y1 <p>
  5213. * starting y coordinate
  5214. * </p>
  5215. * @param float $x <p>
  5216. * ending x coordinate
  5217. * </p>
  5218. * @param float $y <p>
  5219. * ending y coordinate
  5220. * </p>
  5221. * @return bool No value is returned.
  5222. */
  5223. public function pathCurveToQuadraticBezierRelative ($x1, $y1, $x, $y) {}
  5224. /**
  5225. * (PECL imagick 2.0.0)<br/>
  5226. * Draws a quadratic Bezier curve
  5227. * @link https://php.net/manual/en/imagickdraw.pathcurvetoquadraticbeziersmoothabsolute.php
  5228. * @param float $x <p>
  5229. * ending x coordinate
  5230. * </p>
  5231. * @param float $y <p>
  5232. * ending y coordinate
  5233. * </p>
  5234. * @return bool No value is returned.
  5235. */
  5236. public function pathCurveToQuadraticBezierSmoothAbsolute ($x, $y) {}
  5237. /**
  5238. * (PECL imagick 2.0.0)<br/>
  5239. * Draws a quadratic Bezier curve
  5240. * @link https://php.net/manual/en/imagickdraw.pathcurvetoquadraticbeziersmoothrelative.php
  5241. * @param float $x <p>
  5242. * ending x coordinate
  5243. * </p>
  5244. * @param float $y <p>
  5245. * ending y coordinate
  5246. * </p>
  5247. * @return bool No value is returned.
  5248. */
  5249. public function pathCurveToQuadraticBezierSmoothRelative ($x, $y) {}
  5250. /**
  5251. * (PECL imagick 2.0.0)<br/>
  5252. * Draws a cubic Bezier curve
  5253. * @link https://php.net/manual/en/imagickdraw.pathcurvetosmoothabsolute.php
  5254. * @param float $x2 <p>
  5255. * x coordinate of the second control point
  5256. * </p>
  5257. * @param float $y2 <p>
  5258. * y coordinate of the second control point
  5259. * </p>
  5260. * @param float $x <p>
  5261. * x coordinate of the ending point
  5262. * </p>
  5263. * @param float $y <p>
  5264. * y coordinate of the ending point
  5265. * </p>
  5266. * @return bool No value is returned.
  5267. */
  5268. public function pathCurveToSmoothAbsolute ($x2, $y2, $x, $y) {}
  5269. /**
  5270. * (PECL imagick 2.0.0)<br/>
  5271. * Draws a cubic Bezier curve
  5272. * @link https://php.net/manual/en/imagickdraw.pathcurvetosmoothrelative.php
  5273. * @param float $x2 <p>
  5274. * x coordinate of the second control point
  5275. * </p>
  5276. * @param float $y2 <p>
  5277. * y coordinate of the second control point
  5278. * </p>
  5279. * @param float $x <p>
  5280. * x coordinate of the ending point
  5281. * </p>
  5282. * @param float $y <p>
  5283. * y coordinate of the ending point
  5284. * </p>
  5285. * @return bool No value is returned.
  5286. */
  5287. public function pathCurveToSmoothRelative ($x2, $y2, $x, $y) {}
  5288. /**
  5289. * (PECL imagick 2.0.0)<br/>
  5290. * Draws an elliptical arc
  5291. * @link https://php.net/manual/en/imagickdraw.pathellipticarcabsolute.php
  5292. * @param float $rx <p>
  5293. * x radius
  5294. * </p>
  5295. * @param float $ry <p>
  5296. * y radius
  5297. * </p>
  5298. * @param float $x_axis_rotation <p>
  5299. * x axis rotation
  5300. * </p>
  5301. * @param bool $large_arc_flag <p>
  5302. * large arc flag
  5303. * </p>
  5304. * @param bool $sweep_flag <p>
  5305. * sweep flag
  5306. * </p>
  5307. * @param float $x <p>
  5308. * x coordinate
  5309. * </p>
  5310. * @param float $y <p>
  5311. * y coordinate
  5312. * </p>
  5313. * @return bool No value is returned.
  5314. */
  5315. public function pathEllipticArcAbsolute ($rx, $ry, $x_axis_rotation, $large_arc_flag, $sweep_flag, $x, $y) {}
  5316. /**
  5317. * (PECL imagick 2.0.0)<br/>
  5318. * Draws an elliptical arc
  5319. * @link https://php.net/manual/en/imagickdraw.pathellipticarcrelative.php
  5320. * @param float $rx <p>
  5321. * x radius
  5322. * </p>
  5323. * @param float $ry <p>
  5324. * y radius
  5325. * </p>
  5326. * @param float $x_axis_rotation <p>
  5327. * x axis rotation
  5328. * </p>
  5329. * @param bool $large_arc_flag <p>
  5330. * large arc flag
  5331. * </p>
  5332. * @param bool $sweep_flag <p>
  5333. * sweep flag
  5334. * </p>
  5335. * @param float $x <p>
  5336. * x coordinate
  5337. * </p>
  5338. * @param float $y <p>
  5339. * y coordinate
  5340. * </p>
  5341. * @return bool No value is returned.
  5342. */
  5343. public function pathEllipticArcRelative ($rx, $ry, $x_axis_rotation, $large_arc_flag, $sweep_flag, $x, $y) {}
  5344. /**
  5345. * (PECL imagick 2.0.0)<br/>
  5346. * Terminates the current path
  5347. * @link https://php.net/manual/en/imagickdraw.pathfinish.php
  5348. * @return bool No value is returned.
  5349. */
  5350. public function pathFinish () {}
  5351. /**
  5352. * (PECL imagick 2.0.0)<br/>
  5353. * Draws a line path
  5354. * @link https://php.net/manual/en/imagickdraw.pathlinetoabsolute.php
  5355. * @param float $x <p>
  5356. * starting x coordinate
  5357. * </p>
  5358. * @param float $y <p>
  5359. * ending x coordinate
  5360. * </p>
  5361. * @return bool No value is returned.
  5362. */
  5363. public function pathLineToAbsolute ($x, $y) {}
  5364. /**
  5365. * (PECL imagick 2.0.0)<br/>
  5366. * Draws a line path
  5367. * @link https://php.net/manual/en/imagickdraw.pathlinetorelative.php
  5368. * @param float $x <p>
  5369. * starting x coordinate
  5370. * </p>
  5371. * @param float $y <p>
  5372. * starting y coordinate
  5373. * </p>
  5374. * @return bool No value is returned.
  5375. */
  5376. public function pathLineToRelative ($x, $y) {}
  5377. /**
  5378. * (PECL imagick 2.0.0)<br/>
  5379. * Draws a horizontal line path
  5380. * @link https://php.net/manual/en/imagickdraw.pathlinetohorizontalabsolute.php
  5381. * @param float $x <p>
  5382. * x coordinate
  5383. * </p>
  5384. * @return bool No value is returned.
  5385. */
  5386. public function pathLineToHorizontalAbsolute ($x) {}
  5387. /**
  5388. * (PECL imagick 2.0.0)<br/>
  5389. * Draws a horizontal line
  5390. * @link https://php.net/manual/en/imagickdraw.pathlinetohorizontalrelative.php
  5391. * @param float $x <p>
  5392. * x coordinate
  5393. * </p>
  5394. * @return bool No value is returned.
  5395. */
  5396. public function pathLineToHorizontalRelative ($x) {}
  5397. /**
  5398. * (PECL imagick 2.0.0)<br/>
  5399. * Draws a vertical line
  5400. * @link https://php.net/manual/en/imagickdraw.pathlinetoverticalabsolute.php
  5401. * @param float $y <p>
  5402. * y coordinate
  5403. * </p>
  5404. * @return bool No value is returned.
  5405. */
  5406. public function pathLineToVerticalAbsolute ($y) {}
  5407. /**
  5408. * (PECL imagick 2.0.0)<br/>
  5409. * Draws a vertical line path
  5410. * @link https://php.net/manual/en/imagickdraw.pathlinetoverticalrelative.php
  5411. * @param float $y <p>
  5412. * y coordinate
  5413. * </p>
  5414. * @return bool No value is returned.
  5415. */
  5416. public function pathLineToVerticalRelative ($y) {}
  5417. /**
  5418. * (PECL imagick 2.0.0)<br/>
  5419. * Starts a new sub-path
  5420. * @link https://php.net/manual/en/imagickdraw.pathmovetoabsolute.php
  5421. * @param float $x <p>
  5422. * x coordinate of the starting point
  5423. * </p>
  5424. * @param float $y <p>
  5425. * y coordinate of the starting point
  5426. * </p>
  5427. * @return bool No value is returned.
  5428. */
  5429. public function pathMoveToAbsolute ($x, $y) {}
  5430. /**
  5431. * (PECL imagick 2.0.0)<br/>
  5432. * Starts a new sub-path
  5433. * @link https://php.net/manual/en/imagickdraw.pathmovetorelative.php
  5434. * @param float $x <p>
  5435. * target x coordinate
  5436. * </p>
  5437. * @param float $y <p>
  5438. * target y coordinate
  5439. * </p>
  5440. * @return bool No value is returned.
  5441. */
  5442. public function pathMoveToRelative ($x, $y) {}
  5443. /**
  5444. * (PECL imagick 2.0.0)<br/>
  5445. * Declares the start of a path drawing list
  5446. * @link https://php.net/manual/en/imagickdraw.pathstart.php
  5447. * @return bool No value is returned.
  5448. */
  5449. public function pathStart () {}
  5450. /**
  5451. * (PECL imagick 2.0.0)<br/>
  5452. * Draws a polyline
  5453. * @link https://php.net/manual/en/imagickdraw.polyline.php
  5454. * @param array $coordinates <p>
  5455. * array of x and y coordinates: array( array( 'x' => 4, 'y' => 6 ), array( 'x' => 8, 'y' => 10 ) )
  5456. * </p>
  5457. * @return bool <b>TRUE</b> on success.
  5458. */
  5459. public function polyline (array $coordinates) {}
  5460. /**
  5461. * (PECL imagick 2.0.0)<br/>
  5462. * Terminates a clip path definition
  5463. * @link https://php.net/manual/en/imagickdraw.popclippath.php
  5464. * @return bool No value is returned.
  5465. */
  5466. public function popClipPath () {}
  5467. /**
  5468. * (PECL imagick 2.0.0)<br/>
  5469. * Terminates a definition list
  5470. * @link https://php.net/manual/en/imagickdraw.popdefs.php
  5471. * @return bool No value is returned.
  5472. */
  5473. public function popDefs () {}
  5474. /**
  5475. * (PECL imagick 2.0.0)<br/>
  5476. * Terminates a pattern definition
  5477. * @link https://php.net/manual/en/imagickdraw.poppattern.php
  5478. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  5479. */
  5480. public function popPattern () {}
  5481. /**
  5482. * (PECL imagick 2.0.0)<br/>
  5483. * Starts a clip path definition
  5484. * @link https://php.net/manual/en/imagickdraw.pushclippath.php
  5485. * @param string $clip_mask_id <p>
  5486. * Clip mask Id
  5487. * </p>
  5488. * @return bool No value is returned.
  5489. */
  5490. public function pushClipPath ($clip_mask_id) {}
  5491. /**
  5492. * (PECL imagick 2.0.0)<br/>
  5493. * Indicates that following commands create named elements for early processing
  5494. * @link https://php.net/manual/en/imagickdraw.pushdefs.php
  5495. * @return bool No value is returned.
  5496. */
  5497. public function pushDefs () {}
  5498. /**
  5499. * (PECL imagick 2.0.0)<br/>
  5500. * Indicates that subsequent commands up to a ImagickDraw::opPattern() command comprise the definition of a named pattern
  5501. * @link https://php.net/manual/en/imagickdraw.pushpattern.php
  5502. * @param string $pattern_id <p>
  5503. * the pattern Id
  5504. * </p>
  5505. * @param float $x <p>
  5506. * x coordinate of the top-left corner
  5507. * </p>
  5508. * @param float $y <p>
  5509. * y coordinate of the top-left corner
  5510. * </p>
  5511. * @param float $width <p>
  5512. * width of the pattern
  5513. * </p>
  5514. * @param float $height <p>
  5515. * height of the pattern
  5516. * </p>
  5517. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  5518. */
  5519. public function pushPattern ($pattern_id, $x, $y, $width, $height) {}
  5520. /**
  5521. * (PECL imagick 2.0.0)<br/>
  5522. * Renders all preceding drawing commands onto the image
  5523. * @link https://php.net/manual/en/imagickdraw.render.php
  5524. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  5525. */
  5526. public function render () {}
  5527. /**
  5528. * (PECL imagick 2.0.0)<br/>
  5529. * Applies the specified rotation to the current coordinate space
  5530. * @link https://php.net/manual/en/imagickdraw.rotate.php
  5531. * @param float $degrees <p>
  5532. * degrees to rotate
  5533. * </p>
  5534. * @return bool No value is returned.
  5535. */
  5536. public function rotate ($degrees) {}
  5537. /**
  5538. * (PECL imagick 2.0.0)<br/>
  5539. * Adjusts the scaling factor
  5540. * @link https://php.net/manual/en/imagickdraw.scale.php
  5541. * @param float $x <p>
  5542. * horizontal factor
  5543. * </p>
  5544. * @param float $y <p>
  5545. * vertical factor
  5546. * </p>
  5547. * @return bool No value is returned.
  5548. */
  5549. public function scale ($x, $y) {}
  5550. /**
  5551. * (PECL imagick 2.0.0)<br/>
  5552. * Associates a named clipping path with the image
  5553. * @link https://php.net/manual/en/imagickdraw.setclippath.php
  5554. * @param string $clip_mask <p>
  5555. * the clipping path name
  5556. * </p>
  5557. * @return bool No value is returned.
  5558. */
  5559. public function setClipPath ($clip_mask) {}
  5560. /**
  5561. * (PECL imagick 2.0.0)<br/>
  5562. * Set the polygon fill rule to be used by the clipping path
  5563. * @link https://php.net/manual/en/imagickdraw.setcliprule.php
  5564. * @param int $fill_rule <p>
  5565. * FILLRULE_ constant
  5566. * </p>
  5567. * @return bool No value is returned.
  5568. */
  5569. public function setClipRule ($fill_rule) {}
  5570. /**
  5571. * (PECL imagick 2.0.0)<br/>
  5572. * Sets the interpretation of clip path units
  5573. * @link https://php.net/manual/en/imagickdraw.setclipunits.php
  5574. * @param int $clip_units <p>
  5575. * the number of clip units
  5576. * </p>
  5577. * @return bool No value is returned.
  5578. */
  5579. public function setClipUnits ($clip_units) {}
  5580. /**
  5581. * (PECL imagick 2.0.0)<br/>
  5582. * Sets the opacity to use when drawing using the fill color or fill texture
  5583. * @link https://php.net/manual/en/imagickdraw.setfillopacity.php
  5584. * @param float $fillOpacity <p>
  5585. * the fill opacity
  5586. * </p>
  5587. * @return bool No value is returned.
  5588. */
  5589. public function setFillOpacity ($fillOpacity) {}
  5590. /**
  5591. * (PECL imagick 2.0.0)<br/>
  5592. * Sets the URL to use as a fill pattern for filling objects
  5593. * @link https://php.net/manual/en/imagickdraw.setfillpatternurl.php
  5594. * @param string $fill_url <p>
  5595. * URL to use to obtain fill pattern.
  5596. * </p>
  5597. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  5598. */
  5599. public function setFillPatternURL ($fill_url) {}
  5600. /**
  5601. * (PECL imagick 2.0.0)<br/>
  5602. * Sets the fill rule to use while drawing polygons
  5603. * @link https://php.net/manual/en/imagickdraw.setfillrule.php
  5604. * @param int $fill_rule <p>
  5605. * FILLRULE_ constant
  5606. * </p>
  5607. * @return bool No value is returned.
  5608. */
  5609. public function setFillRule ($fill_rule) {}
  5610. /**
  5611. * (PECL imagick 2.0.0)<br/>
  5612. * Sets the text placement gravity
  5613. * @link https://php.net/manual/en/imagickdraw.setgravity.php
  5614. * @param int $gravity <p>
  5615. * GRAVITY_ constant
  5616. * </p>
  5617. * @return bool No value is returned.
  5618. */
  5619. public function setGravity ($gravity) {}
  5620. /**
  5621. * (PECL imagick 2.0.0)<br/>
  5622. * Sets the pattern used for stroking object outlines
  5623. * @link https://php.net/manual/en/imagickdraw.setstrokepatternurl.php
  5624. * @param string $stroke_url <p>
  5625. * stroke URL
  5626. * </p>
  5627. * @return bool imagick.imagickdraw.return.success;
  5628. */
  5629. public function setStrokePatternURL ($stroke_url) {}
  5630. /**
  5631. * (PECL imagick 2.0.0)<br/>
  5632. * Specifies the offset into the dash pattern to start the dash
  5633. * @link https://php.net/manual/en/imagickdraw.setstrokedashoffset.php
  5634. * @param float $dash_offset <p>
  5635. * dash offset
  5636. * </p>
  5637. * @return bool No value is returned.
  5638. */
  5639. public function setStrokeDashOffset ($dash_offset) {}
  5640. /**
  5641. * (PECL imagick 2.0.0)<br/>
  5642. * Specifies the shape to be used at the end of open subpaths when they are stroked
  5643. * @link https://php.net/manual/en/imagickdraw.setstrokelinecap.php
  5644. * @param int $linecap <p>
  5645. * LINECAP_ constant
  5646. * </p>
  5647. * @return bool No value is returned.
  5648. */
  5649. public function setStrokeLineCap ($linecap) {}
  5650. /**
  5651. * (PECL imagick 2.0.0)<br/>
  5652. * Specifies the shape to be used at the corners of paths when they are stroked
  5653. * @link https://php.net/manual/en/imagickdraw.setstrokelinejoin.php
  5654. * @param int $linejoin <p>
  5655. * LINEJOIN_ constant
  5656. * </p>
  5657. * @return bool No value is returned.
  5658. */
  5659. public function setStrokeLineJoin ($linejoin) {}
  5660. /**
  5661. * (PECL imagick 2.0.0)<br/>
  5662. * Specifies the miter limit
  5663. * @link https://php.net/manual/en/imagickdraw.setstrokemiterlimit.php
  5664. * @param int $miterlimit <p>
  5665. * the miter limit
  5666. * </p>
  5667. * @return bool No value is returned.
  5668. */
  5669. public function setStrokeMiterLimit ($miterlimit) {}
  5670. /**
  5671. * (PECL imagick 2.0.0)<br/>
  5672. * Specifies the opacity of stroked object outlines
  5673. * @link https://php.net/manual/en/imagickdraw.setstrokeopacity.php
  5674. * @param float $stroke_opacity <p>
  5675. * stroke opacity. 1.0 is fully opaque
  5676. * </p>
  5677. * @return bool No value is returned.
  5678. */
  5679. public function setStrokeOpacity ($stroke_opacity) {}
  5680. /**
  5681. * (PECL imagick 2.0.0)<br/>
  5682. * Sets the vector graphics
  5683. * @link https://php.net/manual/en/imagickdraw.setvectorgraphics.php
  5684. * @param string $xml <p>
  5685. * xml containing the vector graphics
  5686. * </p>
  5687. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  5688. */
  5689. public function setVectorGraphics ($xml) {}
  5690. /**
  5691. * (PECL imagick 2.0.0)<br/>
  5692. * Destroys the current ImagickDraw in the stack, and returns to the previously pushed ImagickDraw
  5693. * @link https://php.net/manual/en/imagickdraw.pop.php
  5694. * @return bool <b>TRUE</b> on success and false on failure.
  5695. */
  5696. public function pop () {}
  5697. /**
  5698. * (PECL imagick 2.0.0)<br/>
  5699. * Clones the current ImagickDraw and pushes it to the stack
  5700. * @link https://php.net/manual/en/imagickdraw.push.php
  5701. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  5702. */
  5703. public function push () {}
  5704. /**
  5705. * (PECL imagick 2.0.0)<br/>
  5706. * Specifies the pattern of dashes and gaps used to stroke paths
  5707. * @link https://php.net/manual/en/imagickdraw.setstrokedasharray.php
  5708. * @param array $dashArray <p>
  5709. * array of floats
  5710. * </p>
  5711. * @return bool <b>TRUE</b> on success.
  5712. */
  5713. public function setStrokeDashArray (array $dashArray) {}
  5714. /**
  5715. * Sets the opacity to use when drawing using the fill or stroke color or texture. Fully opaque is 1.0.
  5716. *
  5717. * @param float $opacity
  5718. * @return void
  5719. * @since 3.4.1
  5720. */
  5721. public function setOpacity($opacity) { }
  5722. /**
  5723. * Returns the opacity used when drawing with the fill or stroke color or texture. Fully opaque is 1.0.
  5724. *
  5725. * @return float
  5726. * @since 3.4.1
  5727. */
  5728. public function getOpacity() { }
  5729. /**
  5730. * Sets the image font resolution.
  5731. *
  5732. * @param float $x
  5733. * @param float $y
  5734. * @return bool
  5735. * @since 3.4.1
  5736. */
  5737. public function setFontResolution($x, $y) { }
  5738. /**
  5739. * Gets the image X and Y resolution.
  5740. *
  5741. * @return array
  5742. * @since 3.4.1
  5743. */
  5744. public function getFontResolution() { }
  5745. /**
  5746. * Returns the direction that will be used when annotating with text.
  5747. * @return bool
  5748. * @since 3.4.1
  5749. */
  5750. public function getTextDirection() { }
  5751. /**
  5752. * Sets the font style to use when annotating with text. The AnyStyle enumeration acts as a wild-card "don't care" option.
  5753. *
  5754. * @param int $direction
  5755. * @return bool
  5756. * @since 3.4.1
  5757. */
  5758. public function setTextDirection($direction) { }
  5759. /**
  5760. * Returns the border color used for drawing bordered objects.
  5761. *
  5762. * @return ImagickPixel
  5763. * @since 3.4.1
  5764. */
  5765. public function getBorderColor() { }
  5766. /**
  5767. * Sets the border color to be used for drawing bordered objects.
  5768. * @param ImagickPixel $color
  5769. * @return bool
  5770. * @since 3.4.1
  5771. */
  5772. public function setBorderColor(ImagickPixel $color) { }
  5773. /**
  5774. * Obtains the vertical and horizontal resolution.
  5775. *
  5776. * @return string|null
  5777. * @since 3.4.1
  5778. */
  5779. public function getDensity() { }
  5780. /**
  5781. * Sets the vertical and horizontal resolution.
  5782. * @param string $density_string
  5783. * @return bool
  5784. * @since 3.4.1
  5785. */
  5786. public function setDensity($density_string) { }
  5787. }
  5788. /**
  5789. * @link https://php.net/manual/en/class.imagickpixeliterator.php
  5790. */
  5791. class ImagickPixelIterator implements Iterator {
  5792. /**
  5793. * (PECL imagick 2.0.0)<br/>
  5794. * The ImagickPixelIterator constructor
  5795. * @link https://php.net/manual/en/imagickpixeliterator.construct.php
  5796. * @param Imagick $wand
  5797. */
  5798. public function __construct (Imagick $wand) {}
  5799. /**
  5800. * (PECL imagick 2.0.0)<br/>
  5801. * Returns a new pixel iterator
  5802. * @link https://php.net/manual/en/imagickpixeliterator.newpixeliterator.php
  5803. * @param Imagick $wand
  5804. * @return bool <b>TRUE</b> on success. Throwing ImagickPixelIteratorException.
  5805. * @throws ImagickPixelIteratorException
  5806. */
  5807. public function newPixelIterator (Imagick $wand) {}
  5808. /**
  5809. * (PECL imagick 2.0.0)<br/>
  5810. * Returns a new pixel iterator
  5811. * @link https://php.net/manual/en/imagickpixeliterator.newpixelregioniterator.php
  5812. * @param Imagick $wand
  5813. * @param int $x
  5814. * @param int $y
  5815. * @param int $columns
  5816. * @param int $rows
  5817. * @return bool a new ImagickPixelIterator on success; on failure, throws ImagickPixelIteratorException
  5818. * @throws ImagickPixelIteratorException
  5819. */
  5820. public function newPixelRegionIterator (Imagick $wand, $x, $y, $columns, $rows) {}
  5821. /**
  5822. * (PECL imagick 2.0.0)<br/>
  5823. * Returns the current pixel iterator row
  5824. * @link https://php.net/manual/en/imagickpixeliterator.getiteratorrow.php
  5825. * @return int the integer offset of the row, throwing ImagickPixelIteratorException on error.
  5826. * @throws ImagickPixelIteratorException on error
  5827. */
  5828. public function getIteratorRow () {}
  5829. /**
  5830. * (PECL imagick 2.0.0)<br/>
  5831. * Set the pixel iterator row
  5832. * @link https://php.net/manual/en/imagickpixeliterator.setiteratorrow.php
  5833. * @param int $row
  5834. * @return bool <b>TRUE</b> on success.
  5835. */
  5836. public function setIteratorRow ($row) {}
  5837. /**
  5838. * (PECL imagick 2.0.0)<br/>
  5839. * Sets the pixel iterator to the first pixel row
  5840. * @link https://php.net/manual/en/imagickpixeliterator.setiteratorfirstrow.php
  5841. * @return bool <b>TRUE</b> on success.
  5842. */
  5843. public function setIteratorFirstRow () {}
  5844. /**
  5845. * (PECL imagick 2.0.0)<br/>
  5846. * Sets the pixel iterator to the last pixel row
  5847. * @link https://php.net/manual/en/imagickpixeliterator.setiteratorlastrow.php
  5848. * @return bool <b>TRUE</b> on success.
  5849. */
  5850. public function setIteratorLastRow () {}
  5851. /**
  5852. * (PECL imagick 2.0.0)<br/>
  5853. * Returns the previous row
  5854. * @link https://php.net/manual/en/imagickpixeliterator.getpreviousiteratorrow.php
  5855. * @return array the previous row as an array of ImagickPixelWand objects from the
  5856. * ImagickPixelIterator, throwing ImagickPixelIteratorException on error.
  5857. * @throws ImagickPixelIteratorException on error
  5858. */
  5859. public function getPreviousIteratorRow () {}
  5860. /**
  5861. * (PECL imagick 2.0.0)<br/>
  5862. * Returns the current row of ImagickPixel objects
  5863. * @link https://php.net/manual/en/imagickpixeliterator.getcurrentiteratorrow.php
  5864. * @return array a row as an array of ImagickPixel objects that can themselves be iterated.
  5865. */
  5866. public function getCurrentIteratorRow () {}
  5867. /**
  5868. * (PECL imagick 2.0.0)<br/>
  5869. * Returns the next row of the pixel iterator
  5870. * @link https://php.net/manual/en/imagickpixeliterator.getnextiteratorrow.php
  5871. * @return array the next row as an array of ImagickPixel objects, throwing
  5872. * ImagickPixelIteratorException on error.
  5873. * @throws ImagickPixelIteratorException on error
  5874. */
  5875. public function getNextIteratorRow () {}
  5876. /**
  5877. * (PECL imagick 2.0.0)<br/>
  5878. * Resets the pixel iterator
  5879. * @link https://php.net/manual/en/imagickpixeliterator.resetiterator.php
  5880. * @return bool <b>TRUE</b> on success.
  5881. */
  5882. public function resetIterator () {}
  5883. /**
  5884. * (PECL imagick 2.0.0)<br/>
  5885. * Syncs the pixel iterator
  5886. * @link https://php.net/manual/en/imagickpixeliterator.synciterator.php
  5887. * @return bool <b>TRUE</b> on success.
  5888. */
  5889. public function syncIterator () {}
  5890. /**
  5891. * (PECL imagick 2.0.0)<br/>
  5892. * Deallocates resources associated with a PixelIterator
  5893. * @link https://php.net/manual/en/imagickpixeliterator.destroy.php
  5894. * @return bool <b>TRUE</b> on success.
  5895. */
  5896. public function destroy () {}
  5897. /**
  5898. * (PECL imagick 2.0.0)<br/>
  5899. * Clear resources associated with a PixelIterator
  5900. * @link https://php.net/manual/en/imagickpixeliterator.clear.php
  5901. * @return bool <b>TRUE</b> on success.
  5902. */
  5903. public function clear () {}
  5904. /**
  5905. * @param Imagick $Imagick
  5906. */
  5907. public static function getpixeliterator (Imagick $Imagick) {}
  5908. /**
  5909. * @param Imagick $Imagick
  5910. * @param $x
  5911. * @param $y
  5912. * @param $columns
  5913. * @param $rows
  5914. */
  5915. public static function getpixelregioniterator (Imagick $Imagick, $x, $y, $columns, $rows) {}
  5916. public function key () {}
  5917. public function next () {}
  5918. public function rewind () {}
  5919. public function current () {}
  5920. public function valid () {}
  5921. }
  5922. /**
  5923. * @method clone()
  5924. * @link https://php.net/manual/en/class.imagickpixel.php
  5925. */
  5926. class ImagickPixel {
  5927. /**
  5928. * (PECL imagick 2.0.0)<br/>
  5929. * Returns the normalized HSL color of the ImagickPixel object
  5930. * @link https://php.net/manual/en/imagickpixel.gethsl.php
  5931. * @return array the HSL value in an array with the keys "hue",
  5932. * "saturation", and "luminosity". Throws ImagickPixelException on failure.
  5933. * @throws ImagickPixelException on failure
  5934. */
  5935. public function getHSL () {}
  5936. /**
  5937. * (PECL imagick 2.0.0)<br/>
  5938. * Sets the normalized HSL color
  5939. * @link https://php.net/manual/en/imagickpixel.sethsl.php
  5940. * @param float $hue <p>
  5941. * The normalized value for hue, described as a fractional arc
  5942. * (between 0 and 1) of the hue circle, where the zero value is
  5943. * red.
  5944. * </p>
  5945. * @param float $saturation <p>
  5946. * The normalized value for saturation, with 1 as full saturation.
  5947. * </p>
  5948. * @param float $luminosity <p>
  5949. * The normalized value for luminosity, on a scale from black at
  5950. * 0 to white at 1, with the full HS value at 0.5 luminosity.
  5951. * </p>
  5952. * @return bool <b>TRUE</b> on success.
  5953. */
  5954. public function setHSL ($hue, $saturation, $luminosity) {}
  5955. public function getColorValueQuantum () {}
  5956. /**
  5957. * @param $color_value
  5958. */
  5959. public function setColorValueQuantum ($color_value) {}
  5960. public function getIndex () {}
  5961. /**
  5962. * @param $index
  5963. */
  5964. public function setIndex ($index) {}
  5965. /**
  5966. * (PECL imagick 2.0.0)<br/>
  5967. * The ImagickPixel constructor
  5968. * @link https://php.net/manual/en/imagickpixel.construct.php
  5969. * @param string $color [optional] <p>
  5970. * The optional color string to use as the initial value of this object.
  5971. * </p>
  5972. */
  5973. public function __construct ($color = null) {}
  5974. /**
  5975. * (PECL imagick 2.0.0)<br/>
  5976. * Sets the color
  5977. * @link https://php.net/manual/en/imagickpixel.setcolor.php
  5978. * @param string $color <p>
  5979. * The color definition to use in order to initialise the
  5980. * ImagickPixel object.
  5981. * </p>
  5982. * @return bool <b>TRUE</b> if the specified color was set, <b>FALSE</b> otherwise.
  5983. */
  5984. public function setColor ($color) {}
  5985. /**
  5986. * (PECL imagick 2.0.0)<br/>
  5987. * Sets the normalized value of one of the channels
  5988. * @link https://php.net/manual/en/imagickpixel.setcolorvalue.php
  5989. * @param int $color <p>
  5990. * One of the Imagick color constants e.g. \Imagick::COLOR_GREEN or \Imagick::COLOR_ALPHA.
  5991. * </p>
  5992. * @param float $value <p>
  5993. * The value to set this channel to, ranging from 0 to 1.
  5994. * </p>
  5995. * @return bool <b>TRUE</b> on success.
  5996. */
  5997. public function setColorValue ($color, $value) {}
  5998. /**
  5999. * (PECL imagick 2.0.0)<br/>
  6000. * Gets the normalized value of the provided color channel
  6001. * @link https://php.net/manual/en/imagickpixel.getcolorvalue.php
  6002. * @param int $color <p>
  6003. * The color to get the value of, specified as one of the Imagick color
  6004. * constants. This can be one of the RGB colors, CMYK colors, alpha and
  6005. * opacity e.g (Imagick::COLOR_BLUE, Imagick::COLOR_MAGENTA).
  6006. * </p>
  6007. * @return float The value of the channel, as a normalized floating-point number, throwing
  6008. * ImagickPixelException on error.
  6009. * @throws ImagickPixelException on error
  6010. */
  6011. public function getColorValue ($color) {}
  6012. /**
  6013. * (PECL imagick 2.0.0)<br/>
  6014. * Clears resources associated with this object
  6015. * @link https://php.net/manual/en/imagickpixel.clear.php
  6016. * @return bool <b>TRUE</b> on success.
  6017. */
  6018. public function clear () {}
  6019. /**
  6020. * (PECL imagick 2.0.0)<br/>
  6021. * Deallocates resources associated with this object
  6022. * @link https://php.net/manual/en/imagickpixel.destroy.php
  6023. * @return bool <b>TRUE</b> on success.
  6024. */
  6025. public function destroy () {}
  6026. /**
  6027. * (PECL imagick 2.0.0)<br/>
  6028. * Check the distance between this color and another
  6029. * @link https://php.net/manual/en/imagickpixel.issimilar.php
  6030. * @param ImagickPixel $color <p>
  6031. * The ImagickPixel object to compare this object against.
  6032. * </p>
  6033. * @param float $fuzz <p>
  6034. * The maximum distance within which to consider these colors as similar.
  6035. * The theoretical maximum for this value is the square root of three
  6036. * (1.732).
  6037. * </p>
  6038. * @return bool <b>TRUE</b> on success.
  6039. */
  6040. public function isSimilar (ImagickPixel $color, $fuzz) {}
  6041. /**
  6042. * (No version information available, might only be in SVN)<br/>
  6043. * Check the distance between this color and another
  6044. * @link https://php.net/manual/en/imagickpixel.ispixelsimilar.php
  6045. * @param ImagickPixel $color <p>
  6046. * The ImagickPixel object to compare this object against.
  6047. * </p>
  6048. * @param float $fuzz <p>
  6049. * The maximum distance within which to consider these colors as similar.
  6050. * The theoretical maximum for this value is the square root of three
  6051. * (1.732).
  6052. * </p>
  6053. * @return bool <b>TRUE</b> on success.
  6054. */
  6055. public function isPixelSimilar (ImagickPixel $color, $fuzz) {}
  6056. /**
  6057. * (PECL imagick 2.0.0)<br/>
  6058. * Returns the color
  6059. * @link https://php.net/manual/en/imagickpixel.getcolor.php
  6060. * @param bool $normalized [optional] <p>
  6061. * Normalize the color values
  6062. * </p>
  6063. * @return array An array of channel values, each normalized if <b>TRUE</b> is given as param. Throws
  6064. * ImagickPixelException on error.
  6065. * @throws ImagickPixelException on error.
  6066. */
  6067. public function getColor ($normalized = false) {}
  6068. /**
  6069. * (PECL imagick 2.1.0)<br/>
  6070. * Returns the color as a string
  6071. * @link https://php.net/manual/en/imagickpixel.getcolorasstring.php
  6072. * @return string the color of the ImagickPixel object as a string.
  6073. */
  6074. public function getColorAsString () {}
  6075. /**
  6076. * (PECL imagick 2.0.0)<br/>
  6077. * Returns the color count associated with this color
  6078. * @link https://php.net/manual/en/imagickpixel.getcolorcount.php
  6079. * @return int the color count as an integer on success, throws
  6080. * ImagickPixelException on failure.
  6081. * @throws ImagickPixelException on failure.
  6082. */
  6083. public function getColorCount () {}
  6084. /**
  6085. * @param $colorCount
  6086. */
  6087. public function setColorCount ($colorCount) {}
  6088. /**
  6089. * Returns true if the distance between two colors is less than the specified distance. The fuzz value should be in the range 0-QuantumRange.<br>
  6090. * The maximum value represents the longest possible distance in the colorspace. e.g. from RGB(0, 0, 0) to RGB(255, 255, 255) for the RGB colorspace
  6091. * @link https://php.net/manual/en/imagickpixel.ispixelsimilarquantum.php
  6092. * @param string $pixel
  6093. * @param string $fuzz
  6094. * @return bool
  6095. * @since 3.3.0
  6096. */
  6097. public function isPixelSimilarQuantum($color, $fuzz) { }
  6098. /**
  6099. * Returns the color of the pixel in an array as Quantum values. If ImageMagick was compiled as HDRI these will be floats, otherwise they will be integers.
  6100. * @link https://php.net/manual/en/imagickpixel.getcolorquantum.php
  6101. * @return mixed The quantum value of the color element. Float if ImageMagick was compiled with HDRI, otherwise an int.
  6102. * @since 3.3.0
  6103. */
  6104. public function getColorQuantum() { }
  6105. /**
  6106. * Sets the color count associated with this color from another ImagickPixel object.
  6107. *
  6108. * @param ImagickPixel $srcPixel
  6109. * @return bool
  6110. * @since 3.4.1
  6111. */
  6112. public function setColorFromPixel(ImagickPixel $srcPixel) { }
  6113. }
  6114. // End of imagick v.3.2.0RC1
  6115. // Start of Imagick v3.3.0RC1
  6116. /**
  6117. * @link https://php.net/manual/en/class.imagickkernel.php
  6118. */
  6119. class ImagickKernel {
  6120. /**
  6121. * Attach another kernel to this kernel to allow them to both be applied in a single morphology or filter function. Returns the new combined kernel.
  6122. * @link https://php.net/manual/en/imagickkernel.addkernel.php
  6123. * @param ImagickKernel $imagickKernel
  6124. * @return void
  6125. * @since 3.3.0
  6126. */
  6127. public function addKernel(ImagickKernel $imagickKernel) { }
  6128. /**
  6129. * Adds a given amount of the 'Unity' Convolution Kernel to the given pre-scaled and normalized Kernel. This in effect adds that amount of the original image into the resulting convolution kernel. The resulting effect is to convert the defined kernels into blended soft-blurs, unsharp kernels or into sharpening kernels.
  6130. * @link https://php.net/manual/en/imagickkernel.addunitykernel.php
  6131. * @return void
  6132. * @since 3.3.0
  6133. */
  6134. public function addUnityKernel() { }
  6135. /**
  6136. * Create a kernel from a builtin in kernel. See https://www.imagemagick.org/Usage/morphology/#kernel for examples.<br>
  6137. * Currently the 'rotation' symbols are not supported. Example: $diamondKernel = ImagickKernel::fromBuiltIn(\Imagick::KERNEL_DIAMOND, "2");
  6138. * @link https://php.net/manual/en/imagickkernel.frombuiltin.php
  6139. * @param string $kernelType The type of kernel to build e.g. \Imagick::KERNEL_DIAMOND
  6140. * @param string $kernelString A string that describes the parameters e.g. "4,2.5"
  6141. * @return void
  6142. * @since 3.3.0
  6143. */
  6144. public static function fromBuiltin($kernelType, $kernelString) { }
  6145. /**
  6146. * Create a kernel from a builtin in kernel. See https://www.imagemagick.org/Usage/morphology/#kernel for examples.<br>
  6147. * Currently the 'rotation' symbols are not supported. Example: $diamondKernel = ImagickKernel::fromBuiltIn(\Imagick::KERNEL_DIAMOND, "2");
  6148. * @link https://php.net/manual/en/imagickkernel.frombuiltin.php
  6149. * @see https://www.imagemagick.org/Usage/morphology/#kernel
  6150. * @param array $matrix A matrix (i.e. 2d array) of values that define the kernel. Each element should be either a float value, or FALSE if that element shouldn't be used by the kernel.
  6151. * @param array $origin [optional] Which element of the kernel should be used as the origin pixel. e.g. For a 3x3 matrix specifying the origin as [2, 2] would specify that the bottom right element should be the origin pixel.
  6152. * @return ImagickKernel
  6153. * @since 3.3.0
  6154. */
  6155. public static function fromMatrix($matrix, $origin) { }
  6156. /**
  6157. * Get the 2d matrix of values used in this kernel. The elements are either float for elements that are used or 'false' if the element should be skipped.
  6158. * @link https://php.net/manual/en/imagickkernel.getmatrix.php
  6159. * @return array A matrix (2d array) of the values that represent the kernel.
  6160. * @since 3.3.0
  6161. */
  6162. public function getMatrix() { }
  6163. /**
  6164. * ScaleKernelInfo() scales the given kernel list by the given amount, with or without normalization of the sum of the kernel values (as per given flags).<br>
  6165. * The exact behaviour of this function depends on the normalization type being used please see https://www.imagemagick.org/api/morphology.php#ScaleKernelInfo for details.<br>
  6166. * Flag should be one of Imagick::NORMALIZE_KERNEL_VALUE, Imagick::NORMALIZE_KERNEL_CORRELATE, Imagick::NORMALIZE_KERNEL_PERCENT or not set.
  6167. * @link https://php.net/manual/en/imagickkernel.scale.php
  6168. * @see https://www.imagemagick.org/api/morphology.php#ScaleKernelInfo
  6169. * @return void
  6170. * @since 3.3.0
  6171. */
  6172. public function scale() { }
  6173. /**
  6174. * Separates a linked set of kernels and returns an array of ImagickKernels.
  6175. * @link https://php.net/manual/en/imagickkernel.separate.php
  6176. * @return void
  6177. * @since 3.3.0
  6178. */
  6179. public function seperate() { }
  6180. }