From: Paul Sprangers Subject: Re: Reading the dimensions of a sprite or JPEG on disk Newsgroups: comp.sys.acorn.programmer Date: Tue, 31 May 2022 15:30:04 +0200 (Custom) Message-ID: <59f13aedf2Paul@sprie.nl> References: <59ef9cf586Paul@sprie.nl> <59ef9fa796chrisjohnson@spamcop.net> <59efa0a626Paul@sprie.nl> <59f0aeac8aPaul@sprie.nl> <56KdnRloBeIyTAn_nZ2dnUU7-S3NnZ2d@brightview.co.uk> <59f0be8a9aPaul@sprie.nl> <59f119bd97Paul@sprie.nl> <_-CdncrtZoeZZQj_nZ2dnUU7-UPNnZ2d@brightview.co.uk> User-Agent: Pluto/3.18 (RISC OS/5.29) NewsHound/v1.52-32 Organization: None Path: csiph.com!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!94.232.112.246.MISMATCH!abe006.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail Lines: 22 Injection-Date: Tue, 31 May 2022 15:30:07 +0200 Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com" Xref: csiph.com comp.sys.acorn.programmer:6377 In article <_-CdncrtZoeZZQj_nZ2dnUU7-UPNnZ2d@brightview.co.uk>, Gerald Holdsworth wrote: > What I meant was that I'm sure that if !Paint can do this, then the RISC > OS SWI calls can probably do it. I.e., I'm wondering if !Paint is just a > wrapper around the OS_Sprite calls. Ah, I see what you mean. But since I still have to scale the resulting sprite, I could as well use the ChangeFSI function right away. The routine does allow me to convert 2 or 3 small JPEGS, or 1 slightly bigger JPEG, to the desired thumbnail before it runs out of memory. But I've no idea how to manage extra workspace, nor do I have an idea how to save the resulting sprite into an existing sprite file. Despite the quite extensive documentation, I fail to understand the working of the function. Kind regards, Paul -- https://riscos.sprie.nl