您现在的位置: 无忧电子商务网 >> 信息学院 >> 程序开发 >> asp >> 正文

aspjpeg缩小图片的组件使用介绍(2)

作者:作者:未…    信息学院来源:网络收集    点击数:    更新时间:2006-8-27 我要参与讨论

  Adjusting Image Compression (advanced users only)

The JPEG format uses "lossy" compression methods. This means that some minor details of an image saved as a JPEG are lost during compression. The degree of loss can be adjusted via the jpeg.Quality property. This property accepts an integer in the range 0 to 100, with 0 being the highest degree of loss (and hence, the lowest quality) and 100 being the lowest degree of loss and highest quality.
The lower the loss, the larger the resultant file size. The property jpeg.Quality is set to 80 by default which provides a close-to-optimal combination of quality and file size. Changing this property is generally not recommended.

AspJpeg Object Reference

AspJpeg Properties
Expires As Date (read-only)
Returns the component's expiration date. If a valid registration key is installed, returns 9/9/9999.
Height As Long (read/write)
Specifies a new image height (in pixels). Must be called after an image is opened via the Open method.
Interpolation As Long (read/write)
Specifies an image resizing algorithm. The following values are currently supported: 0 (Nearest-Neighbor), 1 (Bilinear, default) and 2 (Bicubic).
The Nearest-Neighbor (NN) is the fastest but provides low-quality thumbnails.

The Bilinear method offers much better thumbnail quality but is approximately 2 times as slow as NN.

The Bicubic method is approximately twice as slow as Bilinear and 4 times as slow as NN, but supposedly offers the highest quality. In many cases, however, it provides little, if any, noticeable improvement over the Bilinear method.

Default: 1 (Bilinear).

OriginalHeight As Long (read-only)
Returns the original image height (in pixels). Can only be called after an image is opened via the Open method. Use this property to preserve the original aspect ratio of an image.
OriginalWidth As Long (read-only)
Returns the original image width (in pixels).Can only be called after an image is opened via the Open method. Use this property to preserve the original aspect ratio of an image.
Quality As Long (read/write)
Specifies the degree of compression loss. Affects the resultant image quality and file size.
Accepts an integer value in the range 0 to 100, 0 being the lowest quality, highest loss and smallest file size. The higher the value the higher the image quality, and the larger the file size.

The property Quality is set to 80 by default which offers a close-to-optimal combination of image quality and file size. Changing this property is generally not recommended.

Width As Long (read/write)
Specifies a new image width (in pixels). Must be called after an image is opened via the Open method.
AspJpeg Methods
Sub Close()
Closes a file opened via the Open method. This method is called automati

[1] [2] 下一页

在google里搜索更多aspjpeg缩小图片的组件使用介绍(2)

Google
Web www.51ec.org
【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
我来说两句 对此文章发表了评论
  昵 称: *必填    ·注册用户·
  评 分: 1分 2分 3分 4分 5分     严禁发表危害国家安全、政治、黄色淫秽等内容的评论,用户需对自己在使用本网站服务过程中的行为承担法律责任。本站管理员有权保留或删除评论内容,评论内容只代表机友个人观点,与本网站立场无关。  
评 论
内 容

 
评论列表 (最新 评论仅限网友观点!)

供求信息




| 设为首页 | 加入收藏 | 关于我们 | 广告服务 | 联系方式 | 友情链接 | 版权申明