开发者

Using a System.Drawing.Image as the centered part of a larger image?

开发者 https://www.devze.com 2023-01-10 03:30 出处:网络
I have a System.Drawing.Image that I would like to use as the centered portion for a new, larger image.I’m given the dimensions of the (always) lar开发者_高级运维ger image and the idea is to make tha

I have a System.Drawing.Image that I would like to use as the centered portion for a new, larger image. I’m given the dimensions of the (always) lar开发者_高级运维ger image and the idea is to make that image all white and overlay its center with the first image. Is there a way to do this using GDI+? Some combination of TextureBrush and the Graphic class perhaps? I’m open to suggestions. Thanks!


Lots of similar questions, here's one that I think will show you the basics:

How could I position multiple transparent PNGs onto a JPG using c# and asp.net?

0

精彩评论

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