If you are not particularly concerned about cross-platform compatibility then there are many examples that can be adapted, such as aliens.bbc for BBCSDL and David Williams's GFXLIB demos for BB4W. But if you are targetting both BB4W and BBCSDL (and don't want to have to write two versions of your program!) your best bet for relatively high performance cross-platform rotation, currently, is the BOX2DGFX library. That's optimised for Box2D however and there could be an argument for producing a more generic equivalent.
It would be easy enough (for me or anybody else) to break down the PROC_displayrotate() routine into its component parts - initialisation, image loading, rendering, cleanup - so that it could be used more like the BOX2DGFX routines, for example in order to dynamically rotate an image, without all the 'housekeeping' overhead on every single call.