2011-05-11, 02:54 AM
sub Wrote:To be honest, I dont really follow what your mean.
If you're calling skinHelper.RenderElement(), passing in 'null' for the bitmap, then creates a new bitmap, fully transparent, then proceeds to draw the render instructions that make up the element. If the render instructions will result in a bitmap can either full the space, or have transparent or semi-transparent areas.
That's how I create it I pass it back as
Code:
if (name == "@previewImage")
{
// string aa = parameters["@name"].ToString();
// Debug.WriteLine(MusicBox4.GetInstance().activeAlbum + " " + width.ToString() + " " + height.ToString());
// image = (Image)parameters["@Image"];
if (MusicBox4.GetInstance().iconFiles.Contains(parameters["@Filename"].ToString()))
{
MemoryStream ms = new MemoryStream((byte[])MusicBox4.GetInstance().iconCache[parameters["@Filename"]]);
image = Image.FromStream(ms);
ms.Close();
ms.Dispose();
// = (Image) MusicBox4.GetInstance().iconCache[parameters["@Filename"].ToString()];
}
...
That "transparent" was just one of countless things I have tried, T didn't help. It's too much of a black art for me, I guess.
Martin