BitmapMetadata.Format Propiedad

Definición

Obtiene un valor que identifica el formato de la imagen.

public:
 property System::String ^ Format { System::String ^ get(); };
public string Format { [System.Security.SecurityCritical] get; }
public string Format { get; }
[<get: System.Security.SecurityCritical>]
member this.Format : string
member this.Format : string
Public ReadOnly Property Format As String

Valor de propiedad

Formato de la imagen de mapa de bits.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo leer varias propiedades del BitmapMetadata objeto y enviar sus valores a como MessageBox cadenas.

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()

Se aplica a