• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号
您的位置:首页 > 程序设计 >ASP > ASPJPEG综合操作的CLASS类

ASPJPEG综合操作的CLASS类

作者: 字体:[增加 减小] 来源:互联网 时间:2017-05-11

通过本文主要向大家介绍了aspjpeg,aspjpeg组件下载,aspjpeg组件,aspjpeg水印,aspjpeg组件64位等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
<% 
'ASPJPEG综合操作CLASS 
Class AspJpeg 
Dim AspJpeg_Obj,obj 
Private Img_MathPath_From,Img_MathPath_To,Img_Reduce_Size,CoverIf 
Private Img_Frame_Size,Img_Frame_Color,Img_Frame_Solid,Img_Frame_Width,Img_Frame_Height 
Private Img_Font_Content,Img_Font_Family,Img_Font_Color,Img_Font_Quality,Img_Font_Size,Img_Font_Bold,Img_Font_X,Img_Font_Y 
Private Img_PicIn_Path,Img_PicIn_X,Img_PicIn_Y 
'--------------取原文件路径 
Public Property Let MathPathFrom(StrType) 
Img_MathPath_From=StrType 
End Property 

'--------------取文件保存路径 
Public Property Let MathPathTo(strType) 
Img_MathPath_To=strType 
End Property 

'--------------保存文件时是否覆盖已有文件 
Public Property Let CovePro(LngSize) 
If LngSize=0 or LngSize=1 or LngSize=true or LngSize=false then 
CoverIf=LngSize 
End If 
End Property 

'---------------取缩略图/放大图 缩略值 
Public Property Let ReduceSize(LngSize) 
If isNumeric(LngSize) then 
Img_Reduce_Size=LngSize 
End If 
End Property 

'---------------取描边属性 
'边框粗细 
Public Property Let FrameSize(LngSize) 
If isNumeric(LngSize) then 
Img_Frame_Size=Clng(LngSize) 
End If 
End Property 
'边框宽度 
Public Property Let FrameWidth(LngSize) 
If isNumeric(LngSize) then 
Img_Frame_Width=Clng(LngSize) 
End If 
End Property 
'边框高度 
Public Property Let FrameHeight(LngSize) 
If isNumeric(LngSize) then 
Img_Frame_Height=Clng(LngSize) 
End If 
End Property 
'边框颜色 
Public Property Let FrameColor(strType) 
If strType<>"" then 
Img_Frame_Color=strType 
End If 
End Property 
'边框是否加粗 
Public Property Let FrameSolid(LngSize) 
If LngSize=1 or LngSize=0 or LngSize=true or LngSize=false then 
Img_Frame_Solid=LngSize 
End If 
End Property 

'---------------取插入文字属性 
'插入的文字 
Public Property Let Content(strType) 
If strType<>"" then 
Img_Font_Content=strType 
End If 
End Property 
'文字字体 
Public Property Let FontFamily(strType) 
If strType<>"" then 
Img_Font_Family=strType 
End If 
End Property 
'文字颜色 
Public Property Let FontColor(strType) 
If strType<>"" then 
Img_Font_Color=strType 
End If 
End Property 
'文字品质 
Public Property Let FontQuality(LngSize) 
If isNumeric(LngSize) then 
Img_Font_Quality=Clng(LngSize) 
End If 
End Property 
'文字大小 
Public Property Let FontSize(LngSize) 
If isNumeric(LngSize) then 
Img_Font_Size=Clng(LngSize) 
End If 
End Property 
'文字是否加粗 
Public Property Let FontBold(LngSize) 
If LngSize=1 or LngSize=0 or LngSize=true or LngSize=false then 
Img_Font_Bold=LngSize 
End If 
End Property 
'输入文字的X坐标 
Public Property Let FontX(LngSize) 
If isNumeric(LngSize) then 
Img_Font_X=Clng(LngSize) 
End If 
End Property 
'输入文字的Y坐标 
Public Property Let FontY(LngSize) 
If isNumeric(LngSize) then 
Img_Font_Y=Clng(LngSize) 
End If 
End Property 

'---------------取插入图片属性 
'插入图片的路径 
Public Property Let PicInPath(strType) 
Img_PicIn_Path=strType 
End Property 
'图片插入的X坐标 
Public Property Let PicInX(LngSize) 
If isNumeric(LngSize) then 
Img_PicIn_X=Clng(LngSize) 
End If 
End Property 
'图片插入的Y坐标 
Public Property Let PicInY(LngSize) 
If isNumeric(LngSize) then 
Img_PicIn_Y=Clng(LngSize) 
End If 
End Property 


Private Sub Class_Initialize() 
Set AspJpeg_Obj=createObject("Persits.Jpeg") 
Img_MathPath_From="" 
Img_MathPath_To="" 
Img_Reduce_Size=150 
Img_Frame_Size=1 
'Img_Frame_Width=0 
'Img_Frame_Height=0 
'Img_Frame_Color="&H000000" 
'Img_Frame_Bold=false 
Img_Font_Content="GoldenLeaf" 
'Img_Font_Family="Arial" 
'Img_Font_Color="&H000000" 
Img_Font_Quality=3 
Img_Font_Size=14 
'Img_Font_Bold=False 
Img_Font_X=10 
Img_Font_Y=5 
'Img_PicIn_X=0 
'Img_PicIn_Y=0 
CoverIf=1 

End Sub 
Private Sub Class_Terminate() 
Err.Clear 
Set AspJpeg_Obj=Nothing 
End Sub 
'判断文件是否存在 
Private Function FileIs(path) 
Set fsos=Server.createObject("Scripting.FileSystemObject") 
FileIs=fsos.FileExists(path) 
Set fsos=Nothing 
End Function 

'判断目录是否存在 
Private Function FolderIs(path) 
Set fsos=Server.createObject("Scripting.FileSystemObject") 
FolderIs=fsos.FolderExists(path) 
Set fsos=Nothing 
End Function 
'******************************************* 
'函数作用:取得当前文件的上一级路径 
'******************************************* 
Private Function UpDir(ByVal D) 
If Len(D) = 0 then 
UpDir="" 
Else 
UpDir=Left(D,InStrRev(D,"\")-1) 
End If 
End Function 

Private Function Errors(Errors_id) 
select Case Errors_id 
Case "0" 
Errors="指定文件不存在" 
Case 1 
Errors="指定目录不存在" 
Case 2 
Errors="已存在相同名称文件" 
Case 3 
Errors="参数溢出" 
End select 
End Function 


'取图片宽度 
Public Function ImgInfo_Width(Img_MathPath) 
If Not(FileIs(Img_MathPath)) then 
'Exit Function 
ImgInfo_Width=Errors(0) 
Else 
AspJpeg_Obj.Open Img_MathPath 
ImgInfo_Width=AspJpeg_Obj.width 
End If 
End Function 
'取图片高度 
Public Function ImgInfo_Height(Img_MathPath) 
If Not(FileIs(Img_MathPath)) then 
'Exit Function 
ImgInfo_Height=Errors(0) 
Else 
AspJpeg_Obj.Open Img_MathPath 
ImgInfo_Height=AspJpeg_Obj.height 
End If 
End Function 
'生成缩略图/放大图 
Public Function Img_
分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • ASP组件AspJpeg(加水印)生成缩略图等使用方法
  • aspJpeg图片水印有杂点的完美解决方法
  • 基于ASPJPEG 制作了一个梦寐已久的批量水印工具步骤
  • aspjpeg 添加水印教程及生成缩略图教程
  • aspjpeg组件通用加水印函数代码
  • asp水印组件之AspJpeg的结合代码实例
  • ASPJPEG综合操作的CLASS类
  • 结合FSO操作和Aspjpeg组件写的Class
  • 利用ASPUPLOAD,ASPJPEG实现图片上传自动生成缩略图及加上水印
  • ASPJPEG学习手记

相关文章

  • 2017-05-11ASP七大对象说明分析
  • 2017-05-11直接保存URL图像或网页到服务器本地的类
  • 2017-05-11做文章系统时, 如何让长篇的文章自动换行
  • 2017-05-11经典的分页完整程序+注释
  • 2017-05-11两个小函数让你的ASP程序对SQL注入免疫!
  • 2017-05-11asp控制xml数据库的经典代码
  • 2017-05-11asp的SQL语句中and和or同时使用的注意事项
  • 2017-05-11用ASP实现写IIS日志的代码
  • 2017-05-11定期自动运行ASP程式的代码
  • 2017-05-11asp向数据库插入数据的方法rs

文章分类

  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号

最近更新的内容

    • ASP版实现cookies注入加速工具
    • Discuz!NT 论坛整合ASP程序论坛教程
    • asp实现的sha1加密解密代码(和C#兼容)
    • 详细讲解ASP脚本循环语句
    • asp实现防止从外部提交数据的三种方法第1/3页
    • 使用XMLDOM在不支持FSO的服务器上
    • 关于ASP生成伪参数技巧
    • asp截取字符串的两种应用 原创
    • ASP生成数字相加求和的BMP图片验证码
    • [转]ASP常用函数:TimeZone

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有