I have a VB program I am working on. On the Form is a picturebox called Picture1. It's ScaleMode is set to vbPixels and it's ScaleWidth is 216 pixels and it's height is 72 pixels. In a sub some of the code looks like this:
My question is what is taking place at the statement Picture1.Scale = (XMin, YMin)-(XMax, YMax) and what is the purpose of this.
Code:
'
'
Dim YMin As Long, YMax As Long, XMin As Long, XMax As Long
Dim DataMax As Long
YMin = 32767
YMax = -32768
XMin = 0
DataMax = UBound(byteBuffer) / 2
XMax = DataMax
Picture1.Scale (XMin, YMin)-(XMax, YMax)
'
'