0

可以插入带有水印的asp.net面板吗?这些面板用于打印目的。另一个问题是面板中的背景图像没有打印,只有其中的对象。

4

3 回答 3

0
<asp:Panel ID="Panel1" runat="server">

<asp:Image ID="Image1" runat="server" ImageUrl="~/yourimage.png" />

<div style="margin-top: -xxx"><--change the position <div> to overlaps with the image
....

your content here 

....
</div>

</asp:Panel>
于 2013-11-15T07:33:32.027 回答
0

这是来自 codeproject 的另一个示例http://www.codeproject.com/KB/web-image/ASPImaging1.aspx,您可以对图像进行许多思考,包括从图像中添加水印。

于 2013-11-15T07:06:05.290 回答
0

我认为你应该看看BackImageUrl财产。并将水印图像的路径分配给它。

<asp:Panel BackImageUrl="yourimagefile.png" />

此外,应该为图像赋予适当的不透明度/alpha 值,使其透明。

于 2013-11-15T06:18:30.803 回答