Gets or sets the Uri source of the BitmapImage. Gets or sets a value that represents the caching policy for images that come from an HTTP source. Gets or sets the stream source of the BitmapImage. Gets or sets the rectangle that is used as the source of the BitmapImage. Gets or sets the angle that this BitmapImage is rotated to. Gets the color palette of the bitmap, if one is specified. BitmapImage does not support the Metadata property and will throw a NotSupportedException. Gets a value that indicates whether this instance is currently sealed (read-only). Gets a value that indicates whether the object is currently modifiable. Gets a value that indicates whether the BitmapImage is currently downloading content. Gets the height of the source bitmap in device-independent units (1/96th inch per unit). Gets a value that indicates whether one or more AnimationClock objects is associated with any of this object's dependency properties. 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. #Simpleimage class how toThe following code examples demonstrate how to use a BitmapImage in Extensible Application Markup Language (XAML) and code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |