Jump to content
Jagware
Sign in to follow this  
rush6432

Blitting

Recommended Posts

rush6432    0

Hello everyone! Just trying to blit an image from on location to another and i have that working without issues, however is there such a way to allow the blitter to only copy the data as if the transparency flag were set (ignoring color 0,0,0) so that the image could be copied over to the original but not show the background?

 

Im esentially blitting a sprite to a larger bitmap and i'm having issues with the source image containing the black background still and when blitting this transfers over onto the destination bitmap.

 

Was curious if there was some option that was supposed to be set at the time of blitting to achieve this?

Share this post


Link to post
Share on other sites
Matthias    0

Hello,

 

here is what i do when i blitt the char-set letters into the canvas:

 

  ; set up for transparent blit!!!
    moveq.l  #0,d0
    move.l  d0,B_PATD ; Isn't B_PATD a WORD-register? Or a PHRASE?
    move.l  #0,d0
    move.l  d0,B_PATD+4; Isn't B_PATD a WORD-register? Or a PHRASE?
   
   move.l   #SRCEN|UPDA1|UPDA2|LFU_REPLACE|DCOMPEN,B_CMD

 

For complete overwritting, i simply leave out the setting of B_PATD and the DCOMPEN-flag.

 

 

Kind regards

Matthias

Share this post


Link to post
Share on other sites
rush6432    0
Hello,

 

here is what i do when i blitt the char-set letters into the canvas:

 

 ; set up for transparent blit!!!
    moveq.l  #0,d0
    move.l  d0,B_PATD; Isn't B_PATD a WORD-register? Or a PHRASE?
    move.l  #0,d0
    move.l  d0,B_PATD+4; Isn't B_PATD a WORD-register? Or a PHRASE?
   
   move.l   #SRCEN|UPDA1|UPDA2|LFU_REPLACE|DCOMPEN,B_CMD

 

For complete overwritting, i simply leave out the setting of B_PATD and the DCOMPEN-flag.

 

 

Kind regards

Matthias

 

Matthias,

 

Thank you very much for the information. i knew there were a few simple flags i had been missing for the transparent blit. Thanks again for such a prompt response. :)

 

Share this post


Link to post
Share on other sites
rush6432    0
Hello,

 

here is what i do when i blitt the char-set letters into the canvas:

 

 ; set up for transparent blit!!!
    moveq.l  #0,d0
    move.l  d0,B_PATD; Isn't B_PATD a WORD-register? Or a PHRASE?
    move.l  #0,d0
    move.l  d0,B_PATD+4; Isn't B_PATD a WORD-register? Or a PHRASE?
   
   move.l   #SRCEN|UPDA1|UPDA2|LFU_REPLACE|DCOMPEN,B_CMD

 

For complete overwritting, i simply leave out the setting of B_PATD and the DCOMPEN-flag.

 

 

Kind regards

Matthias

 

Matthias,

 

Thank you very much for the information. i knew there were a few simple flags i had been missing for the transparent blit.

 

Thanks again for such a prompt response. :)

 

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×