Comunidad de diseño web y desarrollo en internet online

FILTROS CON ACTIONSCRIPT

Citar            
MensajeEscrito el 03 Abr 2007 02:39 pm
Necesito manipular el filtro "ajustar color" de una caja de texto por medio de action script he estado buuscando como hacerlo y no lo he encontrado, he visto otros filtros menos este, alguien me puede sacar de este problema. En este filtro está brillo, contraste, saturación y matiz.

Por LEON_DE_JUDA

4 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 03 Abr 2007 11:47 pm

Por Zguillez

BOFH

10744 de clabLevel

85 tutoriales
17 articulos
3 ejemplos

Genero:Masculino   Bastard Operators From Hell Héroes Team Cristalab Editores

BCN

firefox
Citar            
MensajeEscrito el 10 Abr 2007 04:16 pm
Gracias Zguillez encontre información valiosa. Ahoar ¿será que con una matrix de colores puedo manejar contraste? ya encontre saturado y brillo... Como podría realizar un contraste es mi nuevo problema.

Por LEON_DE_JUDA

4 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 17 Abr 2007 01:05 am
Tengo este codigo para manejar saturación y brillo de un campo de texto:

Código :

_global.brillo=0;
function SATURACION()
{
 mitext.cacheAsBitmap = true;

 var listener:Object = new Object();
listener.mitext = mitext;
 listener.onMouseMove = function()
 {
    xPercent = 1 - (_xmouse/Stage.width);
    yPercent = 1 - (_ymouse/Stage.height);
    var matrix:Array = new Array();
    matrix = matrix.concat([yPercent, 0, 0, 0, brillo]); // red
    matrix = matrix.concat([0, xPercent, 0, 0, brillo]); // green
    matrix = matrix.concat([0, 0, xPercent, 0, brillo]); // blue
    matrix = matrix.concat([0, 0, 0, 1, 0]); // alpha

    var filter:ColorMatrixFilter = new ColorMatrixFilter(matrix);
    mitext.filters =new Array(filter);
 }

 Mouse.addListener(listener);
 listener.onMouseMove();
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function BRILLO()
{
   var brillo:Number = 100;
    var matrix:Array = new Array();
    matrix = matrix.concat([yPercent, 0, 0, 0, brillo]); // red
    matrix = matrix.concat([0, xPercent, 0, 0, brillo]); // green
    matrix = matrix.concat([0, 0, xPercent, 0, brillo]); // blue
    matrix = matrix.concat([0, 0, 0, 1, 0]); // alpha

    var filter:ColorMatrixFilter = new ColorMatrixFilter(matrix);
    mitext.filters =new Array(filter);
}


Lo que quiero es con esta misma matriz manejar contraste pero no se como hacerlo. Alguien sabe como hacerlo? o bueno si lo sabe hacer de otra manera tambien...

Por LEON_DE_JUDA

4 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 19 Abr 2007 02:18 pm
NO HAY NADIE QUE ME PUEDA AYUDAR...?

Por LEON_DE_JUDA

4 de clabLevel



Genero:Masculino  

msie
Citar            
MensajeEscrito el 02 Ene 2008 11:35 pm

Por clipdepelicula

237 de clabLevel



 

Valencia (España)

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.