Announcement

Collapse
No announcement yet.

Screen capture - once again

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Screen capture - once again

    In a previous discussion on this topic, it was explained how to store screen shots on the uSD card.
    Now, is there any way to store a rectangular piece of the image currently displayed somewhere in the RAM, and then use it again?

    Suppose I have a lot of things on the screen - digital meters, graphics, etc. And I have a button which, upon touching, opens a context menu that covers (i.e. overwrites) a portion of everything else. For example - a half of a large text. Having chosen something from the menu, I need to close it - that is, to re-draw the portion of screen that had been there before the menu popped up.

    Of course, I can print that large text again, but other types of information might be more difficult to restore. Therefore, I would prefer a universal method that treats everything alike - a function that saves a portion of screen in the RAM, and re-draws it upon closing the menu.

    Is there a function that can do such thing?

    Thanks in advance,
    Michael

  • #2
    Unless that part of the screen is tiny it wont fit in RAM.

    Use the uSD routine to save to uSD modifying the sizes to be the required screen area and then use file_Image() to restore it.
    Mark

    Comment


    • #3
      OK, thank you.

      Comment

      Working...
      X