Browse Source

fixed outputimage drawImage

Alexander Hendrich 10 years ago
parent
commit
5a8c492255
2 changed files with 7 additions and 7 deletions
  1. 6 6
      bbiwarg/Output/OutputImage.cs
  2. 1 1
      bbiwarg/Parameters.cs

+ 6 - 6
bbiwarg/Output/OutputImage.cs

@@ -221,23 +221,23 @@ namespace bbiwarg.Output
             if (color.R != 0)
             {
                 if (color.R != byte.MaxValue)
-                    this[0] = image.Mul((float)color.R / byte.MaxValue);
+                    this[0] = this[0].Or(image.Mul((float)color.R / byte.MaxValue));
                 else
-                    this[0] = image;
+                    this[0] = this[0].Or(image);
             }
             if (color.G != 0)
             {
                 if (color.G != byte.MaxValue)
-                    this[1] = image.Mul((float)color.G / byte.MaxValue);
+                    this[1] = this[1].Or(image.Mul((float)color.G / byte.MaxValue));
                 else
-                    this[1] = image;
+                    this[1] = this[1].Or(image);
             }
             if (color.B != 0)
             {
                 if (color.B != byte.MaxValue)
-                    this[2] = image.Mul((float)color.B / byte.MaxValue);
+                    this[2] = this[2].Or(image.Mul((float)color.B / byte.MaxValue));
                 else
-                    this[2] = image;
+                    this[2] = this[2].Or(image);
             }
         }
     }

+ 1 - 1
bbiwarg/Parameters.cs

@@ -44,7 +44,7 @@ namespace bbiwarg
         /// <summary>
         /// the input source type
         /// </summary>
-        public static readonly InputType InputSource = InputType.Camera;
+        public static readonly InputType InputSource = InputType.Movie;
 
         /// <summary>
         /// path to the movie file used as input source