开发者

Overlay two images using WriteableBitmap

开发者 https://www.devze.com 2023-01-10 01:16 出处:网络
I have got two images, say png and jpeg and I need to overlay them. In WPF it can be done by DrawingGroup (unavailable in SL). I guess it mig开发者_JAVA技巧ht be done

I have got two images, say png and jpeg and I need to overlay them. In WPF it can be done by DrawingGroup (unavailable in SL). I guess it mig开发者_JAVA技巧ht be done with WriteableBitmap instead. Do you have any idea how to do that?

Thanks in advance!

Cheers


Just use a Grid instead:-

 <Grid>
    <Image Source="MyPic1.png" VerticalAlignment="Top" HorizontalAlignment="Left" />
    <Image Source="MyPic2.jpg" VerticalAlignment="Top" HorizontalAlignment="Left" />
 </Grid>
0

精彩评论

暂无评论...
验证码 换一张
取 消