怎样显示资源中的图片?
namespace ClassLibrary1
{
public class Class1:Control
{
protected override void CreateChildControls()
{
Image image = new Image();
this.Controls.Add(image);
//在winForm这样图片,但在WebControl中设置image的属性才能显示图片?
//下面的代码是winform的
//this.pictureBox1.Image = new Bitmap(
//Assembly.GetExecutingAssembly().GetManifestResourceStream(this.GetType(), "a.jpg"));
}
}
}