ASPJPEG这个控件是com的还是.net的?

来源:百度知道 编辑:UC知道 时间:2024/05/18 07:21:51
如题如题
进一步的,如何分辨一个控件是COM的还是。net的??

我来帮你吧:是com组件啊,具体给你个例子,你看他的用法就可以辨别了,比较明显的:

<%
' Create instance of AspJpeg
Set Jpeg = Server.CreateObject("Persits.Jpeg")
' Open source image
Jpeg.Open "c:\path\myimage.jpg"

' New width
L = 100

' Resize, preserve aspect ratio
Jpeg.Width = L
Jpeg.Height = Jpeg.OriginalHeight * L / Jpeg.OriginalWidth

' create thumbnail and save it to disk
Jpeg.Save "c:\path\thumbnail.jpg"

%>