PDA

Click to See Complete Forum and Search --> : A question for all you whizz-kids...


V(ery) Basic
Apr 23rd, 2000, 06:31 PM
I want to BitBlt a picture on top of another picture. If I
use the most useful one (vbSrcInvert) The picture comes all
funny because the background is made of different colours.

Should I use MaskBlt or something else.

I know you know the answer.

Well, why not tell me, and add 1 to your 'posts'.

You know you want to.

Don't hold back.

Oh, well, BYE!

Fox
Apr 23rd, 2000, 08:06 PM
I don't really know what you mean... if you want to draw the picture with transparency - this question has already been answered. I don't understand why you use srcInvert... So please explain a bit more... ;)

V(ery) Basic
Apr 23rd, 2000, 10:49 PM
Well, I've since found what I wanted (it was a sort of
sprite.) It used BitBlt SrcAnd, SrcCopy and SrcInvert to
transform a masked and picture + mask, into a picture on
any background (ie transparent, ish).

Just to explain what I wanted to do:

It is a person walking all over the place. I had the person
in all of his 8 positions on pictureboxes, but because the
terrain was multi-coloured, using BitBlt SrcInvert meant
that the guy's colour scheme became all screwed up.

So I wanted a guy who wasn't shaped like a box and who
didn't go all funny-coloured when he went across colours.

I thought of making my own stuff, but I could never get
all the SrcCopy, SrcAnd, SrcInvert etc in the right order.

I found the answer after a bit of searching in About.com

(MSDN had nothing relevant to say on the matter...as always)

Sorry if the q was unclear.

PS Would MaskBlt have done this for me?

Adios, amigos

Fox
Apr 24th, 2000, 12:44 AM
I never used MaskBlt but I think so...

well, If you had a look at my demo project you'd see that you can draw sprites with SrcPaint + SrcAnd only. ;)

kedaman
Apr 24th, 2000, 12:49 AM
Bitblt was the first API I learned, and still it's the most used one. =) In Vb3 there was an example of how to draw a transparent bouncy (+) from which I developed my first tilebased game