BBC BASIC for Windows
« Display part of BMP image? (*DISPLAY) »
Welcome Guest. Please Login or Register. Apr 5th, 2018, 10:18pm
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
If you require a dump of the post on your message board, please come to the support board and request it.
Re: Display part of BMP image? (*DISPLAY)
« Reply #2 on: Mar 9th, 2017, 08:24am »
I don't think it's possible to show (only) part of the source image using *DISPLAY (or (*MDiSPLAY), you could do it using the system calls BitBlt or StretchBlt. That would require loading your image into a separate device context, and then copying the section you need to the main display.
If you need help doing that, let me know, and I'll try to put together a bit of example code.