/// <summary> /// turns a System.Drawing.Size into the WPF double,double version /// </summary> /// <param name="s"> /// </param> /// <returns> /// </returns> protected static Size SizeConverter(System.Drawing.Size s) { return(new Size(s.Width, s.Height)); }
internal static extern int DwmQueryThumbnailSourceSize(IntPtr thumb, out System.Drawing.Size size);
public static Size ToWpf(this System.Drawing.Size s) { return(new Size(s.Width, s.Height)); }