summaryrefslogtreecommitdiff
path: root/webcam/webcam/effects/NormalEffect.as
diff options
context:
space:
mode:
Diffstat (limited to 'webcam/webcam/effects/NormalEffect.as')
-rwxr-xr-xwebcam/webcam/effects/NormalEffect.as38
1 files changed, 38 insertions, 0 deletions
diff --git a/webcam/webcam/effects/NormalEffect.as b/webcam/webcam/effects/NormalEffect.as
new file mode 100755
index 0000000..b97e896
--- /dev/null
+++ b/webcam/webcam/effects/NormalEffect.as
@@ -0,0 +1,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);
+ }
+ }
+} \ No newline at end of file