26 August 2014, 14:55 | #1 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
A picture.datatype with alphachannel support is required.
Hi,
I need a v45 picture.datatype for coding that returns alpha information. This must exist, even that cybergraphics does not support alpha. thanks, A |
26 August 2014, 15:08 | #2 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,378
|
You would better forget about it, since there is NO picture.datatype v45 that is really supporting the alpha channel information.
For PNG images you can use the pngalpha.library instead, but it's not the best solution. http://aminet.net/search?query=pngalpha |
26 August 2014, 15:38 | #3 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
@PeterK
I had a look on your iconlibrary source. Seems like the png functions w/ zlib support could be extracted and used for my purposes. Would you help me with this? cheers, A |
26 August 2014, 16:05 | #4 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,378
|
Yes of course, no problem.
But there are some small limitations coming with my code. My PNG decoding is restricted to those PNG formats that are required by icons. Thus not all formats, like interlaced images or palettes for example, are supported in my library. Only RGB and RGBA are decoded. The zlib decoder has been extracted from zlib.library v3.2 and is based on the old zlib 1.14. I've tried to optimize it as good as possible and you can easily find it at the end of my lib by searching for "zzz". It requires the parameters in D0, A0, D1 and A1 as source buffer and size plus destination buffer and size. Please send me an email if you have questions. |
26 August 2014, 17:35 | #5 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
Please have a loog there: http://eab.abime.net/showthread.php?p=972329#post972329
It does not look correct. It's yet done with that pngalpha.library. |
26 August 2014, 18:31 | #6 |
Registered User
Join Date: Feb 2014
Location: Germany
Posts: 261
|
No, it's not.
It is bad code that causes the crappy output. The computer is only doing what you ordered him to do. How many threads are required for a simple task? |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
which picture.datatype? | Bamiga2002 | support.Apps | 29 | 25 October 2018 04:41 |
Alphachannel | AGS | Coders. System | 2 | 25 August 2014 20:29 |
How to overcome this OS 3.9 picture.datatype issue? | Leandro Jardim | request.Apps | 4 | 14 August 2014 01:27 |
iBrowse Support Required | diablothe2nd | support.Apps | 5 | 15 January 2012 00:40 |
picture.datatype v45 | amiga_user | request.Other | 1 | 28 November 2011 15:50 |
|
|