Mirage Engine
bltTransparent - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: bltTransparent (/showthread.php?tid=1196)



bltTransparent - William - 18-08-2007

How come this works:
Code:
Call BitBlt(frmMirage.picInv(Q).hDC, 0, 0, PIC_X, PIC_Y + 32, frmMirage.picItemSetBMP.hDC, 0, 32, SRCCOPY)
WHen this does not?
Code:
Call TransparentBlt(frmMirage.picInv(Q).hDC, 0, 0, PIC_X, PIC_Y + 32, frmMirage.picItemSetBMP.hDC, 0, 32, 32, 64, RGB(0, 0, 0))

I do have encrypted gfx with zlib but I wouldn't think that would make a difference?


Re: bltTransparent - Robin - 18-08-2007

Show us the bltTransparent code.

By the way, this is going to lag your game to hell.


Re: bltTransparent - William - 18-08-2007

Really? Is blitTransparent that much worse than bitblt?


Re: bltTransparent - Robin - 18-08-2007

BitBlting 50 picture boxes is bad in itself.

I was working with the Konfuze Milestone source the other day, and when I opened the inventory my FPS dropped from 32 to 21.


Re: bltTransparent - Matt - 18-08-2007

My FPS doesn't drop at all with the same visual inventory system. O_o

It stays a constant 32 FPS.


Re: bltTransparent - Robin - 18-08-2007

This was whilst I was running some computer-intensive games.


Re: bltTransparent - Matt - 18-08-2007

Robin Wrote:This was whilst I was running some computer-intensive games.

Oh, okay.


Re: bltTransparent - Erik - 27-09-2007

I'm still curious as to why people are blitting into many picboxes -- it's much easier to just make a formula to blit all the items into one picbox, and making the entire picbox clickable by dividing sections up into 32 x 32 boxes and making an array for the item numbers.. Hmm.

Maybe I should make a tutorial.

EDIT: Sorry if this was a gravedigging post -- wasn't watching dates, and just realized that the last reply was August 18th.


Re: bltTransparent - Tony - 30-09-2007

Perfekt Wrote:My FPS doesn't drop at all with the same visual inventory system. O_o

It stays a constant 32 FPS.

I'm pretty sure it doesn't mean other people is going to get the same result.

Why not just blit the inventory? Less code, easier to manage.