It is currently Mon Oct 20, 2014 4:37 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Wed Apr 30, 2008 3:10 pm 
Offline
User avatar
 WWW  Profile

Joined: Thu Apr 03, 2008 2:49 pm
Posts: 277
Location: Antarctica
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?


Top
 
PostPosted: Thu May 01, 2008 2:35 pm 
Offline
 Profile

Joined: Tue Mar 04, 2008 7:19 pm
Posts: 16
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.


Top
 
PostPosted: Thu May 01, 2008 3:10 pm 
Offline
User avatar
 WWW  Profile

Joined: Thu Apr 03, 2008 2:49 pm
Posts: 277
Location: Antarctica
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


Top
 
PostPosted: Fri May 02, 2008 4:32 pm 
Offline
User avatar
 WWW  Profile

Joined: Wed Jan 09, 2008 10:23 am
Posts: 359
Location: Glasgow, Scotland
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.


Top
 
PostPosted: Fri May 02, 2008 6:37 pm 
Offline
User avatar
 WWW  Profile

Joined: Thu Apr 03, 2008 2:49 pm
Posts: 277
Location: Antarctica
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 :)


Top
 
PostPosted: Fri May 02, 2008 7:24 pm 
Offline
User avatar
 WWW  Profile

Joined: Wed Jan 09, 2008 10:23 am
Posts: 359
Location: Glasgow, Scotland
Ah, I see. :)

I may in future include an option to save images with an uncorrected aspect ratio.

Kind regards,

Francis.


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron