
16/02/2008, 23:32
|
 | | | Fecha de Ingreso: junio-2006
Mensajes: 550
Antigüedad: 18 años, 9 meses Puntos: 7 | |
Re: Subir Imagen Continuación upload.php
Código:
// -----------
$handle->image_frame = 1;
$handle->image_frame_colors = '#FF0000 #FFFFFF #FFFFFF #0000FF';
TestProcess($handle, 'flat colored frame, 4 px wide', "\$foo->image_frame = 1;\n\$foo->image_frame_colors = '#FF0000 #FFFFFF\n #FFFFFF #0000FF';");
// -----------
$handle->image_frame = 2;
$handle->image_frame_colors = '#FFFFFF #BBBBBB #999999 #FF0000 #666666 #333333 #000000';
TestProcess($handle, 'crossed colored frame, 7 px wide', "\$foo->image_frame = 2;\n\$foo->image_frame_colors = '#FFFFFF #BBBBBB\n #999999 #FF0000\n #666666 #333333\n #000000';");
// -----------
$handle->image_overlay_color = '#FFFFFF';
$handle->image_overlay_percent = 50;
$handle->image_rotate = '180';
$handle->image_tint_color = '#FF0000';
TestProcess($handle, 'tint and 50% overlay and 180\' rotation', "\$foo->image_overlay_color = '#FFFFFF';\n\$foo->image_overlay_percent = 50;\n\$foo->image_rotate = '180';\n\$foo->image_tint_color = '#FF0000';");
// -----------
$handle->image_tint_color = '#FF0000';
TestProcess($handle, '#FF0000 tint', "\$foo->image_tint_color = '#FF0000';");
// -----------
$handle->image_overlay_color = '#FF0000';
$handle->image_overlay_percent = 50;
TestProcess($handle, '50% overlay #FF0000', "\$foo->image_overlay_color = '#FF0000';\n\$foo->image_overlay_percent = 50;");
// -----------
$handle->image_overlay_color = '#0000FF';
$handle->image_overlay_percent = 5;
TestProcess($handle, '5% overlay #0000FF', "\$foo->image_overlay_color = '#0000FF';\n\$foo->image_overlay_percent = 5;");
// -----------
$handle->image_overlay_color = '#FFFFFF';
$handle->image_overlay_percent = 90;
TestProcess($handle, '90% overlay #FFFFFF', "\$foo->image_overlay_color = '#FFFFFF';\n\$foo->image_overlay_percent = 90;");
// -----------
$handle->image_brightness = 25;
TestProcess($handle, 'brightness 25', "\$foo->image_brightness = 25;");
// -----------
$handle->image_brightness = -25;
TestProcess($handle, 'brightness -25', "\$foo->image_brightness = -25;");
// -----------
$handle->image_contrast = 75;
TestProcess($handle, 'contrast 75', "\$foo->image_contrast = 75;");
// -----------
$handle->image_threshold = 20;
TestProcess($handle, 'threshold filter', "\$foo->image_threshold = 20;");
// -----------
$handle->image_greyscale = true;
TestProcess($handle, 'greyscale', "\$foo->image_greyscale = true;");
// -----------
$handle->image_negative = true;
TestProcess($handle, 'negative', "\$foo->image_negative = true;");
// -----------
$handle->image_brightness = 75;
$handle->image_resize = true;
$handle->image_y = 200;
$handle->image_x = 100;
$handle->image_rotate = '90';
$handle->image_overlay_color = '#FF0000';
$handle->image_overlay_percent = 50;
$handle->image_text = 'verot.net';
$handle->image_text_color = '#0000FF';
$handle->image_text_background = '#FFFFFF';
$handle->image_text_position = 'BL';
$handle->image_text_padding_x = 10;
$handle->image_text_padding_y = 2;
TestProcess($handle, 'brightness, resize, rotation, overlay & label', "\$foo->image_brightness = 75;\n\$foo->image_resize = true;\n\$foo->image_y = 200;\n\$foo->image_x = 100;\n\$foo->image_rotate = '90';\n\$foo->image_overlay_color = '#FF0000';\n\$foo->image_overlay_percent = 50;\n\$foo->image_text = 'verot.net';\n\$foo->image_text_color = '#0000FF';\n\$foo->image_text_background = '#FFFFFF';\n\$foo->image_text_position = 'BL';\n\$foo->image_text_padding_x = 10;\n\$foo->image_text_padding_y = 2;");
// -----------
$handle->image_text = 'verot.net';
$handle->image_text_color = '#000000';
$handle->image_text_percent = 80;
$handle->image_text_background = '#FFFFFF';
$handle->image_text_background_percent = 70;
$handle->image_text_font = 5;
$handle->image_text_padding = 20;
TestProcess($handle, 'overlayed transparent label', "\$foo->image_text = 'verot.net';\n\$foo->image_text_color = '#000000';\n\$foo->image_text_percent = 80;\n\$foo->image_text_background = '#FFFFFF';\n\$foo->image_text_background_percent = 70;\n\$foo->image_text_font = 5;\n\$foo->image_text_padding = 20;");
// -----------
$handle->image_text = 'verot.net';
$handle->image_text_direction = 'v';
$handle->image_text_background = '#000000';
$handle->image_text_font = 2;
$handle->image_text_position = 'BL';
$handle->image_text_padding_x = 2;
$handle->image_text_padding_y = 8;
TestProcess($handle, 'overlayed vertical plain label bottom left', "\$foo->image_text = 'verot.net';\n\$foo->image_text_direction = 'v';\n\$foo->image_text_background = '#000000';\n\$foo->image_text_font = 2;\n\$foo->image_text_position = 'BL';\n\$foo->image_text_padding_x = 2;\n\$foo->image_text_padding_y = 8;");
|