我试图创建一个小应用程序,可以截取Windows桌面的屏幕截图。现在我有了一个非常经典的代码:
Private Function TakeScreenShot() As Bitmap
Dim screenSize As Size = New Size(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
Dim screenGrab As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
screenGrab.SetResolution(2400, 2400)
Dim g As Graphics = Graphics.FromImage(screenGrab)
g.CompositingQuality = CompositingQuality.HighQuality
g.InterpolationMode = InterpolationMode.HighQualityBicubic
g.SmoothingMode = SmoothingMode.HighQuality
g.CopyFromScreen(New Point(0, 0), New Point(0, 0), screenSize)
Return screenGrab
End Function但是我想要一个很好的截图。我不知道这是否可能,所以我问,但我可以得到一个更高的分辨率屏幕截图通过修改DPI (就像我做的那样),或者通过增加位图的初始大小?我一点也不知道所以我问..。
提前谢谢你
发布于 2014-11-29 17:27:59
你不能这么做。像素就像计算机图形中的原子。
你不能走得更深。
(是的,我知道,在现实世界中,或者在一些好莱坞电影里,莱昂纳多·莱昂纳多( Leonardo DiCaprio )确实可以做到,但让我们简单地说,原子是最小的单位。这不是物理交换,因为一个原因,我在那里没有帐户;
https://stackoverflow.com/questions/27203139
复制相似问题