public void mask(PImage maskImg)
 {
     Masks.Add (maskImg);
 }
 public void copy(PImage srcImg, int sx, int sy, int swidth, int sheight, int dx, int dy, int dwidth, int dheight)
 {
     throw new NotSupportedException ();
 }
Example #3
0
 public void image(PImage img, double x, double y)
 {
     image (img, x, y, img.width, img.height);
 }
Example #4
0
 public void image(PImage img, double x, double y, double width, double height)
 {
     Host.DrawBitmap (img.Image, new Rect (0, 0, img.Image.Width, img.Image.Height), ToRectF (x, y, width, height), HostPaint);
     // FIXME: add mask (as alpha channel)
     //foreach (var mask in img.Masks)
     //	image (mask, x, y, width, height);
 }
Example #5
0
        public void image(PImage img, double x, double y, double width, double height)
        {
            var i = img.Image;
            Host.Children.Add (i);
            img.SetSource ();
            i.UpdateLayout ();
            // FIXME: width/height calculation is not done yet.
            //			if (img.width != width || img.height != height)
            //				i.Arrange (new Rect (0, 0, width, height));

            // FIXME: add mask (as alpha channel)
            //foreach (var mask in img.Masks)
            //	image (mask, x, y, width, height);
        }