网络编程
位置:首页>> 网络编程>> Asp编程>> 一个ASPJPEG组件的asp类 CLASS

一个ASPJPEG组件的asp类 CLASS

  发布时间:2008-03-11 12:22:00 

标签:aspjpeg,class,类

一个ASPJPEG组件综合操作的asp类CLASS

相关文章:

ASP怎么谈到应用到类的?

ASP中类的详细介绍(class Property Get、Property Let)


 

<% 
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 
%>
0
投稿

猜你喜欢

  • 每个人都可以编写CSS代码,甚至你现在已经让它为你的项目工作了。但是CSS还可以更好吗?开始用这5个Tips改进你的CSS吧!一、关于CSS
  • 1、Export/Import的用处 Oracle Export/Import工具用于在数据库之间传递数据。 Export从数据库中导出数据
  • JavaScript 代码一般最常见的语法格式就是定义函数 function xxx(){/*code...*/},经常有这样的一大堆函数定
  • 最近在学习正则,一些比较有用的东西怕忘记,记下来,比较乱,想一条记录一条:正则表达式在线测试//匹配文本,这个偶尔比较好用,但是要小心字符中
  • 非原创:英文版混乱的标记语言XHTML2/HTML5源文地址:漫画英文版源文地址感谢我的同事Kevin Jaw的翻译。他的博客地址是:Kev
  • 我想大家都有一些开了80端口的肉 * ,如果是国内的出于安全就不要往下看了,如果不不妨往下看一下,小弟献丑了,以求抛砖引玉。在肉鸡上放网站最麻
  • 又是一年春来到,看各大网站的新年Logo也成为了我们必不可少的新年餐点,为此,我们特别整理了部分网站的新年Logo秀,如果你看到了更加有意思
  • asp采集常用的几个FUCTION如:利用流保存文件,利用fso检测文件是否存在,利用fso检测文件夹是否存在,保存文件,取得远程数据等1.
  • 大家可能经常会遇到这种情况:sql="select * from table"set rs=conn.execute(s
  • 最近一直在做Dnn模块的开发,过程中碰到这么一个问题,需要同时插入N条数据,不想在程序里控制,但是SQL Sever又不支持数组参数.所以只
  • cooper谈到用户的视觉路径一般是:从上到下,从左到右。好的视觉设计路径应该是顺应这样的用户习惯,糟糕的设计会让用户无所适从,焦点到处都是
  • 这是一篇关于使用JScript RuntimeObject(MSDN)调试的文章。虽然这些例子中的大多数在其他浏览器中不能运行,但在IE 5
  • 一、备份数据库1、打开SQL企业管理器,在控制台根目录中依次点开Microsoft SQL Server2、SQL Server组-->
  • 微软的SQL Server 2005中用来替代数据传输服务(DTS)的SQL Server综合服务(SSIS),包含了很多工具用于导入数据并
  • 当你准备全面进军web标准时,有时候你是不是被表格的弄得焦头烂额呢?比如,原来使用“非法”的nobr现在要用什么来代替呢?今天,就让我来一个
  • 相信用过Gmail的人都知道Gmail有一个草稿自动保存的功能,每过一段时间,Gmail都会自动保存邮件草稿,这样在一些突 * 况下就能快速地
  • 代码如下:<% sql="select * from serr where
  • 1.比喻 如同Windows用桌面、文件夹、垃圾筒来比喻计算机的*作,Web的设计也是如此。善于利用明确、抽象或概念化的比喻ICON来表达各
  • 非常好的边框样式设置工具,使用该工具您可以很方便的为DIV设置简单的边框样式,如果放在DW中会更好。会制作DW插件的高手,请帮忙制作成DW插
  • 首先说说框架(Frameworks)这个词,框架就是为我们提供了一个平台一个运行环境,在如此统一的前提下我们做相关开发才能“有章可循”,要充
手机版 网络编程 asp之家 www.aspxhome.com