梦幻西游人气号多少钱:aspjpeg问题急

来源:百度文库 编辑:中科新闻网 时间:2024/05/04 07:46:42
aspjpeg问题急
<%
dim neirong
neirong=request("neirong")
Set Jpeg = Server.CreateObject("Persits.Jpeg")
' Open source image
Jpeg.Open Server.MapPath("xinupage_r11_c2.gif")

' Resizing is optional. None in this code sample.

' Draw text
Jpeg.Canvas.Font.Color = &Hff0000 ' Red
Jpeg.Canvas.Font.Family = "隶书"
Jpeg.Canvas.Font.Bold = ture
Jpeg.Canvas.Font.Quality = 10 ' Antialiased
Jpeg.Canvas.Font.BkMode = "Trasparency" ' to make antialiasing work
Jpeg.Canvas.Print 10, 10, neirong

' Draw frame: black, 2-pixel width
Jpeg.Canvas.Pen.Color = &H000000 ' Black
Jpeg.Canvas.Pen.Width = 3
Jpeg.Canvas.Brush.Solid = false ' or a solid bar would be drawn
Jpeg.Canvas.DrawBar 1, 1, Jpeg.Width, Jpeg.Height

Jpeg.Save Server.MapPath("shuoming2.gif")
%>
<img src="shuoming2.gif">
我是这么写的,现在已经可以实现,但我想知道怎么才可以让他生成的文字水印没有背景。现在老是出现白色的背景啊!

先加注释再帮你看