|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Topic # 1496 |
saving the screen to a file? |
09/12/2006 @ 22:41 by Dave O\'Brien
|
Is there a way to save a screen (whole or part) to a file?
(As far as I can tell, the existing SAVESCREEN command is meant only for use with the RESTORESCREEN command.)
Any tips appreciated. Thanks. |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1 -------- 10/12/2006 @ 00:23 by aldweb
visitor |
Hello Dave,
Yes there is a way (anyway, there is always a way ).
The PGET(X,Y) function will let you retrieve the pixel color at the (X,Y) position. Just, save the returned values by PGET for a range of (X,Y), (1,1) to (160,160) for retrieving the whole screen. Then, to draw back the whole or part of the screen will just be a question of reading the file and applying the PSET statement.
Then, the point is to know how you want to save this information in a file. Indeed, the way of doing I provided above will build a heavy file. You might want to use some image routines to save the information, and there we get to the point of finding algorithms for saving & reading JPEG, GIF, PNG types of images... You could also save a bitmap resource, then using the Resource PP applet. There are indeed many possibilities
Cheers, aldweb
@+ aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 2 -------- 19/12/2006 @ 08:11 by Khertan
visitor |
Maybe doing this with an applet will be more efficiently. |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 3 -------- 22/12/2006 @ 11:08 by aldweb
visitor |
Hello Khertan,
Sure, you are right. But if performance is OK, why bother switching to PP? And I know that Dave rather goes for 100% native iziBasic code...
Cheers, aldweb
@+ aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 4 -------- 23/12/2006 @ 03:33 by Dave O\'Brien
visitor |
Actually, what prompted my question was a request from a Kaleida user to be able to save her doodles to a picture file that she could use as wallpaper.
I imagine that would be in some standard format like JPEG, GIF, PNG, etc. And that's deeper voodoo that I'd want to tackle on my own. ;^) |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 5 -------- 24/12/2006 @ 06:52 by Lou
visitor |
Hi Dave,
I'd recommend to your user she check out Snap, which snaps a screen shot in bmp format onto a card.
BTW, I downloaded the newer version of Kaleida. Looks like you widened the heavy line. For what it's worth, I like the original. Either way, cool little app.
Lou |
|
|
topic active
topic closed
Sticky
New message -
Correct message
Close topic
Make sticky
|
|