Basically in TImage.Load you are creating a TImage, but not a TMyImage. So since image is really a TImage casting it to a TMyImage will return null. Its the old saying of how a square is a rectangle, but a rectangle is not a square.
Extending TImage
BlitzMax Forums/BlitzMax Programming/Extending TImageThe forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.