|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
当然了,现在国内CRM厂商的产品与其说是CRM,但从至少从我的角度分析上来看,充其量只是一个大型的进销存而已了,了解尚浅,不够胆详评,这里只提技术问题aspjpegAdjustingImageCompression(advancedusersonly)
TheJPEGformatuses"lossy"compressionmethods.ThismeansthatsomeminordetailsofanimagesavedasaJPEGarelostduringcompression.Thedegreeoflosscanbeadjustedviathejpeg.Qualityproperty.Thispropertyacceptsanintegerintherange0to100,with0beingthehighestdegreeofloss(andhence,thelowestquality)and100beingthelowestdegreeoflossandhighestquality.
Thelowertheloss,thelargertheresultantfilesize.Thepropertyjpeg.Qualityissetto80bydefaultwhichprovidesaclose-to-optimalcombinationofqualityandfilesize.Changingthispropertyisgenerallynotrecommended.
AspJpegObjectReference
AspJpegProperties
ExpiresAsDate(read-only)
Returnsthecomponentsexpirationdate.Ifavalidregistrationkeyisinstalled,returns9/9/9999.
HeightAsLong(read/write)
Specifiesanewimageheight(inpixels).MustbecalledafteranimageisopenedviatheOpenmethod.
InterpolationAsLong(read/write)
Specifiesanimageresizingalgorithm.Thefollowingvaluesarecurrentlysupported:0(Nearest-Neighbor),1(Bilinear,default)and2(Bicubic).
TheNearest-Neighbor(NN)isthefastestbutprovideslow-qualitythumbnails.
TheBilinearmethodoffersmuchbetterthumbnailqualitybutisapproximately2timesasslowasNN.
TheBicubicmethodisapproximatelytwiceasslowasBilinearand4timesasslowasNN,butsupposedlyoffersthehighestquality.Inmanycases,however,itprovideslittle,ifany,noticeableimprovementovertheBilinearmethod.
Default:1(Bilinear).
OriginalHeightAsLong(read-only)
Returnstheoriginalimageheight(inpixels).CanonlybecalledafteranimageisopenedviatheOpenmethod.Usethispropertytopreservetheoriginalaspectratioofanimage.
OriginalWidthAsLong(read-only)
Returnstheoriginalimagewidth(inpixels).CanonlybecalledafteranimageisopenedviatheOpenmethod.Usethispropertytopreservetheoriginalaspectratioofanimage.
QualityAsLong(read/write)
Specifiesthedegreeofcompressionloss.Affectstheresultantimagequalityandfilesize.
Acceptsanintegervalueintherange0to100,0beingthelowestquality,highestlossandsmallestfilesize.Thehigherthevaluethehighertheimagequality,andthelargerthefilesize.
ThepropertyQualityissetto80bydefaultwhichoffersaclose-to-optimalcombinationofimagequalityandfilesize.Changingthispropertyisgenerallynotrecommended.
WidthAsLong(read/write)
Specifiesanewimagewidth(inpixels).MustbecalledafteranimageisopenedviatheOpenmethod.
AspJpegMethods
SubClose()
ClosesafileopenedviatheOpenmethod.ThismethodiscalledautomaticallyuponthedestructionoftheAspJpegobject,soyoudonothavetocallitexplicitly,unlessthereisanimmediateneedtofreethefilehandle(suchas,ifyouneedtodeletethefile).
SubCrop(x0AsLong,y0AsLong,x1AsLong,y1AsLong)
Cutsedgesoffofathumbnail.Forthismethodtotakeeffect,youmustcallitbeforecalling.Saveor.SendBinary.
Thearguments(x0,y0)and(x1,y1)arethecoordinatesoftheupper-leftandlower-rightcornersofthedesiredcroppedimagewithinthethumbnail.Forexample,iftheoriginallargeimageis300pixelswideand200pixelshigh,thefollowingsequencewillproduceacroppedthumbnailwhichis60pixelswideand40pixelshigh:
Jpeg.Width=120
Jpeg.Height=80
Crop20pixelsfromleft,30fromtop.
Makeimagesize60by40.
Jpeg.Crop20,30,80,70
SubFlipH()
Flipstheresultantthumbnailhorizontally.Forthismethodtotakeeffect,youmustcallitbeforecalling.Saveor.SendBinary.
SubFlipV()
Flipstheresultantthumbnailvertically.Forthismethodtotakeeffect,youmustcallitbeforecalling.Saveor.SendBinary.
SubOpen(PathAsString)
OpensaJPEGimageforresizing.Pathmustbeaphysicalpathtotheimage.
SubSave(PathAsString)
Resizesthecurrentlyopenedimageusingparametersspecifiedbyvariousproperties.SavetheresultantimagethumbnailtoafilespecifiedbyPath.Ifafilewiththisnamealreadyexistsitwillbeoverwritten.
SubSendBinary(OptionalContentDisposition)
Resizesthecurrentlyopenedimageusingparametersspecifiedbyvariousproperties.SendstheresultantimagedirectlytotheclientbrowserbyinternallycallingResponse.BinaryWrite.AutomaticallysetstheContent-Typeheaderto"image/jpeg".
IfContentDisposit</p>源代码保护方面其实现在考虑得没那么多了..NET也可以反编译.ASP写得复杂的话别人能看得懂的话.他也有能力自己写了.这方面担心的倒不太多.纵观现在网上可以下载的那些所谓BBS还有什么网站等等的源代码 |
|