A
AcroNick
Guest
The rectangular area screen-grab in my application works fine in all displays up to HD, but a user reports that when employed in his 4k screen laptop it returns only (presumably) the top-left portion of what is requested. I use normal VB screen dimension / navigation techniques with a semi-transparent form overlay, and when required set the form to fully transparent and grab what's underneath it -
Dim Pleft As Integer = Me.Left
Dim Ptop As Integer = Me.Top
Dim Pwidth As Integer = Me.Width
Dim Pheight As Integer = Me.Height
Dim Img1 As New Bitmap(Pwidth, Pheight)
Dim G1 As Graphics = Graphics.FromImage(Img1)
G1.CopyFromScreen(Pleft, Ptop, 0, 0, Img1.Size)
but it looks like these fail on a 4k screen without some sort of scaling overview. I don't have such a screen and also I can't find any relevant instructions online ... what should I do?
Thanks,
NHB
AcroNick
Continue reading...
Dim Pleft As Integer = Me.Left
Dim Ptop As Integer = Me.Top
Dim Pwidth As Integer = Me.Width
Dim Pheight As Integer = Me.Height
Dim Img1 As New Bitmap(Pwidth, Pheight)
Dim G1 As Graphics = Graphics.FromImage(Img1)
G1.CopyFromScreen(Pleft, Ptop, 0, 0, Img1.Size)
but it looks like these fail on a 4k screen without some sort of scaling overview. I don't have such a screen and also I can't find any relevant instructions online ... what should I do?
Thanks,
NHB
AcroNick
Continue reading...