0
我有两个图像,现在我想叠加图像,使其他图像出现在另一个图像的中心或左角,然后当两个图像覆盖,我可以将其存储在另一个新的图像对象,我想在代码背后只有不xaml,如何做到这一点?如何重叠图像并将它们存储在新图像对象中
if (((Grid)sender).Children.Count > 0)
{
gridBackground = (ImageBrush)(((Grid)sender).Background);
gridBackImage = new System.Windows.Controls.Image();
gridBackImage.Source = gridBackground.ImageSource;
}
System.Windows.Controls.Image imgRejectIcon;
if (((Grid)sender).Children.Count > 0)
{
imgRejectIcon = (System.Windows.Controls.Image)(((Grid)sender).Children[0]);
}
现在我想合并gridBackImage和imgRejection并将其存储在新的图像对象