BBC BASIC for Windows
« Display part of BMP image? (*DISPLAY) »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 11:07pm



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.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Display part of BMP image? (*DISPLAY)  (Read 281 times)
5against4
New Member
Image


member is offline

Avatar




PM


Posts: 16
xx Display part of BMP image? (*DISPLAY)
« Thread started on: Mar 8th, 2017, 07:44am »

While it's possible to display a BMP image with *DISPLAY, is it possible to display just part of an image, i.e. by specifying a pixel range?
User IP Logged

michael
Senior Member
ImageImageImageImage


member is offline

Avatar




PM


Posts: 335
xx Re: Display part of BMP image? (*DISPLAY)
« Reply #1 on: Mar 8th, 2017, 2:08pm »

Check in the TOOLs section.

RETROLIB 12 with BMP sketch tools (array version)

Its actually fairly quick.

bmptocode would actually be more particular to extraction of specific pixels, but I am still reworking it for BBC Basic.

Other than Sprites, I don't know of other methods of extraction and display tools that show partial images, other than the tools I am working on.
User IP Logged

I like making program generators and like reinventing the wheel
DDRM
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 321
xx 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.

best wishes,

D
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls