lrex <imagefile>
Subcel extraction from a frame buffer (bitmap) is slightly different from extraction from another cel. This program handles extraction from bitmaps only.
The extraction can easily be done with the appropriate call to the Lib3DO functions (CreateLRFormCel), but this example shows how to do it long hand.
When extracting from bitmaps, pay attention to the order in which the pixels are represented.
The program is based on animsample and aaplayer. The user can manipulate the extracted cel.
You can only extract a cel from even lines of the bitmap. This restriction arises out of the way bitmaps are laid out and lrfrom cels are drawn. You can extract from odd lines, but the cel will not be pixel accurate in relation to the source you are extracting from.