다음과 같이 해주시길 바랍니다.

< %@ Language=VBScript %>
< %
Dim UploadPath
Dim UploadPathWaterMark
Dim UploadPathThumbnail
Dim FilePath
Dim FilePath1

set uploadform=server.CreateObject("DEXT.FileUpload")

uploadform.DefaultPath="C:\Temp"

''원본 업로드(1)
UploadPath = uploadform("file").Save
Response.Write("Save as Source Image:" & UploadPath & "
")

set objImage =server.CreateObject("DEXT.ImageProc")

if true = objImage.SetSourceFile(UploadPath) then
''FileNameWithoutExt 속성은 업로드한 파일의 이름을 리턴한다.(확장자 제외)
SourceFileName = uploadform("file").FileNameWithoutExt

FilePath = "C:\Temp\" & SourceFileName & "(WaterMark).jpg"
FilePath1 = "C:\Temp\" & SourceFileName & "(Thumbnail).jpg"

''워터마크 처리(2)
UploadPathWaterMark = objImage.SaveAsWatermarkImage("/DEXTUploadProSamples/Image/WaterMark/watermark.bmp",FilePath,-10,-10,false)
Response.Write("Save as Watermark Image: " & UploadPathWaterMark & "
")
end if

if true = objImage.SetSourceFile(UploadPathWaterMark) then
''워터마킹 처리 된 이미지로 썸네일 처리 한다. (3)
UploadPathThumbnail = objImage.SaveasThumbnail(FilePath1, objImage.ImageWidth/2, objImage.ImageHeight/2, false)
Response.Write("Save as Thumbnail: " & UploadPathThumbnail & "
")
end if
%>



< %
set objImage = nothing
Set uploadform =nothing
%>
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2007/03/16 15:18 2007/03/16 15:18
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/2326

Trackback URL : http://tcbs17.cafe24.com/tc/trackback/2326

« Previous : 1 : ... 612 : 613 : 614 : 615 : 616 : 617 : 618 : 619 : 620 : ... 1009 : Next »

블로그 이미지

- 홍반장

Archives

Recent Trackbacks

Calendar

«   2024/11   »
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Statistics Graph

Site Stats

Total hits:
241650
Today:
180
Yesterday:
1266