summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-12-27 12:21:11 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-12-27 12:21:11 -0500
commitcd19b45ea5cdf58bd6c5dd4463244c08850bf0c2 (patch)
tree474c6cd8caca50c1778331da493b71bb3bac3814
parent7c7142c02902c1648fa368b7742d817737ba4e76 (diff)
downloadphoronix-test-suite-upstream-cd19b45ea5cdf58bd6c5dd4463244c08850bf0c2.zip
phoronix-test-suite-upstream-cd19b45ea5cdf58bd6c5dd4463244c08850bf0c2.tar.gz
phoronix-test-suite-upstream-cd19b45ea5cdf58bd6c5dd4463244c08850bf0c2.tar.xz
bilde_renderer: Implement png_image_to_type(), jpg_image_to_type(), and
image_copy_merge() functions in SWF renderer
-rw-r--r--pts-core/objects/bilde_renderer/bilde_swf_renderer.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/pts-core/objects/bilde_renderer/bilde_swf_renderer.php b/pts-core/objects/bilde_renderer/bilde_swf_renderer.php
index 0a463a7..b9c68cd 100644
--- a/pts-core/objects/bilde_renderer/bilde_swf_renderer.php
+++ b/pts-core/objects/bilde_renderer/bilde_swf_renderer.php
@@ -161,15 +161,17 @@ class bilde_swf_renderer extends bilde_renderer
public function png_image_to_type($file)
{
- return false; //TODO: Implement
+ return new SWFBitmap(fopen($file, "rb"));
}
public function jpg_image_to_type($file)
{
- return false; //TODO: Implement
+ return new SWFBitmap(fopen($file, "rb"));
}
public function image_copy_merge($source_image_object, $to_x, $to_y, $source_x = 0, $source_y = 0, $width = -1, $height = -1)
{
- return null; //TODO: Implement
+ // TODO: $source_x, $source_y, $width, $height need to be implemented
+ $added = $this->image->add($source_image_object);
+ $added->moveTo($to_x, $to_y);
}
public function convert_hex_to_type($hex)
{