diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-12-18 20:22:21 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-12-18 20:22:21 +0000 |
commit | 8b13fd34117e878f0ebbbe9969dbe89c9640b2c7 (patch) | |
tree | 4837c314e21f6e56016cf7bf04e09d53f49c1685 /src/exceptions | |
parent | a90ca23ccd7f2ed57b2dde9d5a361d34fdab01a1 (diff) | |
download | zetacomponents-graph-8b13fd34117e878f0ebbbe9969dbe89c9640b2c7.zip zetacomponents-graph-8b13fd34117e878f0ebbbe9969dbe89c9640b2c7.tar.gz |
- Fixed support for bitmaps in flash driver
# - Removed exception, because scaling bimaps is possible, and we do not
# need to throw an exception in this case.
# - Fixed test cases, because PNGs are supported, even the documentation
# says otherwise
Diffstat (limited to 'src/exceptions')
-rw-r--r-- | src/exceptions/flash_bitmap_boundings.php | 35 | ||||
-rw-r--r-- | src/exceptions/flash_bitmap_type.php | 2 |
2 files changed, 1 insertions, 36 deletions
diff --git a/src/exceptions/flash_bitmap_boundings.php b/src/exceptions/flash_bitmap_boundings.php deleted file mode 100644 index b158ec9..0000000 --- a/src/exceptions/flash_bitmap_boundings.php +++ /dev/null @@ -1,35 +0,0 @@ -<?php -/** - * File containing the ezcGraphFlashBitmapBoundingsException class - * - * @package Graph - * @version //autogentag// - * @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved. - * @license http://ez.no/licenses/new_bsd New BSD License - */ -/** - * Flash does not support bitmap scaling, so that this exceptions is thrown - * when an image does not have the requested size. - * - * @package Graph - * @version //autogentag// - */ -class ezcGraphFlashBitmapBoundingsException extends ezcGraphException -{ - /** - * Constructor - * - * @param int $imageWidth - * @param int $imageHeight - * @param int $reqWidth - * @param int $reqHeight - * @return void - * @ignore - */ - public function __construct( $imageWidth, $imageHeight, $reqWidth, $reqHeight ) - { - parent::__construct( "Flash does not support bitmap scaling, so that it is up to you to scale the image '$imageWidth' * '$imageHeight' to '$reqWidth' * '$reqHeight'." ); - } -} - -?> diff --git a/src/exceptions/flash_bitmap_type.php b/src/exceptions/flash_bitmap_type.php index 1e0e850..4b0d724 100644 --- a/src/exceptions/flash_bitmap_type.php +++ b/src/exceptions/flash_bitmap_type.php @@ -24,7 +24,7 @@ class ezcGraphFlashBitmapTypeException extends ezcGraphException */ public function __construct() { - parent::__construct( "Flash can only read non interlaced JPEGs." ); + parent::__construct( "Flash can only read JPEGs and PNGs." ); } } |