Gets the native PixelFormat of the bitmap data. Gets the vertical dots per inch (dpi) of the image. Gets the horizontal dots per inch (dpi) of the image. Gets the Dispatcher this DispatcherObject is associated with. Gets the DependencyObjectType that wraps the CLR type of this instance. Gets or sets the width, in pixels, that the image is decoded to. Gets or sets the height, in pixels, that the image is decoded to. Gets or sets the BitmapCreateOptions for a BitmapImage. Gets a value that indicates whether the object can be made unmodifiable. ![]() Gets or sets the BitmapCacheOption to use for this instance of BitmapImage. Gets or sets a value that represents the base Uri of the current BitmapImage context. Identifies the UriSource dependency property. Identifies the UriCachePolicy dependency property. Identifies the StreamSource dependency property. Identifies the SourceRect dependency property. Identifies the Rotation dependency property. Identifies the DecodePixelWidth dependency property. Identifies the DecodePixelHeight dependency property. Identifies the CreateOptions dependency property. Identifies the CacheOption dependency property. Initializes a new instance of the BitmapImage class with an image whose source is a Uri, and is cached according to the provided RequestCachePolicy. Initializes a new instance of the BitmapImage class by using the supplied Uri. Initializes a new instance of the BitmapImage class. After initialization, property changes are ignored.īitmapImage objects created using the BitmapImage constructor are automatically initialized and property changes are ignored. ![]() Call BeginInit to signal that initialization has begun and EndInit to signal that initialization has completed. Property changes can only occur during object initialization. ' BitmapImage.UriSource must be in a BeginInit/EndInit block.īi.UriSource = New Uri("/sampleImages/cherries_larger.jpg", UriKind.RelativeOrAbsolute)īitmapImage primarily exists to support Extensible Application Markup Language (XAML) syntax and introduces additional properties for bitmap loading that are not defined by BitmapSource.īitmapImage implements the ISupportInitialize interface to optimize initialization on multiple properties. BitmapImage.UriSource must be in a BeginInit/EndInit block.īi.UriSource = new Set the image source. ![]() The following code examples demonstrate how to use a BitmapImage in Extensible Application Markup Language (XAML) and code.
0 Comments
Leave a Reply. |