I posted this over on UtilityBase, but thought I'd post it here too to see if I can find the answer more quickly:
========================================
Alright, I'm goofing around again, messing around with ancient Amiga programs. I have an old program that displays images to a WB window. Naturally, it's limited to a very low color depth. The Workbench I'm running, however, is RTG (UAE) so colors are unlimited.
I've spent most of the evening searching aminet for any kind of example that would allow me to draw images that are not limited to a low color WB but with no success. It's now tired, and I'm getting late, so am appealing to UB for clues to the right direction.
So, what's the best approach to draw non-pen dependent images in a workbench window? Does any one know of any tutorials? Example programs? As always, any and all clues appreciated.
Thomas responded:
Use WritePixelArray
To which, I replied:
Thanks, Thomas, that helps but leaves me with more questions.
Looking at Olaf Barthel's ViewILBM (Aminet), I found an example of how to do that but it's so complex I'm having a tough time figuring out what to do.
WritePixelArray needs a BitPlaneData structure which ViewILBM initializes with an routine called OpenAsync that appears to be assembler and leaves me clueless.
What's the best (and easiest) way to populate this BitPlaneData structure?
Keep them clues coming...
Thanks,
Ed.
========================================
So, can anyone else offer me some clues here? All help appreciated.
