Comunidad de diseño web y desarrollo en internet online

cargar un codigo

Citar            
MensajeEscrito el 29 Abr 2009 03:16 pm
:cry: Como podria cargar el siguiente codigo con flash en mi webcam en tiempo real??

Código ActionScript :

package com.neave.webcam.effects.color
{
import flash.display.*;
import flash.filters.*;
import flash.geom.*;
import com.neave.webcam.effects.*;

public class GlowEffect extends AbstractEffect
{
private var edge:ConvolutionFilter;
private var blur:BlurFilter;

public function GlowEffect(source:IBitmapDrawable, targetBitmap:BitmapData)
{
super(source, targetBitmap, "Glow");

createGlow();
}

private function createGlow():void
{
// Increase contrast
color = new ColorTransform(2, 2, 2, 1, -100, -100, -100);

// Set up a large horizontal edge convoluton filter
var m:Array =
[
-100, -100, -100,
100, 100, 100,
0, 0, 0
];
edge = new ConvolutionFilter(3, 3, m, 9);

// Blur the edges to create a smooth glow
blur = new BlurFilter(8, 8, 2);
}

override public function draw():void
{
super.draw();
sourceBitmap.applyFilter(sourceBitmap, rect, point, blur);
targetBitmap.applyFilter(sourceBitmap, rect, point, edge);
}
}
}



Lo encontre por la red en la siguiente pagina junto con otros muchos efectos, hay un link para descargarlos

www.neave.com/webcam

como podría aplicar lo mismo en mi ordenador??? utilizarlo con flash y sobre todo, poder comprenderlo!!!!

Muchas gracias

Por bashmati

5 de clabLevel



 

msie
Citar            
MensajeEscrito el 29 Abr 2009 04:14 pm
Para comprender algo hay que tener la base, y la base de esto son los filtros ... de hecho es mucho mas simple aplicar un filtro a una imágen siguiendo la ayuda de Flash que con esta clase ... busca BlurFilter en la ayuda y copia/pega los ejemplos.

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

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