Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:24 12 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Is it possible to save VGA screen (content) to a file

     Page 2 of 2    
Author Message
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2610
Posted: 11:54pm 04 Jan 2025
Copy link to clipboard 
Print this post

The Pixel x,y,Colour Command sets the value of a pixel and the Pixel(x,y) Function reads the 24 bit value of a pixel.

eg
 Col% = Pixel(x,y)
 Red = Col% >> 16
 Green = (Col% >> 8) and 255
 Blue = Col% and 255
 ? Red, Green, Blue, Col%
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10240
Posted: 10:33am 05 Jan 2025
Copy link to clipboard 
Print this post

  Quote  tested Save compressed image "pic1.bmp",0,42,319,198
crash , black screen , have to reboot Pico2 ...


This is a bug when the width is not a multiple of 2. Actually I assume you intended to save the full width of the screen so you probably wanted 320 not 319 but I'll put it on the list of minor things to be fixed.
The fix will be to create an error if the width is not a multiple of 2
Edited 2025-01-05 20:48 by matherp
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025