带有Image Xamarin表单的水印/合并文本

时间:2017-11-21 08:47:00

标签: android ios xamarin.forms renderer

使用 ImageSource 和文字创建水印的任何方法?用于 ios android 的Xamarin表单? 或者是否可以使用两个平台的自定义渲染器进行此操作?

我可以拍摄2张图片,但不能拍摄图片和文字

IOS:

image1.Draw (new CoreGraphics.CGRect (
                0, 0, UIScreen.MainScreen.Bounds.Width, UIScreen.MainScreen.Bounds.Height));

image2.Draw (new CoreGraphics.CGRect (
UIScreen.MainScreen.Bounds.Width / 4,
UIScreen.MainScreen.Bounds.Height / 4,
UIScreen.MainScreen.Bounds.Width / 2,
UIScreen.MainScreen.Bounds.Height / 2));

combinedImage = UIGraphics.GetImageFromCurrentImageContext ();
UIGraphics.EndImageContext ();

我需要android和ios的例子:

enter image description here

0 个答案:

没有答案