Loads the image from a file. JPEG, PNG, WEBP, GIF, BMP, TIFF, ICO, JPEG 2000 formats are supported.
シンタックス
'宣言
Public Overloads Sub Load( _
ByVal As System.String, _
Optional ByVal As System.Integer, _
Optional ByVal As System.Nullable(Of Rectangle) _
)
public void Load(
System.string ,
System.int ,
System.Nullable<Rectangle>
)
パラメータ
- path
- The file path to the image.
- frameIndex
- Index of an image frame to read, pass 0 for image formats not supporting multiple frames.
- imageRect
- Clipping rectangle of the image to be loaded.
参照