convert image resolution

GFA, ASM, STOS, ...

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

rockyone
Captain Atari
Captain Atari
Posts: 412
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

convert image resolution

Postby rockyone » Wed Dec 20, 2017 12:20 pm

I did a PI3 to PI2 conversion routine.
In fact, it was simple ... for other formats it complicates ...
Would you have low routines on average ect ... I do not really want to reinvent the wheel.
Image

User avatar
troed
Atari God
Atari God
Posts: 1364
Joined: Mon Apr 30, 2012 6:20 pm
Location: Sweden

Re: convert image resolution

Postby troed » Wed Dec 20, 2017 12:26 pm

I'm not exactly sure what you're asking, but here's some compact code for producing pi1/pi2/pi3 and also "amiga" bitmap formats (useful for coders when wanting single bitplane stuff): https://github.com/troed/PNGconv

(Java, written in "C-style")

/Troed

rockyone
Captain Atari
Captain Atari
Posts: 412
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: convert image resolution

Postby rockyone » Wed Dec 20, 2017 12:34 pm

I would like examples of low resolution to medium resolution conversion and the opposite.

ThorstenOtto
Captain Atari
Captain Atari
Posts: 284
Joined: Sun Aug 03, 2014 5:54 pm

Re: convert image resolution

Postby ThorstenOtto » Wed Dec 20, 2017 2:22 pm

These are the routines i'm using in ORCS. It's only the actual conversion functions, you'll have to do the file loading/saving yourself.
You do not have the required permissions to view the files attached to this post.

rockyone
Captain Atari
Captain Atari
Posts: 412
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: convert image resolution

Postby rockyone » Wed Dec 20, 2017 3:37 pm

Thank you, I will look carefully, it looks very interesting.
Because I have some ideas on the image data conversion method (medium low and high resolution) but for the color conversion, I still do not really know how I'm going to do it ....
:cheers:


Social Media

     

Return to “Coding”

Who is online

Users browsing this forum: No registered users and 5 guests