BitmapCodecInfo.DeviceManufacturer 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得值,識別轉碼器的裝置製造商。
public:
virtual property System::String ^ DeviceManufacturer { System::String ^ get(); };
public virtual string DeviceManufacturer { [System.Security.SecurityCritical] get; }
public virtual string DeviceManufacturer { get; }
[<get: System.Security.SecurityCritical>]
member this.DeviceManufacturer : string
member this.DeviceManufacturer : string
Public Overridable ReadOnly Property DeviceManufacturer As String
屬性值
轉碼器的裝置製造商。
- 屬性
範例
下列範例示範如何擷取 Author 指定 BitmapEncoder 之 的 屬性。 您可以使用相同的方法來擷取其他 BitmapCodecInfo 。
FileStream stream = new FileStream("empty.tif", FileMode.Create);
TiffBitmapEncoder encoder = new TiffBitmapEncoder();
TextBlock myTextBlock = new TextBlock();
myTextBlock.Text = "Codec Author is: " + encoder.CodecInfo.Author.ToString();
encoder.Frames.Add(BitmapFrame.Create(image));
MessageBox.Show(myPalette.Colors.Count.ToString());
encoder.Save(stream);
Dim stream As New FileStream("empty.tif", FileMode.Create)
Dim encoder As New TiffBitmapEncoder()
Dim myTextBlock As New TextBlock()
myTextBlock.Text = "Codec Author is: " + encoder.CodecInfo.Author.ToString()
encoder.Frames.Add(BitmapFrame.Create(image))
MessageBox.Show(myPalette.Colors.Count.ToString())
encoder.Save(stream)