日期:2014-05-16  浏览次数:20924 次

aspjpeg 缩小png图片后不透明了
<% ' Create instance of AspJpeg
Set Jpeg = Server.CreateObject("Persits.Jpeg") 
' Compute path to source image
Path = Server.MapPath("images") & "\hh.png" 
' Open source image
Jpeg.Open Path 
' Decrease image size by 50%
Jpeg.Width = Jpeg.OriginalWidth / 2
Jpeg.Height = Jpeg.OriginalHeight / 2 
' Apply sharpening if necessary
' Jpeg.Sharpen 1, 130 
' create thumbnail and save it to disk
Jpeg.Save Server.MapPath("images") & "\hh8.png"
%> 
<IMG SRC="images/hh.png"><P>
<IMG SRC="images/hh8.png"> 

------解决方案--------------------

------解决方案--------------------

已解决了 你想闹哪样
------解决方案--------------------
引用:
自己解决了 要加一句
Jpeg.PNGOutput = True
楼主用的是什么版本?要2.0以上才支持半透明。