return $this->_tmpdir;
}
+ /**
+ * Utility function to zero out cached geometry information. Shouldn't
+ * really be called from client code, but is needed since Effects may need
+ * to clear these.
+ *
+ */
+ public function clearGeometry()
+ {
+ $this->_height = 0;
+ $this->_width = 0;
+ }
+
protected function _logDebug($message)
{
if (!empty($this->_logger)) {
}
}
+ /**
+ * Return point size for font
+ */
+ public static function getFontSize($fontsize)
+ {
+ switch ($fontsize) {
+ case 'medium':
+ $point = 18;
+ break;
+ case 'large':
+ $point = 24;
+ break;
+ case 'giant':
+ $point = 30;
+ break;
+ default:
+ $point = 12;
+ }
+
+ return $point;
+ }
+
}
\ No newline at end of file
@unlink($tmpout);
}
-
- /**
- * Return point size for font
- */
- public static function getFontSize($fontsize)
- {
- switch ($fontsize) {
- case 'medium':
- $point = 18;
- break;
- case 'large':
- $point = 24;
- break;
- case 'giant':
- $point = 30;
- break;
- default:
- $point = 12;
- }
-
- return $point;
- }
-
-
/**
* Get the version of the convert command available. This needs to be
* publicly visable since it's used by various Effects.