| www.retrosoftware.co.uk http://www.retrosoftware.co.uk/forum/ |
|
| Saving out a MODE 5 picture as a PNG http://www.retrosoftware.co.uk/forum/viewtopic.php?f=27&t=96 |
Page 1 of 1 |
| Author: | DaveF [ Wed Apr 30, 2008 3:10 pm ] |
| Post subject: | Saving out a MODE 5 picture as a PNG |
Hello I'm saving a picture out as a Mode 5 PNG, and the resolution comes back as 320x256. Shouldn't it be 160x256 or am I being dopey? |
|
| Author: | garfield [ Thu May 01, 2008 2:35 pm ] |
| Post subject: | Re: Saving out a MODE 5 picture as a PNG |
320x256 retains the correct aspect ratio of a MODE5 screen, though each 'BBC' pixel corresponds to two 'real' png pixels. Saving as 160x256 will retain the 1-to-1 pixel mapping between 'BBC' pixels and png pixels, but at the express of an incorrect (horizontally squashed) aspect ratio. |
|
| Author: | DaveF [ Thu May 01, 2008 3:10 pm ] |
| Post subject: | Re: Saving out a MODE 5 picture as a PNG |
Aye fair enough I suppose. I was using it to save out as a PNG then run it through my exporter to create BBC graphics. Not to worry, I can just scale it down 1/2 first. Cheers |
|
| Author: | FrancisL [ Fri May 02, 2008 4:32 pm ] |
| Post subject: | Re: Saving out a MODE 5 picture as a PNG |
What are you exporting the image as in your exporter? Unless I am missing something in what you are trying to do, saving the image as a BBC screen dump instead of a PNG will give you an image ready for use on a BBC without the need for any other exporter tools. Kind regards, Francis. |
|
| Author: | DaveF [ Fri May 02, 2008 6:37 pm ] |
| Post subject: | Re: Saving out a MODE 5 picture as a PNG |
Hi Francis What I was doing was saving as a PNG (so I get a proper BBC palette), then running through my code to re-arrange the pixels in a format I can INCBIN them easily to my 6502 code for example for certain effects. It's not a problem really, I can just re-scale the image in Photoshop/Gimp to get it to 160! Great little app by the way, good job |
|
| Author: | FrancisL [ Fri May 02, 2008 7:24 pm ] |
| Post subject: | Re: Saving out a MODE 5 picture as a PNG |
Ah, I see. I may in future include an option to save images with an uncorrected aspect ratio. Kind regards, Francis. |
|
| Page 1 of 1 | All times are UTC [ DST ] |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|