object.bmx 337 B

12345678910111213
  1. Rem
  2. Object is the base class of all BlitzMax types.
  3. The following function attempts to cast from any object to
  4. the custom type TImage and returns true if the given object
  5. is an instance of TImage or an instance of a &Type derived
  6. from TImage.
  7. End Rem
  8. Function IsImage(obj:Object)
  9. If TImage(obj) return True
  10. Return False
  11. End Function