WriteableBitmap 转换隐藏对象时问题,亟待解决。
WriteableBitmap wbRoles = new WriteableBitmap(LayoutRolesHide, null);
byte[] RolesByte = Convert.FromBase64String(GetBase64Image(wbRoles));
System.IO.File.WriteAllBytes(@"E:\Roles.jpg", RolesByte);
LayoutRolesHide 是一个隐藏的Grid对象,如果不隐藏可以正常转自己,最终生成图片,
但是一隐藏 转出来图片就不对。 字节明显少很多。
对象隐藏即生成图片为空文件