Exemple #1
0
 public override object CopyBitmap(object handle)
 {
     return(new WpfImage(((SWMI.BitmapSource)DataConverter.AsImageSource(handle)).Clone()));
 }
 public void SetIcon(object imageBackend)
 {
     window.Icon = DataConverter.AsImageSource(imageBackend);
 }
Exemple #3
0
 public override object GetNativeImage(Image image)
 {
     return(DataConverter.AsImageSource(Toolkit.GetBackend(image)));
 }
        public object Create(object img)
        {
            Bitmap bmp = DataConverter.AsBitmap(img);

            return(new TextureBrush(bmp, System.Drawing.Drawing2D.WrapMode.Tile));
        }