搜尋結果
Microsoft Docs
The following code example demonstrates how to create an instance of and use a JpegBitmapDecoder from a Uri. The decoded image is used as the source of an Image control. C#. コピー. // Open a Uri and decode a JPEG image. Uri myUri = new Uri("tulipfarm.jpg", UriKind.RelativeOrAbsolute);