(@wdlmaster & @MrGuest: Both of your routines worked perfectly - *until* I tried using them on a 24 bit bmap. once i converted to 24 bit, both routines displayed the same problem - not writing pixels to the bitmap.)
How exactly did you test this,
changing bmap_createblack()to 24 bit for pnlFrom.bmap
changing bmap_createblack()to 24 bit for pnlTo.bmap
changing bmap_createblack()to 24 bit for pnlFrom.bmap and pnlTo.bmap
all work...?