Lines Matching refs:example
27 The following is a very basic example of using the library:
32 $source = __DIR__ . '/example.gif';
33 $destination = __DIR__ . '/example.ico';
39 It takes a source file named `example.gif` and produce an output ICO file named `example.ico`. `exa…
41 …ize. The PHP ICO library opens up this feature of the ICO format as shown in the following example:
46 $source = __DIR__ . '/example.gif';
47 $destination = __DIR__ . '/example.ico';
53 …example, this example produces `example.ico` from the `example.gif` source file. In this example, …
55 …lored for their specific dimensions for the smaller sizes. The following example shows how the PHP…
60 $destination = dirname( __FILE__ ) . '/example.ico';
64 $ico->add_image( __DIR__ . '/example-small.gif', [ [16, 16], [24, 24], [32, 32] ] );
65 $ico->add_image( __DIR__ . '/example-medium.gif', [ [48, 48], [96, 96] ] );
66 $ico->add_image( __DIR__ . '/example-large.gif', [ [128, 128] ] );
71 …example creates a single ICO file named `example.ico` just as the previous examples. The differenc…
75 Since the PHP ICO library was created to generate favicon files, the following example shows how to…
80 $source = __DIR__ . '/example.gif';
81 $destination = __DIR__ . '/example.ico';