|
Dieser Artikel wurde maschinell übersetzt. Bewegen Sie den Mauszeiger über die Sätze im Artikel, um den Originaltext anzuzeigen. Weitere Informationen
|
Übersetzung
Original
|
BitmapDecoder-Klasse
System.Windows.Threading.DispatcherObject
System.Windows.Media.Imaging.BitmapDecoder
System.Windows.Media.Imaging.BmpBitmapDecoder
System.Windows.Media.Imaging.GifBitmapDecoder
System.Windows.Media.Imaging.IconBitmapDecoder
System.Windows.Media.Imaging.JpegBitmapDecoder
System.Windows.Media.Imaging.LateBoundBitmapDecoder
System.Windows.Media.Imaging.PngBitmapDecoder
System.Windows.Media.Imaging.TiffBitmapDecoder
System.Windows.Media.Imaging.WmpBitmapDecoder
Namespace: System.Windows.Media.Imaging
Assembly: PresentationCore (in PresentationCore.dll)
Der BitmapDecoder-Typ macht die folgenden Member verfügbar.
| Name | Beschreibung | |
|---|---|---|
![]() | CodecInfo | |
![]() | ColorContexts | |
![]() | Dispatcher | |
![]() | Frames | |
![]() | IsDownloading | |
![]() | Metadata | |
![]() | Palette | |
![]() | Preview | |
![]() | Thumbnail |
| Name | Beschreibung | |
|---|---|---|
![]() | CheckAccess | |
![]() ![]() | Create(Stream, BitmapCreateOptions, BitmapCacheOption) | |
![]() ![]() | Create(Uri, BitmapCreateOptions, BitmapCacheOption) | |
![]() ![]() | Create(Uri, BitmapCreateOptions, BitmapCacheOption, RequestCachePolicy) | |
![]() | CreateInPlaceBitmapMetadataWriter | |
![]() | Equals(Object) | |
![]() | Finalize | |
![]() | GetHashCode | |
![]() | GetType | |
![]() | MemberwiseClone | |
![]() | ToString | |
![]() | VerifyAccess |
| Name | Beschreibung | |
|---|---|---|
![]() | DownloadCompleted | |
![]() | DownloadFailed | |
![]() | DownloadProgress |
BitmapDecoder uriBitmap = BitmapDecoder.Create( new Uri("sampleImages/waterlilies.jpg", UriKind.Relative), BitmapCreateOptions.None, BitmapCacheOption.Default); // Create an image element; Image uriImage = new Image(); uriImage.Width = 200; // Set image source. uriImage.Source = uriBitmap.Frames[0];
// Open a Stream and decode a TIFF image Stream imageStreamSource = new FileStream("tulipfarm.tif", FileMode.Open, FileAccess.Read, FileShare.Read); TiffBitmapDecoder decoder = new TiffBitmapDecoder(imageStreamSource, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.Default); BitmapSource bitmapSource = decoder.Frames[0]; // Draw the Image Image myImage1 = new Image(); myImage1.Source = bitmapSource; myImage1.Stretch = Stretch.None; myImage1.Margin = new Thickness(20);
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core-Rolle wird nicht unterstützt), Windows Server 2008 R2 (Server Core-Rolle wird mit SP1 oder höher unterstützt; Itanium wird nicht unterstützt)
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.
