2009-11-27, 12:53 AM
sub Wrote:In the skin files, if you tell it to draw "@thumbnail" it'll then call the GetImage() method on your class, passing in the hashmap of parameters it was associated with. In the GetImage() method you could then do stuff like get the "@path" variable from the parameters, load an image file, resize it etc, then return your image. You can also do more sophisticated stuff in that callback, like correcting the aspect ratio, or dynamically generating a graphic etc.
Can GetImage() return null to not display any image?
Martin