[asp]게시판에서 이미지가 클때 사이즈 깨짐 없이 조절하기

FilePath = “파일경로”

Set objImg = LoadPicture(FilePath)
x1 = clng(cdbl(objImg.Width)*24/635)
y1 = clng(cdbl(objImg.Height)*24/635)

if(x1 > “게시판넓이”)then

x2 = “게시판넓이”
y2 = “게시판넓이”
if x1 >= y1 then
y2 = cint((y1 * x2) / x1)
else
x2 = cint((x1 * y2) / y1)
end if

Response.Write(““)

else
Response.Write(““)
end if

Comments

Powered by Facebook Comments

댓글 남기기

당신의 이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다.

*

다음의 HTML 태그와 속성을 사용할 수 있습니다: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>