:DISPlay:DATA?
:DISPlay:DATA? [<format>][,][<palette>]
:DISPlay:DATA? [<format>][,][<palette>]
<format>
string
BMP BMP8bit PNG
The format of the screen image data
<palette>
string
COLor GRAYscale
The palette to use for the screen image
Reads the screen image data. You can choose 24-bit BMP, 8-bit BMP8bit, or 24-bit PNG formats in color or grayscale. You can invert the screen image graticule colors (before reading the data) by using the ":HARDcopy:INKSaver ON" command. If no format or palette option is specified, the screen image is returned in BMP, COLor format.
<display data><NL> <display data> ::= binary block data in IEEE-488.2 # format. Screen image data is returned in the IEEE-488.2 # binary block data format.
Query for the image data with ":DISPlay:DATA?", read the data, and then save it to a file.
Dim byteData() As Byte
myScope.IO.Timeout = 15000
myScope.WriteString ":DISPlay:DATA? BMP, COLOR"
byteData = myScope.ReadIEEEBlock(BinaryType_UI1)

' Output display data to a file:
strPath = "c:\scope\data\screen.bmp"
' Remove file if it exists. If Len(Dir(strPath)) Then Kill strPath End If
Close #1 ' If #1 is open, close it.
Open strPath For Binary Access Write Lock Write As #1 ' Open file
Put #1, , byteData ' Write data.
Close #1 ' Close file.

myScope.IO.Timeout = 5000