Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hardware images questions
#1
I don't think I fully understand hardware images yet. I know they are different, but not sure how much other than faster loading/displaying.

Once a hardware image is put on the screen, I can't seem to be able to afterwards copy the screen fully with those images on it, like doing a _COPYIMAGE(_DISPLAY) or fading out the screen effect, other screen manipulations,  doesn't seem to work on the hardware images.  It's like they are on a different screen layer or something. Is there a way to manipulate the screen with hardware images on it?

This is another area I need some help understanding about.  Thanks!

- Dav

Find my programs here in Dav's QB64 Corner
Reply
#2
I use Hardware images wherever possible and yet have no idea about what they are really: you just have (,33) in the creation code.

So, I shall be very pleased to see the answers of the skilled folks....
Reply
#3
There are indeed on their own z-order. Use _DISPLAYORDER to reorder.

If you put it at the back, then you can print stuff over it and also do fades by placing a screen-sized rect with varying alpha.
Reply
#4
(12-04-2025, 03:16 PM)a740g Wrote: There are indeed on their own z-order. Use _DISPLAYORDER to reorder.

If you put it at the back, then you can print stuff over it and also do fades by placing a screen-sized rect with varying alpha.

Ah!  _DISPLAYORDER is command I've never noticed before, maybe once when adding that keyword to my IDE, but I didn't learn what it was for.

Thank you!  

- Dav

Find my programs here in Dav's QB64 Corner
Reply
#5
Also see this from Steve: https://qb64phoenix.com/forum/showthread...3#pid35973
Reply
#6
@Dav

_DisplayOrder _Hardware , _Software

That reverses the display order so you can make a hardware background and print software image on top. In SCREEN 0 it allows us to make a hardware background and write text on top. Otherwise, the default is to place a hardware layer or the text layer.

https://qb64phoenix.com/forum/showthread.php?tid=3600

Yes, the copy problem you are experiencing is a layer issue. I recall something similar months ago, but I have appointments out this morning, so I'll have to dig into it more this evening. It involved hardware acceleration in SCREEN 0 and using _copyimage.

Let us know how you are coming along.

Pete
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  about Hardware Images and _DisplayOrder,Help! qbfans 11 540 02-11-2026, 07:10 AM
Last Post: SMcNeill
  Nth problem with hardware images Ikerkaz 9 470 01-23-2026, 02:58 PM
Last Post: bplus
  Hardware images...Talk to me! Unseen Machine 5 721 09-22-2025, 11:12 PM
Last Post: TempodiBasic
  Transparency with Hardware Images NakedApe 8 1,018 07-10-2025, 09:47 AM
Last Post: Pete
  How does QB64 support saving 8bit images? CMR 4 772 04-27-2025, 04:46 PM
Last Post: CMR

Forum Jump:


Users browsing this thread: 1 Guest(s)