Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21246

Question about Picturebox

$
0
0
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:

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)
  '
  '

My question is what is taking place at the statement Picture1.Scale = (XMin, YMin)-(XMax, YMax) and what is the purpose of this.

Viewing all articles
Browse latest Browse all 21246

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>