

Each pixel has properties that can be accessed with the dot syntax. for pixel in image: Use pixel in here Accessing data inside a pixel.
Simpleimage class code#
This capability gives you easy access to each of the pixels in the image so that you can apply the same code to all of them.

* array $flags Optional override of default flags. image SimpleImage(filename) For-eachloop over all pixels in the image.

* string $image An image file or a data URI to load. * A PHP class that makes working with images as simple as possible.

SimpleImage Class _construct Function _destruct Function setFlag Function getFlag Function fromDataUri Function fromFile Function fromNew Function fromString Function generate Function toDataUri Function toDownload Function toFile Function toScreen Function toString Function keepWithin Function getAspectRatio Function getExif Function getHeight Function getMimeType Function getOrientation Function getResolution Function getWidth Function imageCopyMergeAlpha Function autoOrient Function bestFit Function crop Function duotone Function fitToHeight Function fitToWidth Function flip Function maxColors Function overlay Function resize Function resolution Function rotate Function text Function textBox Function textSeparateLines Function textSeparateWords Function thumbnail Function arc Function border Function dot Function ellipse Function fill Function line Function polygon Function rectangle Function roundedRectangle Function excludeInsideColor Function blur Function brighten Function colorize Function contrast Function darken Function desaturate Function edgeDetect Function emboss Function invert Function opacity Function pixelate Function sepia Function sharpen Function sketch Function allocateColor Function adjustColor Function darkenColor Function extractColors Function getColorAt Function lightenColor Function normalizeColor Function
