BitmapMetadata.IsFixedSize Property
.NET Framework 3.0
Gets a value that determines whether the BitmapMetadata object is a fixed size.
Namespace: System.Windows.Media.Imaging
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
The following code example demonstrates how to read various properties of the BitmapMetadata object and send their values to a MessageBox as strings.
FileStream stream4 = new FileStream("image3.tif", FileMode.Create); BitmapMetadata myBitmapMetadata2 = new BitmapMetadata("tiff"); TiffBitmapEncoder encoder4 = new TiffBitmapEncoder(); MessageBox.Show(myBitmapMetadata2.IsFixedSize.ToString()); MessageBox.Show(myBitmapMetadata2.IsReadOnly.ToString()); MessageBox.Show(myBitmapMetadata2.Format.ToString()); MessageBox.Show(myBitmapMetadata2.Location.ToString()); encoder4.Frames = decoder2.Frames; encoder4.Save(stream4); stream4.Close();
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.