BitmapMetadata.Location Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that identifies the base location of the metadata that is associated with an image.
public:
property System::String ^ Location { System::String ^ get(); };
public string Location { [System.Security.SecurityCritical] get; }
public string Location { get; }
[<get: System.Security.SecurityCritical>]
member this.Location : string
member this.Location : string
Public ReadOnly Property Location As String
Property Value
The base location of the image metadata.
- Attributes
Examples
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();
Dim stream4 As New FileStream("image3.tif", FileMode.Create)
Dim myBitmapMetadata2 As New BitmapMetadata("tiff")
Dim encoder4 As 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()
Applies to
See also
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET