I want to draw images. So, I do :
myPanel.Invalidate(new Rectangle(state.getEndX(), state.getEndY(),
state.getSize(), state.getSize()));
Then :
public override void repaint(object sender,
System.Windows.Forms.PaintEventArgs e, int x, int y)
{
e.Graphics.DrawImage(newImage, new Rectangle(x, y, size, size), 0, 0, size,
size, GraphicsUnit.Pixel, imageAttr);
}
But, I use an imageAttr, in order to hide certain colors. But, if I draw one
image on another, the news one is erasing everything under it. So, instead
having my colorkey around my image, I have the color of the panel.
Any idea ?