hi,
Plz help me with this one.
I have a series of images of a walking character that i want to blit on to a background. But the images blitted should be transparent. The first thing i did was that i got all the images into an array of stdPicture objects (i'm not using DirectX and i don't want to, at this moment). Then i wrote the code to load one of the images into the a picturebox that would be displaying the rest of the sequence when the user presses the LeftArrow key. But here i needed the characters background color i.e. White in this case to be transparent. So i thought of getting the background of the form to be blitted onto the picturebox first and then the characters image to be blitted using the API TransparentBlit. i.e.
call BitBlit(picture1.hdc,0,0,picture1.width,picture1.height,form1.hdc,picture1.left,picture1.top,SRCCOPY )
call TransprentBlit(picture1.hdc,0,0,picture1.width,pictue1.heoght,stdpicture(1).handle,0,0,stdpicture(1) .width,stdpicture(1).height,rgb(255,255,255))

but here the stdpicture(1).handle is the handle of the bitmap and not any DC. So the TransparentBlit function doesn't work.
How can i get this thing done without using any more image or pictureboxes.
I tried using one more picturebox, i.e. getting tthe stdpicture(1) into the second picturebox and then TransparentBliting it onto the picture1 picture box.
But after some time of working fine it gives me an out of memory error.