I can't seem to figure this out - I've got a transparent control, and am using the following code to try and make the composite image transparent (I'm overriding OnPaint):
e.Graphics.Clear(Color.Transparent);
e.Graphics.DrawImage(this.DisplayableImage, this.Loc);
If I put the Clear statement below DrawImage, as it's done in the skeleton plugin, the whole image becomes black.
[ATTACHMENT NOT FOUND]
BTW, I'm using SkinHelper's GetNamedImage to generate DisplayableImage.
Anyone ever run into something like this?
UPDATE: the whole source code has been posted at SourceForge, if you need to take a look (offending code is at line 116 of CompositeImage.cs). (BTW, the WYSIWYG is now connected to the selected XML file, and lets you see properties for selected composite images. However, there's currently a problem if you close one skin, then open another. I think I'll eventually try an MDI or tabbed interface so you can have mult. skins open. The directory tree view also has context sensitve menues that all work.)
Anyway, if you help me solve the problem, I'll put your name in the credits ('cause of course, it would be impossible to do yourself, having the source code available and all, but that would be cheating ).
gruskada
e.Graphics.Clear(Color.Transparent);
e.Graphics.DrawImage(this.DisplayableImage, this.Loc);
If I put the Clear statement below DrawImage, as it's done in the skeleton plugin, the whole image becomes black.
[ATTACHMENT NOT FOUND]
BTW, I'm using SkinHelper's GetNamedImage to generate DisplayableImage.
Anyone ever run into something like this?
UPDATE: the whole source code has been posted at SourceForge, if you need to take a look (offending code is at line 116 of CompositeImage.cs). (BTW, the WYSIWYG is now connected to the selected XML file, and lets you see properties for selected composite images. However, there's currently a problem if you close one skin, then open another. I think I'll eventually try an MDI or tabbed interface so you can have mult. skins open. The directory tree view also has context sensitve menues that all work.)
Anyway, if you help me solve the problem, I'll put your name in the credits ('cause of course, it would be impossible to do yourself, having the source code available and all, but that would be cheating ).
gruskada