Share via


UIImage.FromFile(String) 메서드

정의

지정된 파일에서 이미지 개체를 만듭니다.

[Foundation.Export("imageWithContentsOfFile:")]
[ObjCRuntime.ThreadSafe]
public static UIKit.UIImage FromFile (string filename);
static member FromFile : string -> UIKit.UIImage

매개 변수

filename
String

로드할 이미지 파일의 경로를 포함합니다.

반환

UIImage 개체이거나 null 파일을 찾을 수 없거나 이미지를 만들 수 없는 경우 입니다.

특성

설명

백그라운드 스레드에서 사용할 수 있습니다.

적용 대상