One pixel line missing in Snaphots
Moderator: ZSNES Mods
One pixel line missing in Snaphots
There is a flaw in the ZsNes Snapshot system that I was hoping would be corrected in the new 1.50 version, but that is not the case. When you take a Snapshot and then you look at it carefully you notice that there will be one black pixel line either at the bottom or ar the top. This is not important of course, but here is the real problem : the very first horizontal pixel line from the bottom is always missing : that means you can never see the very bottom of the screen you're trying to photograph. I am making some video game maps and because of that problem I never get a perfect 224 or 256 or 512 or 1024 height, because I just can't get the line at the very border of the map. This problem occurs whatever the video mode might be. You can verify that a line is indeed missing by using the little program BgMapper, which in the countrary shows this last pixel line flawlessly. Of course you can tell me :"Why don't you always use BgMapper to make your maps ?". The answer is, I sometimes need sprites in my maps, and only a snapshot can keep them.
Could that be corrected easily ? Thank you very much.
Could that be corrected easily ? Thank you very much.
-
- ZSNES Developer
- Posts: 6747
- Joined: Tue Dec 28, 2004 6:47 am
Well on the maps I'm trying to create I can assure you that the bottom line is not "junk" : it is just a part of the map. If I use the PrintScreen button do you think the result will be as accurate as with the ZsNes snapshot system ?
I tried with the PrintScreen command and now there are two line missing ! They appear in black instead. This is the way ZsNes displays it.
I tried with the PrintScreen command and now there are two line missing ! They appear in black instead. This is the way ZsNes displays it.
-
- ZSNES Developer
- Posts: 6747
- Joined: Tue Dec 28, 2004 6:47 am
You clearly are not reading what I wrote.filouk wrote:Well on the maps I'm trying to create I can assure you that the bottom line is not "junk" : it is just a part of the map. If I use the PrintScreen button do you think the result will be as accurate as with the ZsNes snapshot system ?
Read this for reference: http://board.zsnes.com/phpBB2/viewtopic.php?t=4346
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
-
- ZSNES Developer
- Posts: 6747
- Joined: Tue Dec 28, 2004 6:47 am
-
- Seen it all
- Posts: 2302
- Joined: Mon Jan 03, 2005 5:04 pm
- Location: Germany
- Contact:
Re: One pixel line missing in Snaphots
Try vSNES.filouk wrote:You can verify that a line is indeed missing by using the little program BgMapper, which in the countrary shows this last pixel line flawlessly.

vSNES | Delphi 10 BPLs
bsnes launcher with recent files list
bsnes launcher with recent files list
Wow creaothcann, vSnes is wonderful ! I will do great work with it !
However there is a little glitch with the scene feature : when you save the same scene twice in a row, without touching anything between the two times, then this second bitmap as well as the others will be corrupted : first, the "preview" program of Windows XP can't read them, and second, the top line is corrupted (appears in black mostly).
Also, if the "scale 256 to 512" option is checked, this is slightly different :
1. The corrupted files will not work with the "preview" program of Windows XP
2. the right half of the screen will be on the left and the left half will be on the right
Funny.
However there is a little glitch with the scene feature : when you save the same scene twice in a row, without touching anything between the two times, then this second bitmap as well as the others will be corrupted : first, the "preview" program of Windows XP can't read them, and second, the top line is corrupted (appears in black mostly).
Also, if the "scale 256 to 512" option is checked, this is slightly different :
1. The corrupted files will not work with the "preview" program of Windows XP
2. the right half of the screen will be on the left and the left half will be on the right
Funny.
-
- Seen it all
- Posts: 2302
- Joined: Mon Jan 03, 2005 5:04 pm
- Location: Germany
- Contact:
What format are you using for the saved files? Does it also happen with copying to the clipboard?filouk wrote:when you save the same scene twice in a row, without touching anything between the two times, then this second bitmap as well as the others will be corrupted: first, the "preview" program of Windows XP can't read them, and second, the top line is corrupted (appears in black mostly).
I have the preview function disabled.

(I guess you mean the program that starts when you open the image, not the folder's preview.)
filouk wrote:Also, if the "scale 256 to 512" option is checked, this is slightly different :
1. The corrupted files will not work with the "preview" program of Windows XP
2. the right half of the screen will be on the left and the left half will be on the right

vSNES | Delphi 10 BPLs
bsnes launcher with recent files list
bsnes launcher with recent files list
-
- ZSNES Developer
- Posts: 6747
- Joined: Tue Dec 28, 2004 6:47 am
Well the pictures not being read by XP's preview feature is not the problem. The problem is that when you open them with any picture software, you can see that the top pixel line is corrupted. The first time you save, this doesn't happen (and also XP preview can read them).
It does it only when saving two BMP in a row, without changing anything between the two times. It doesn't do it with PGN. Also, I would like to tryp with the copy feature but I don't know where to find it, when I click on "save or copy" I can only save the file, but not copy it to the clipboard.
It does it only when saving two BMP in a row, without changing anything between the two times. It doesn't do it with PGN. Also, I would like to tryp with the copy feature but I don't know where to find it, when I click on "save or copy" I can only save the file, but not copy it to the clipboard.
-
- Seen it all
- Posts: 2302
- Joined: Mon Jan 03, 2005 5:04 pm
- Location: Germany
- Contact:
See the "options" tab in the options dialog window; uncheck the "save bitmaps to files" checkbox. Bitmaps will now be copied to the clipboard (in the current desktop color depth).
vSNES | Delphi 10 BPLs
bsnes launcher with recent files list
bsnes launcher with recent files list
Ok, it's all right when copying to clipboard. So the problem only occurs with BMP. Try to save at least two BMP in a row, without checking/unchecking anything, and you will notice that only the 1st one is ok, but the other ones will have a corrupted pixel line at the very top, or, if you are in "scale 256 to 512" mode, they will have both halves inverted.
-
- Seen it all
- Posts: 2302
- Joined: Mon Jan 03, 2005 5:04 pm
- Location: Germany
- Contact:
-
- Seen it all
- Posts: 2302
- Joined: Mon Jan 03, 2005 5:04 pm
- Location: Germany
- Contact:
Btw. for each line the SNES loads the sprite data in the previous line. Since there is no previous line for the first line, the SNES doesn't output that one.
vSNES | Delphi 10 BPLs
bsnes launcher with recent files list
bsnes launcher with recent files list
-
- Seen it all
- Posts: 2302
- Joined: Mon Jan 03, 2005 5:04 pm
- Location: Germany
- Contact:
Then you really need external tools.
Anyway - about the screenshots: The reason for the garbage at the top is that the entire picture is shifted down by one pixel, which also hides the last line of the SNES output.
Anyway - about the screenshots: The reason for the garbage at the top is that the entire picture is shifted down by one pixel, which also hides the last line of the SNES output.
Last edited by creaothceann on Sun Jan 14, 2007 12:51 am, edited 1 time in total.
vSNES | Delphi 10 BPLs
bsnes launcher with recent files list
bsnes launcher with recent files list
Well, what you say is clever, but it is not true : if you take a previous version of ZsNes, the black line will be at the bottom, and however it is still the bottom line that will be missing, not the top line. The truth is I have never any problems with the top line : it is always there. And I don't understand why Deathlike2 is talking about a problem with the top line, since there is none. The problem is with the bottom line. The place of the black line has absolutely no incidence on that.
-
- Seen it all
- Posts: 2302
- Joined: Mon Jan 03, 2005 5:04 pm
- Location: Germany
- Contact:
When I say "top line", I mean the first line of the screenshot (pixels 0|0 to 255|0). Bottom line is pixels 0|223 to 255|223 (counting from zero).
Here's a GIF that shows the differences: link
Note how the output between "ZSNES windowed" and "ZSNES screenshot" is different.
Here's a GIF that shows the differences: link
Note how the output between "ZSNES windowed" and "ZSNES screenshot" is different.
vSNES | Delphi 10 BPLs
bsnes launcher with recent files list
bsnes launcher with recent files list
-
- Seen it all
- Posts: 2302
- Joined: Mon Jan 03, 2005 5:04 pm
- Location: Germany
- Contact:
Conclusion:
- ZSNES is not supposed to show the last line.
- The devs may add an option to show it.
- The location of the content in the screenshots needs fixing.
- ZSNES is not supposed to show the last line.
- The devs may add an option to show it.
- The location of the content in the screenshots needs fixing.
vSNES | Delphi 10 BPLs
bsnes launcher with recent files list
bsnes launcher with recent files list