English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 26 August 2014, 14:55   #1
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
Question 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
AGS is offline  
Old 26 August 2014, 15:08   #2
PeterK
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
PeterK is offline  
Old 26 August 2014, 15:38   #3
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
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
AGS is offline  
Old 26 August 2014, 16:05   #4
PeterK
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.
PeterK is offline  
Old 26 August 2014, 17:35   #5
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
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.
AGS is offline  
Old 26 August 2014, 18:31   #6
BigFan
Registered User
 
BigFan's Avatar
 
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?
BigFan is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:42.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09698 seconds with 13 queries