BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: Fetch Graphics Context?  (Read 8477 times)

AT38

  • Newbie
  • *
  • Posts: 18
    • View Profile
Fetch Graphics Context?
« on: June 15, 2021, 01:45:19 PM »

Hello.

I'm having a problem with the colour command not working under some circumstances, and I would like to read the colour stored in the graphics context to verify that it has changed to the requested colour.

Is there any way of reading out the current graphics context, or at least the current colour?

Cheers.
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 745
    • View Profile
Re: Fetch Graphics Context?
« Reply #1 on: June 15, 2021, 03:58:39 PM »

Hello,

Unfortunately it is not possible to read the current context of the graphics engine via any API commands or registers.
As a note however the context stack only allows for 4 levels, and any subsequent restore will revert to the default graphics context.

Would you be able to provide an example of when a {CLEAR_}COLOR_RGB/A command does not work in your application?

Best Regards,
BRT Community
Logged