DBLines and DBPixels

Demonstrates how to retrieve the number of lines and pixels in an image file.

Remarks

The following example opens the file irvine.pix in the demo directory for read access, retrieves the number of pixels and lines and prints them, and then closes the file.

Code

  local integer tfid
  tfid = DBOpen( GetPCIHOME() + "/demo/irvine.pix", "r" )
  print "Lines:",DBLines(tfid),"  Pixels:",DBPixels(tfid)
  call DBClose( tfid )

Output

 Lines:512  Pixels:512

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.