About

Tools
Log Analysis
Load Test
Site Check

Consulting

Cloud

Reports

Samples

Contact

Privacy

Credits

Snippets

Home

E-insights High Performance Systems Limited.


Smooth, Efficient, Effective!


Small code snippets - as is, warts and all.

shape & combine
shape - php code that accepts simple drawing instructions along with color and size information and creates an image. Used in creating icons so that colors and sizes can be easily changed. combine - php code that accepts a list of image file names and information on how to combine them into a single image. Both make use of several helper classes and a functions:

  • ColorHelper - manages gd image colors defined as color names or '#hexadecimal' strings.
  • ImageHelper - manages transformations associated with an image.
  • StateHeper - manages nested state information for ImageHelper.
  • setv.php - encapusulates argument handling.

    download

© 2017, E-insights Ltd.