Microsoft.Maui.Graphics icon indicating copy to clipboard operation
Microsoft.Maui.Graphics copied to clipboard

How I can use the repo to overlay an image on a base image at specific location?

Open zydjohnHotmail opened this issue 2 years ago • 1 comments

Hello: As .NET 6.0 is rather new, I want to know if I can overlay an image on a base image at specific location. For example, I have one base image called @"D:\Images\BaseImage.png", its width is 1280PX with height is 720PX, and I have another small image called: @"D:\Images\Overlay1.png", its width is 200PX with height 100PX. I want to draw the small overlay image on top of the base image at the location: (800, 200), and show the merged image in a pictureBox1. I can do this easily with Python, but I want to know if I can do the same in WinForms App in my Windows 10 PC. Please advise! (I have both Visual Studio 2019 and 2022 for C#) Thanks,

zydjohnHotmail avatar Nov 26 '21 10:11 zydjohnHotmail

WinForms on .NET 6.0 is dotnet/winforms repo.

You'll want to ask there. Or ask at StackOverflow, with tags .net-6.0 winforms.

BTW, official docs for WinForms .NET 6.


If you are updating an older WinForms app, see also Upgrade a Windows Forms App to .NET 6 with the .NET Upgrade Assistant.

ToolmakerSteve avatar Dec 11 '21 04:12 ToolmakerSteve