Active Forums => QB64 Discussion => Topic started by: krovit on March 22, 2020, 12:35:24 pm
Title: _DEST, _PUTIMAGE etc.
Post by: krovit on March 22, 2020, 12:35:24 pm
A warm greeting to all of you,
With some QB64 commands I have problems. Maybe it's up to me... I can't understand them... For example the management of _DEST destinations in combination with _PUTIMAGE.
These days I have taken over a Ritchie's library for the dropdown menu (a fixed idea of mine... but strongly necessary) and I modified it a bit to adapt it to my needs. It took a long time because, I think we will agree, changing the code of others is not easy. I made the menu look a little more modern and current (in my opinion) and I would like to share it with you. Nothing important, for heaven's sake... the bulk of the work is all by the author.
One of the changes introduced consists of one pixel line below the menu. I don't know how to coordinate it with the rest of the code. In practice, when you deactivate the menu that disappears but she remains there in plain sight.
In truth I could also do without it... obviously there are other systems to restore the original screen, but the code would not be clean and there is this bug that annoys me a lot.
The library makes extensive use of _DEST and _PUTMAGE and as I said I can not fully understand the operation of these commands.
For example and to start could you complete this code?
For reading pixel values (POINT) use _SOURCE so, as _DEST. Is possible reading other screen, than is visible and wrting to other screen than visible :)
Title: Re: _DEST, _PUTIMAGE etc.
Post by: Cobalt on March 22, 2020, 12:56:57 pm
_DEST - What image\screen commands like PRINT, PSET, LINE, POINT, GET , and PUT work upon.
_PUTIMAGE (X_Destination, Y_Destination)-(To_X_Destination, To_Y_Destination), Source_Image, Destination_Image, (X_Source, Y_Source)-(To_X_Source, To_Y_Source) Works like Get and Put at the same time
This is a little more involved than your PRINT to 1 , Change , PRINT to 2, Show 1 then Show 2. but covers the same and shows _PUTIMAGE use.
_PUTIMAGE(0,0)-STEP(639,479), A&,_DISPLAY,(0,0)-STEP(639,479)'copy the material from the Secondary display to the main.
Title: Re: _DEST, _PUTIMAGE etc.
Post by: TempodiBasic on March 22, 2020, 01:21:06 pm
Hi Krovit here a good example posted by Steve https://www.qb64.org/forum/index.php?topic=2124.msg113664#msg113664 (https://www.qb64.org/forum/index.php?topic=2124.msg113664#msg113664)
Title: Re: _DEST, _PUTIMAGE etc.
Post by: krovit on March 23, 2020, 04:11:31 am
Thank you, Petr, Cobal e Tempodibasic, finally a little light...
The 3D reported, moreover, is a mine of information.
I have not yet managed to solve the problem (there must be something in my code that conflict with Ritchie's library for the dropdown menu, or vice versa). But the documentation is a good track. I'll see how to move forward.
____ Tempodibasic... I recommend, don't expose you.
Title: Re: _DEST, _PUTIMAGE etc.
Post by: TempodiBasic on March 23, 2020, 07:57:20 am
thank's krovit I'll say the same to you and I must say moreover that my life has done little changes because I already live among job, home and church. ;-) What is different is the mask, the distance between persons, the absence of handshakes.