AmiBlitz³

Normale Version: Blit with no transparency (like Block)
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Hello,

Does someone know how it is possible to disable the transparency colour while blitting a shape ?
In some cases, it can be helpful to not have to delete or restore the overwriten graphics.
(I do not want to duplicate a colour into the palette as a workaround)

The Block command do it fine, but it has some cooditinate restrictions that I can't affort.

Thank you for your help! Smile

---

Hallo,

Weiß jemand, wie es möglich ist, die Transparenzfarbe beim Blitten einer Form zu deaktivieren?
In manchen Fällen kann es hilfreich sein, die überschriebenen Grafiken nicht löschen oder wiederherstellen zu müssen.
(Ich möchte als Workaround keine Farbe in die Palette duplizieren.)

Der Block-Befehl funktioniert einwandfrei, es gibt jedoch einige Einschränkungen, die ich mir nicht leisten kann.

Ich danke Ihnen für Ihre Hilfe! Smile
Ohje, das geht mit BlitMode. Damit werden die Blitter Minterms eingestellt.

Ich hatte das schon mal in EAB beantwortet, wenn es dir nichts ausmacht? Tongue 

https://eab.abime.net/showthread.php?t=8...cookiemode

Die voreingestellten sind ja SolidMode, EraseMode, InvMode und CookieMode.

die Antwort aus dem Thread, die wohl passen könnte wäre:


Zitat:maybe i've solved it, the correct blitmode for something like block is : BlitMode % 111111110000

BlitMode % 110111110000 works too
Thank you for your answer, sadly it is probably limited to his own usage. It doesn't works for me.
In fact, I don't know if enabling/disabling the transparency is related to Bltcon0 or another place.
do you need this all the time?

you could make shapes without the cookie cut.
Well, It is only used to display some text at the same places, like time and score.
Something working for me: Just add ", 0" at the end of the Blit parameters. Smile