build
- Ariadne >
- Library >
- Ariadne 2.4 >
- Manuals >
- Programmers Reference >
- Classes >
- Photo >
- PINP Methods >
(string) build()
Generates a new image and returns it as a binary string.
build() generates a new image, based on
the instructions on the photo manipulation cache. This cache is created by the image manipulation functions
Examples:
In class templates (PHP):
<?php
$this->convert("JPG");
$this->scale(150, 150, "FFFFFF");
echo $this->build();
$this->cleanup();
?>
In object templates (PINP):
<pinp>
if (!cached("mythumbnail")) {
convert("JPG");
scale(150, 150, "FFFFFF");
echo build();
cleanup();
savecache(999);
}
</pinp>

