Using System.Drawing, it is easy to get the HorizontalResolution and VerticalResolution of an image file. In .NET 6, System.Drawing.common will be disabled (by
I am trying to add a watermark for a TextBox. The TextBox.Background is a System.Windows.Media.Brush. I need the Graphics.FillRectangle(System.Drawing.Brush....