16/02/2008, 23:42
|
| | | Fecha de Ingreso: junio-2006
Mensajes: 550
Antigüedad: 18 años, 7 meses Puntos: 7 | |
Re: Subir Imagen Continuación class.upload.php
Código:
/**
* Sets the color of the reflection background (deprecated)
*
* Value is an hexadecimal color, such as #FFFFFF
*
* Default value is #FFFFFF
*
* This setting is relevant only if {@link image_reflection_height} is set
*
* This setting is now deprecated in favor of {@link image_default_color}
*
* @access public
* @var string;
*/
var $image_reflection_color;
/**
* Sets the initial opacity of the reflection
*
* Value is an integer between 0 (no opacity) and 100 (full opacity).
* The reflection will start from {@link image_reflection_opacity} and end up at 0
*
* Default value is 60
*
* This setting is relevant only if {@link image_reflection_height} is set
*
* @access public
* @var integer
*/
var $image_reflection_opacity;
/**
* Flips the image vertically or horizontally
*
* Value is either 'h' or 'v', as in horizontal and vertical
*
* Default value is null (no flip)
*
* @access public
* @var string;
*/
var $image_flip;
/**
* Rotates the image by increments of 45 degrees
*
* Value is either 90, 180 or 270
*
* Default value is null (no rotation)
*
* @access public
* @var string;
*/
var $image_rotate;
/**
* Crops an image
*
* Values are four dimensions, or two, or one (CSS style)
* They represent the amount cropped top, right, bottom and left.
* These values can either be in an array, or a space separated string.
* Each value can be in pixels (with or without 'px'), or percentage (of the source image)
*
* For instance, are valid:
* <pre>
* $foo->image_crop = 20 OR array(20);
* $foo->image_crop = '20px' OR array('20px');
* $foo->image_crop = '20 40' OR array('20', 40);
* $foo->image_crop = '-20 25%' OR array(-20, '25%');
* $foo->image_crop = '20px 25%' OR array('20px', '25%');
* $foo->image_crop = '20% 25%' OR array('20%', '25%');
* $foo->image_crop = '20% 25% 10% 30%' OR array('20%', '25%', '10%', '30%');
* $foo->image_crop = '20px 25px 2px 2px' OR array('20px', '25%px', '2px', '2px');
* $foo->image_crop = '20 25% 40px 10%' OR array(20, '25%', '40px', '10%');
* </pre>
*
* If a value is negative, the image will be expanded, and the extra parts will be filled with black
*
* Default value is null (no cropping)
*
* @access public
* @var string OR array;
*/
var $image_crop;
/**
* Adds a bevel border on the image
*
* Value is a positive integer, representing the thickness of the bevel
*
* If the bevel colors are the same as the background, it makes a fade out effect
*
* Default value is null (no bevel)
*
* @access public
* @var integer
*/
var $image_bevel;
/**
* Top and left bevel color
*
* Value is a color, in hexadecimal format
* This setting is used only if {@link image_bevel} is set
*
* Default value is #FFFFFF
*
* @access public
* @var string;
*/
var $image_bevel_color1;
/**
* Right and bottom bevel color
*
* Value is a color, in hexadecimal format
* This setting is used only if {@link image_bevel} is set
*
* Default value is #000000
*
* @access public
* @var string;
*/
var $image_bevel_color2;
/**
* Adds a single-color border on the outer of the image
*
* Values are four dimensions, or two, or one (CSS style)
* They represent the border thickness top, right, bottom and left.
* These values can either be in an array, or a space separated string.
* Each value can be in pixels (with or without 'px'), or percentage (of the source image)
*
* See {@link image_crop} for valid formats
*
* If a value is negative, the image will be cropped.
* Note that the dimensions of the picture will be increased by the borders' thickness
*
* Default value is null (no border)
*
* @access public
* @var integer
*/
var $image_border;
/**
* Border color
*
* Value is a color, in hexadecimal format.
* This setting is used only if {@link image_border} is set
*
* Default value is #FFFFFF
*
* @access public
* @var string;
*/
var $image_border_color;
/**
* Adds a multi-color frame on the outer of the image
*
* Value is an integer. Two values are possible for now:
* 1 for flat border, meaning that the frame is mirrored horizontally and vertically
* 2 for crossed border, meaning that the frame will be inversed, as in a bevel effect
*
* The frame will be composed of colored lines set in {@link image_frame_colors}
*
* Note that the dimensions of the picture will be increased by the borders' thickness
*
* Default value is null (no frame)
*
* @access public
* @var integer
*/
var $image_frame;
/**
* Sets the colors used to draw a frame
*
* Values is a list of n colors in hexadecimal format.
* These values can either be in an array, or a space separated string.
*
* The colors are listed in the following order: from the outset of the image to its center
*
* For instance, are valid:
* <pre>
* $foo->image_frame_colors = '#FFFFFF #999999 #666666 #000000';
* $foo->image_frame_colors = array('#FFFFFF', '#999999', '#666666', '#000000');
* </pre>
*
* This setting is used only if {@link image_frame} is set
*
* Default value is '#FFFFFF #999999 #666666 #000000'
*
* @access public
* @var string OR array;
*/
var $image_frame_colors;
/**
* Adds a watermark on the image
*
* Value is a local image filename, relative or absolute. GIF, JPG, BMP and PNG are supported, as well as PNG alpha.
*
* If set, this setting allow the use of all other settings starting with image_watermark_
*
* Default value is null
*
* @access public
* @var string;
*/
var $image_watermark;
/**
* Sets the watermarkposition within the image
*
* Value is one or two out of 'TBLR' (top, bottom, left, right)
*
* The positions are as following: TL T TR
* L R
* BL B BR
*
* Default value is null (centered, horizontal and vertical)
*
* Note that is {@link image_watermark_x} and {@link image_watermark_y} are used, this setting has no effect
*
* @access public
* @var string;
*/
var $image_watermark_position;
/**
* Sets the watermark absolute X position within the image
*
* Value is in pixels, representing the distance between the top of the image and the watermark
* If a negative value is used, it will represent the distance between the bottom of the image and the watermark
*
* Default value is null (so {@link image_watermark_position} is used)
*
* @access public
* @var integer
*/
var $image_watermark_x;
|