다음을 통해 공유


WebImage.Save(String, String, Boolean) 메서드

정의

지정된 파일 이름을 사용하여 이미지를 저장합니다.

public System.Web.Helpers.WebImage Save(string filePath = default, string imageFormat = default, bool forceCorrectExtension = true);
member this.Save : string * string * bool -> System.Web.Helpers.WebImage
Public Function Save (Optional filePath As String = null, Optional imageFormat As String = null, Optional forceCorrectExtension As Boolean = true) As WebImage

매개 변수

filePath
String

이미지를 저장할 경로입니다.

imageFormat
String

이미지 파일이 저장될 때 사용할 형식(예: "gif" 또는 "png")입니다.

forceCorrectExtension
Boolean

true이면 올바른 파일 이름 확장명을 에 imageFormat지정된 형식에 사용하도록 합니다. 그렇지 않으면 false입니다. 파일 형식과 지정된 파일 이름 확장명 사이에 불일치가 있고 이 true이면 forceCorrectExtension 파일 이름에 올바른 확장명을 추가합니다. 예를 들어 이름이 Photograph.txt인 PNG 파일은 Photograph.txt.png라는 이름으로 저장됩니다.

반환

이미지.

적용 대상