/// <summary>
 /// Used as an example
 /// </summary>
 /// <param name="documentContainer"></param>
 /// <param name="graphicsTarget"></param>
 /// <param name="returnBitmap"></param>
 private static void ParseElements(DocumentContainer documentContainer, Graphics graphicsTarget, Bitmap returnBitmap)
 {
     foreach (ElementContainer element in documentContainer.GetElementsByTagName("input", new string[] { "greenshot" }))
     {
         if (element.attributes.ContainsKey("greenshot") && element.attributes["greenshot"] != null)
         {
             string greenshotAction = element.attributes["greenshot"];
             if ("hide".Equals(greenshotAction))
             {
                 PixelizationFilter.Apply(graphicsTarget, returnBitmap, element.rectangle, 4);
             }
             else if ("red".Equals(greenshotAction))
             {
                 using (Brush brush = new SolidBrush(Color.Red)) {
                     graphicsTarget.FillRectangle(brush, element.rectangle);
                 }
             }
         }
     }
 }
 private void Start()
 {
     filter = GetComponent <PixelizationFilter>();
     filter.SetMaterial(filters[currentFilterIndex]);
 }