blob: 584629a0664aca433c8acdd8a84a214f70c328c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/**
* Neave Webcam // Normal Effect
*
* Copyright (C) 2008 Paul Neave
* http://www.neave.com/
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation at http://www.gnu.org/licenses/gpl.html
*/
package com.neave.webcam.effects
{
import flash.display.*;
public class NormalEffect extends AbstractEffect
{
/**
* Creates a normal effect for copying the source object into the target bitmap data without modification
*
* @param source The source object to use for the effect
* @param targetBitmap The target bitmap data to draw the resulting effect into
*/
public function NormalEffect(source:IBitmapDrawable, targetBitmap:BitmapData)
{
super(source, targetBitmap, "Normal");
}
/**
* Draws the normal effect
*/
override public function draw():void
{
super.draw();
targetBitmap.copyPixels(sourceBitmap, rect, point);
}
}
}
|