locked
Graphic windows RRS feed

  • Question

  • Does any one know how to save a graphic window from inside the running code. so as to draw something export it as a jpeg. then clear screen and keep making drawings and self save. I did this in QBASIC with BSAVE but can not find a way to do so in SMALL BASIC

    Saturday, May 12, 2018 3:10 AM

Answers

  • See LDGraphicsWindow.Capture  in LitDev extension

      to capture the GraphicsWindow (to ImageList or -file)

    ID: RJR735 

    is a starting sample to automatically save the GW to a .png (or .jpg if you change the extension)

    by TimerTick a/o  MouseClick  during an animation.

    1.) Create a folder 'Shots'  under Program.Directory  to collect the GW-Screenshots

    2.) Run app and press 'Space' bar to activate/stop the shooting. (currently set to Timer.Tick event each 5 sec.)


    Saturday, May 12, 2018 6:39 PM
    Answerer

All replies

  • The litdev extension has a command  LDimages.Save  to save an image as .jpg

    EDIT: See for the extension litdev.co.uk


    Jan [ WhTurner ] The Netherlands


    Saturday, May 12, 2018 2:46 PM
    Answerer
  • See LDGraphicsWindow.Capture  in LitDev extension

      to capture the GraphicsWindow (to ImageList or -file)

    ID: RJR735 

    is a starting sample to automatically save the GW to a .png (or .jpg if you change the extension)

    by TimerTick a/o  MouseClick  during an animation.

    1.) Create a folder 'Shots'  under Program.Directory  to collect the GW-Screenshots

    2.) Run app and press 'Space' bar to activate/stop the shooting. (currently set to Timer.Tick event each 5 sec.)


    Saturday, May 12, 2018 6:39 PM
    Answerer