log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- RISC OS London Show Report 2024 (News:1)
- Announcing the TIB 2024 Advent Calendar (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- RISCOSbits releases a new laptop solution (News:)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
Acorn Arcade forums: Programming: ConvertPNG module
 
  ConvertPNG module
  sirbod (07:44 22/5/2012)
  swirlythingy (11:57 22/5/2012)
  arawnsley (12:34 22/5/2012)
  nunfetishist (12:35 22/5/2012)
    sirbod (13:54 22/5/2012)
  swirlythingy (13:12 22/5/2012)
    gerph (19:00 13/9/2012)
 
Jon Abbott Message #120448, posted by sirbod at 07:44, 22/5/2012
Member
Posts: 563
Does anyone know if the ConvertPNG module is available outside of Select?

I need to display PNG's in the ADFFS GUI and converting to sprites has some advantages.
  ^[ Log in to reply ]
 
Martin Bazley Message #120452, posted by swirlythingy at 11:57, 22/5/2012, in reply to message #120448

Posts: 460
Does anyone know if the ConvertPNG module is available outside of Select?
It isn't. Full stop.

This was a pain when I wrote MBBack too. I eventually managed to get the Iyonix supporting JPEGs as well as sprites by adding a load of custom code for SpriteExtend's JPEG API, but PNGs are a non-starter.
  ^[ Log in to reply ]
 
Andrew Rawnsley Message #120453, posted by arawnsley at 12:34, 22/5/2012, in reply to message #120448
R-Comp chap
Posts: 600
(very tongue-in-cheek) so now, when you're bored with work on ADFFS, you can start on a clean-room, open-source implementation of the Select image rendering routines...

I do have a png->sprite command line convertor that you're welcome to use, but no source, since it was developed externally, I'm afraid.
  ^[ Log in to reply ]
 
Rob Kendrick Message #120454, posted by nunfetishist at 12:35, 22/5/2012, in reply to message #120448
nunfetishist
Today's phish is trout a la creme.

Posts: 524
Use libpng? I seem to recall it's quite simple to drive to convert things to a Sprite-compatible stride and pixel ordering.
  ^[ Log in to reply ]
 
Martin Bazley Message #120456, posted by swirlythingy at 13:12, 22/5/2012, in reply to message #120448

Posts: 460
Incidentally, if the ImageFileRender and ImageFileConvert modules were to go down in flames along with Select, I can't say I'd be entirely sorry. They are truly horrible to work with. The APIs would be unpleasant even if the modules weren't bugged beyond belief, prone to undocumented behaviours (some of which vary by version) and even incomplete in some areas. I've had many, many headaches and wasted afternoons trying to work out why sprites weren't coming out the size I told them to be rendered at and teasing out implementation quirks which only manifested with certain combinations of DPI and pixel extent.

Even if they weren't locked into a dead branch, I'd probably be recommending you used something else.
  ^[ Log in to reply ]
 
Jon Abbott Message #120457, posted by sirbod at 13:54, 22/5/2012, in reply to message #120454
Member
Posts: 563
Oh well...another thing to add to the list of things I need to code.
  ^[ Log in to reply ]
 
Charles Justin Ferguson Message #121072, posted by gerph at 19:00, 13/9/2012, in reply to message #120456
Member
Posts: 48
Thanks. Always nice to hear feedback.
________
--
Gerph
  ^[ Log in to reply ]
 

Acorn Arcade forums: Programming: ConvertPNG module