I'm working on set of GDI+ classes. The Image class among others contains Width and Height properties. A possible way of instantiating the Image object is by an image file. For example:
img = CreateObject("gdiplus_image", "c:\windows\forest.bmp")
A protected method loads the image and retrieves its width and height into corresponding properties.
I want these values to be available not through methods, like GetWidth and GetHeight, but through properties. They should be visible in FoxPro debugger, for example.
As well these properties should be read-only for an object instantiated from this class.