English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 25 August 2014, 18:55   #1
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
Question Alphachannel

Hi,

I am trying to display image data with alphachannel. It seems like the cybergraphics.library ignores the alpha data. Is this true? Tested with os 3.1 and 4.1!

Code:
		movem.w oxO_left(a3),d3-d4	; dest x y
		
		moveq	#3,d5
		moveq	#7,d6
		
		moveq	#0,d0			; x in source
		moveq	#0,d1			; y in source
		moveq	#12,d2			; Bytes per row in source
		moveq	#RECTFMT_RGBA,D7

testpicture	dc.l	$FF000088,$00FF0088,$0000FF88
		dc.l	$FF000077,$00FF0077,$0000FF77
		dc.l	$FF000066,$00FF0066,$0000FF66
		dc.l	$FF000055,$00FF0055,$0000FF55
		dc.l	$FF000044,$00FF0044,$0000FF44
		dc.l	$FF000033,$00FF0033,$0000FF33
		dc.l	$FF000022,$00FF0022,$0000FF22
AGS is offline  
Old 25 August 2014, 20:27   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
Quote:
Originally Posted by AGS View Post
It seems like the cybergraphics.library ignores the alpha data. Is this true?
Yes.
thomas is offline  
Old 25 August 2014, 20:29   #3
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
Ok, thanks, time for a workaround. Any ideas? I could read a line into my own buffer and calc the alpha by myself, then write the line back? Is there a better way to perform this?
AGS is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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:55.

Top

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