ImageWidth Property Example

ImageWidth Property Example

This example shows you how to obtain the width and length of a Bitmap stored in memory. To try the example, copy the code to your module, and call the GetBitmapWH subroutine from the module. Then run the example.


Private Sub GetBitmapWH _
        (BMU as VWBitmapUtils.BitmapUtils, _
         ByRef lWidth As Long, ByRef lHeight As Long)
  'BMU Should already be initialized.
  
  lWidth = BMU.ImageWidth
  lHeight = BMU.ImageHeight
End Sub