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); }
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)); }