rush6432 0 Report post Posted January 7, 2012 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? Quote Share this post Link to post Share on other sites
Matthias 0 Report post Posted January 8, 2012 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 Quote Share this post Link to post Share on other sites
rush6432 0 Report post Posted January 8, 2012 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. Quote Share this post Link to post Share on other sites
rush6432 0 Report post Posted January 8, 2012 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. Quote Share this post Link to post Share on other sites