Transparent Images

W

WM Developer

Hi,
I can draw transparent images in a buffer and blit the final result out.
However,

I have a setup like this;
Code:
ChildComponent : Control {
// draws itself by override OnPaint() method useing Graphics.DrawImage() it
overlaps transparent images to make final image first by specifying
ImageAttributes to DrawImage()  method.
}

ParentComponent : COntrol {
ChildComponent child;
OnPaint() { /* draws images  */ }
}

Child control will overrite write ParentComponent screen because it is in
different context. However, If ChildComponent can copy the underlying image
of ParentComponent into buffer, it can draw it's images ontop of it and then
blit out with e.Graphics.DrawImage(0, 0, BackBuffer);

Problem, how do I scrape the image from underlying Parent component from
child image into BackBuffer? I only want the part that the child is
overlapping.

Help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top