Visual Basic (Declaration) | |
---|---|
Public Property UseDpi As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public bool UseDpi {get; set;} |
Managed Extensions for C++ | |
---|---|
public: __property bool get_UseDpi(); public: __property void set_UseDpi( bool value ); |
XAML Attributes Usage | |
---|---|
<object UseDpi=bool/> |
Dependency Property Information | |
---|---|
Identifier field | |
Metadata properties set to true | None |
Return Value
true - calculate the width and height for the image according to the BitmapSource.DpiX and BitmapSourcs.DpiY, which can be obtained through BitmapSource.Width and BitmapSource.Height.false - calculate the width and height for the image according to the BitmapSource.PixelWidth and BitmapSource.PixelHeight. Default value is true. This is the default behaviour in WPF.
For XAML example, refer to Source.
For C#/VB examples, refer to BitmapSourceViewerElement.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family