log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- RISCOSbits releases a new laptop solution (News:4)
- Announcing the TIB 2024 Advent Calendar (News:2)
- RISC OS London Show Report 2024 (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
Acorn Arcade forums: Programming: Screensave from Viewfinder - HELP !
 
  Screensave from Viewfinder - HELP !
  martin (09:32 15/6/2004)
  rich (12:12 15/6/2004)
    martin (12:41 16/6/2004)
 
martin hansen Message #55628, posted by martin at 09:32, 15/6/2004
Member
Posts: 17
Saveing a screen as a sprite file from a RiscPC has always been pretty easy. For example;
*screensave "mypic
Alas, with a viewfinder installed this no longer works.
I've successfully used the viewfinder system variable to tell my program if viewfinder is installed and so branch around the screensave instruction (so it does not crash the program if a viewfinder is installed and active ) but I now need some code that will save the screen.
I know it can be done as David Pillings "Snapper" works with viewfinder.
Can anyone help ?
  ^[ Log in to reply ]
 
Richard Goodwin Message #55649, posted by rich at 12:12, 15/6/2004, in reply to message #55628
Rich
Dictator for life
Posts: 6828
Not sure if this helps, but I had a a similar problem taking some ArthurOS screenshots. Don't have the code on me for fairly obvious reasons, but I think it was just sprite ops - create a large enough sprite area (or a dimensioned array if you're not using the sprite pool), select the whole screen area (which may require reading the current screen size), make that area a sprite, and then save that sprite to disk.

Obviously under Arthur I didn't need to worry about new format sprites and running out of memory, it was only like Mode 12 or something.
________
RichGCheers,
Rich.
  ^[ Log in to reply ]
 
martin hansen Message #55685, posted by martin at 12:41, 16/6/2004, in reply to message #55649
Member
Posts: 17
Thanks for that Richard - It sounds like quite a lot of work but I will go down that route if no-one can suggest anything better. I'm wrestling with draw file formats at the moment: initially difficalt but now just very tedious - I guess I'll have to get to grips with the sprite file format next. Thanks, again - Viewfinder is a great product but most folks seem to now want to move on.
  ^[ Log in to reply ]
 

Acorn Arcade forums: Programming: Screensave from Viewfinder - HELP !