System windows media imaging bitmapsource

Bitmap Source Class

Definition

Represents a single, constant set of pixels at a certain size and resolution.

Examples

The following code example demonstrates how to create a BitmapSource and use it as the source of an Image control.

The following code example uses a BitmapSource derived class, BitmapImage, to create a bitmap from an image file and use it as the source of an Image control.

Remarks

BitmapSource is the basic building block of the Windows Presentation Foundation (WPF) imaging pipeline, conceptually representing a single, constant set of pixels at a certain size and resolution. A BitmapSource could be a single frame in an image file that a decoder provides, or it could be the result of a transform that operates on a BitmapSource of its own. BitmapSource is not used to represent a multi-frame image or an animation.

Windows Presentation Foundation (WPF) natively supports compression and decompression of bitmap (BMP), Graphics Interchange Format (GIF), Joint Photographics Experts Group (JPEG), Portable Network Graphics (PNG), and Tagged Image File Format (TIFF) images.

For bitmap decoding scenarios, BitmapSource uses automatic codec discovery, based on the installed codecs on the user’s system.

The maximum height and width of an image is 2^16 pixels at 32 bits per channel * 4 channels. The maximum size of a BitmapSource is 2^32 bytes (64 gigabytes) and the maximum image size is four gigapixels. The minimum image size is 1×1.

Constructors

Initializes a new instance of the BitmapSource class.

Properties

Gets a value that indicates whether the object can be made unmodifiable.

(Inherited from Freezable) DependencyObjectType

Gets the DependencyObjectType that wraps the CLR type of this instance.

(Inherited from DependencyObject) Dispatcher

Gets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject) DpiX

Gets the horizontal dots per inch (dpi) of the image.

Gets the vertical dots per inch (dpi) of the image.

Gets the native PixelFormat of the bitmap data.

Gets a value that indicates whether one or more AnimationClock objects is associated with any of this object’s dependency properties.

(Inherited from Animatable) Height

Gets the height of the source bitmap in device-independent units (1/96th inch per unit).

Gets a value that indicates whether the BitmapSource content is currently downloading.

Gets a value that indicates whether the object is currently modifiable.

(Inherited from Freezable) IsSealed

Gets a value that indicates whether this instance is currently sealed (read-only).

(Inherited from DependencyObject) Metadata

Gets the metadata that is associated with this bitmap image.

Gets the color palette of the bitmap, if one is specified.

Gets the height of the bitmap in pixels.

Gets the width of the bitmap in pixels.

Gets the width of the bitmap in device-independent units (1/96th inch per unit).

Methods

Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the SnapshotAndReplace handoff behavior is used.

(Inherited from Animatable) ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)

Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the specified HandoffBehavior is used.

(Inherited from Animatable) BeginAnimation(DependencyProperty, AnimationTimeline)

Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the SnapshotAndReplace handoff behavior is used.

(Inherited from Animatable) BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)

Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the specified HandoffBehavior is used.

(Inherited from Animatable) CheckAccess()

Determines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject) CheckIfSiteOfOrigin()

Checks whether the bitmap source content is from a known site of origin. This method is used to make sure that pixel copying operations are safe.

Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier.

(Inherited from DependencyObject) ClearValue(DependencyPropertyKey)

Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey.

(Inherited from DependencyObject) Clone()

Creates a modifiable clone of this BitmapSource, making deep copies of this object’s values. When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values.

Makes this instance a deep copy of the specified BitmapSource. When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values.

Creates a modifiable clone of this BitmapSource object, making deep copies of this object’s current values. Resource references, data bindings, and animations are not copied, but their current values are.

Makes this instance a modifiable deep copy of the specified BitmapSource using current property values. Resource references, data bindings, and animations are not copied, but their current values are.

Coerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.

(Inherited from DependencyObject) CopyPixels(Array, Int32, Int32)

Copies the bitmap pixel data into an array of pixels with the specified stride, starting at the specified offset.

Copies the bitmap pixel data within the specified rectangle into an array of pixels that has the specified stride starting at the specified offset.

Copies the bitmap pixel data within the specified rectangle.

Creates a new BitmapSource from an array of pixels.

Creates a new BitmapSource from an array of pixels that are stored in unmanaged memory.

Initializes a new instance of the Freezable class.

(Inherited from Freezable) CreateInstanceCore()

When implemented in a derived class, creates a new instance of the Freezable derived class.

(Inherited from Freezable) Equals(Object)

Determines whether a provided DependencyObject is equivalent to the current DependencyObject.

(Inherited from DependencyObject) Freeze()

Makes the current object unmodifiable and sets its IsFrozen property to true .

(Inherited from Freezable) FreezeCore(Boolean)

Makes an instance of BitmapSource or a derived class immutable.

Returns the non-animated value of the specified DependencyProperty.

(Inherited from Animatable) GetAsFrozen()

Creates a frozen copy of the Freezable, using base (non-animated) property values. Because the copy is frozen, any frozen sub-objects are copied by reference.

(Inherited from Freezable) GetAsFrozenCore(Freezable)

Makes this instance a clone of the specified BitmapSource object.

Creates a frozen copy of the Freezable using current property values. Because the copy is frozen, any frozen sub-objects are copied by reference.

(Inherited from Freezable) GetCurrentValueAsFrozenCore(Freezable)

Makes this instance a frozen clone of the specified BitmapSource. Resource references, data bindings, and animations are not copied, but their current values are.

Gets a hash code for this DependencyObject.

(Inherited from DependencyObject) GetLocalValueEnumerator()

Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.

(Inherited from DependencyObject) GetType()

Gets the Type of the current instance.

(Inherited from Object) GetValue(DependencyProperty)

Returns the current effective value of a dependency property on this instance of a DependencyObject.

(Inherited from DependencyObject) InvalidateProperty(DependencyProperty)

Re-evaluates the effective value for the specified dependency property.

(Inherited from DependencyObject) MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object) OnChanged()

Called when the current Freezable object is modified.

(Inherited from Freezable) OnFreezablePropertyChanged(DependencyObject, DependencyObject)

Ensures that appropriate context pointers are established for a DependencyObjectType data member that has just been set.

Читайте также:  Не открываются сетевые диски windows 10

(Inherited from Freezable) OnFreezablePropertyChanged(DependencyObject, DependencyObject, DependencyProperty)

This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

(Inherited from Freezable) OnPropertyChanged(DependencyPropertyChangedEventArgs)

Overrides the DependencyObject implementation of OnPropertyChanged(DependencyPropertyChangedEventArgs) to also invoke any Changed handlers in response to a changing dependency property of type Freezable.

(Inherited from Freezable) ReadLocalValue(DependencyProperty)

Returns the local value of a dependency property, if it exists.

(Inherited from DependencyObject) ReadPreamble()

Ensures that the Freezable is being accessed from a valid thread. Inheritors of Freezable must call this method at the beginning of any API that reads data members that are not dependency properties.

(Inherited from Freezable) SetCurrentValue(DependencyProperty, Object)

Sets the value of a dependency property without changing its value source.

(Inherited from DependencyObject) SetValue(DependencyProperty, Object)

Sets the local value of a dependency property, specified by its dependency property identifier.

(Inherited from DependencyObject) SetValue(DependencyPropertyKey, Object)

Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.

(Inherited from DependencyObject) ShouldSerializeProperty(DependencyProperty)

Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.

(Inherited from DependencyObject) ToString()

Creates a string representation of this object based on the current culture.

(Inherited from ImageSource) ToString(IFormatProvider)

Creates a string representation of this object based on the IFormatProvider passed in. If the provider is null , the CurrentCulture is used.

(Inherited from ImageSource) VerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject) WritePostscript()

Raises the Changed event for the Freezable and invokes its OnChanged() method. Classes that derive from Freezable should call this method at the end of any API that modifies class members that are not stored as dependency properties.

(Inherited from Freezable) WritePreamble()

Verifies that the Freezable is not frozen and that it is being accessed from a valid threading context. Freezable inheritors should call this method at the beginning of any API that writes to data members that are not dependency properties.

(Inherited from Freezable)

Events

Occurs when the Freezable or an object it contains is modified.

(Inherited from Freezable) DecodeFailed

Occurs when the image fails to load, due to a corrupt image header.

Occurs when the bitmap content has been completely downloaded.

Occurs when the bitmap content failed to download.

Occurs when the download progress of the bitmap content has changed.

Explicit Interface Implementations

Formats the value of the current instance using the specified format.

Writeable Bitmap Класс

Определение

Предоставляет объект BitmapSource, в который можно осуществить запись и обновить. Provides a BitmapSource that can be written to and updated.

Примеры

В следующем примере показано, как WriteableBitmap можно использовать в качестве источника Image для рисования пикселей при перемещении мыши. The following example demonstrates how a WriteableBitmap can be used as the source of an Image to draw pixels when the mouse moves.

Комментарии

Используйте WriteableBitmap класс для обновления и отрисовки растрового изображения на основе каждого фрейма. Use the WriteableBitmap class to update and render a bitmap on a per-frame basis. Это полезно для создания алгоритмного содержимого, такого как изображение фрактала, и для визуализации данных, например, визуализатора музыки. This is useful for generating algorithmic content, such as a fractal image, and for data visualization, such as a music visualizer.

WriteableBitmapКласс использует два буфера. The WriteableBitmap class uses two buffers. Задний буфер выделяется в системной памяти и накапливает содержимое, которое в настоящее время не отображается. The back buffer is allocated in system memory and accumulates content that is not currently displayed. Передний буфер выделяется в системной памяти и содержит текущее отображаемое содержимое. The front buffer is allocated in system memory and contains the content that is currently displayed. Система отрисовки копирует передний буфер в видеопамять для отображения. The rendering system copies the front buffer to video memory for display.

Эти буферы используются двумя потоками. Two threads use these buffers. Поток пользовательского интерфейса создает пользовательский интерфейс, но не представляет его на экране. The user interface (UI) thread generates the UI but does not present it to the screen. Поток пользовательского интерфейса реагирует на пользовательский ввод, таймеры и другие события. The UI thread responds to user input, timers, and other events. Приложение может иметь несколько потоков пользовательского интерфейса. An application can have multiple UI threads. Поток отрисовки формирует и визуализирует изменения из потока пользовательского интерфейса. The render thread composes and renders changes from the UI thread. Существует только один поток отрисовки для каждого приложения. There is only one render thread per application.

Поток пользовательского интерфейса записывает содержимое в задний буфер. The UI thread writes content to the back buffer. Поток отрисовки считывает содержимое из переднего буфера и копирует его в видеопамять. The render thread reads content from the front buffer and copies it to video memory. Изменения в обратном буфере отправляются с измененными прямоугольными областями. Changes to the back buffer are tracked with changed rectangular regions.

Вызовите одну из WritePixels перегрузок, чтобы автоматически обновлять и отображать содержимое в обратном буфере. Call one of the WritePixels overloads to update and display content in the back buffer automatically.

Для более высокого контроля над обновлениями и многопоточного доступа к буферу заднего буфера используйте следующий рабочий процесс. For greater control over updates, and for multi-threaded access to the back buffer, use the following workflow.

Вызовите Lock метод, чтобы зарезервировать задний буфер для обновлений. Call the Lock method to reserve the back buffer for updates.

Получите указатель на задний буфер, обратившись к BackBuffer свойству. Obtain a pointer to the back buffer by accessing the BackBuffer property.

Запись изменений в задний буфер. Write changes to the back buffer. Другие потоки могут записывать изменения в задний буфер при WriteableBitmap блокировке. Other threads may write changes to the back buffer when the WriteableBitmap is locked.

Вызовите AddDirtyRect метод, чтобы указать изменившиеся области. Call the AddDirtyRect method to indicate areas that have changed.

Вызовите Unlock метод, чтобы освободить задний буфер и разрешить показ презентации на экране. Call the Unlock method to release the back buffer and allow presentation to the screen.

Когда обновления отправляются в поток отрисовки, поток отрисовки копирует измененные прямоугольники из заднего буфера в передний. When updates are sent to the rendering thread, the rendering thread copies the changed rectangles from the back buffer to the front buffer. Система отрисовки управляет этим обменом во избежание взаимоблокировок и перерисовки артефактов, таких как «уничтожение». The rendering system controls this exchange to avoid deadlocks and redraw artifacts, such as «tearing».

Конструкторы

Инициализирует новый экземпляр класса WriteableBitmap с использованием заданного типа BitmapSource. Initializes a new instance of the WriteableBitmap class using the given BitmapSource.

Инициализирует новый экземпляр класса WriteableBitmap с заданными параметрами. Initializes a new instance of the WriteableBitmap class with the specified parameters.

Свойства

Возвращает указатель на задний буфер. Gets a pointer to the back buffer.

Возвращает значение, указывающее количество байтов в одной строке данных о пикселях. Gets a value indicating the number of bytes in a single row of pixel data.

Возвращает значение, которое указывает, можно ли сделать объект неизменяемым. Gets a value that indicates whether the object can be made unmodifiable.

(Унаследовано от Freezable) DependencyObjectType

Возвращает объект DependencyObjectType , который заключает в оболочку тип CLR данного экземпляра. Gets the DependencyObjectType that wraps the CLR type of this instance.

(Унаследовано от DependencyObject) Dispatcher

Читайте также:  Windows 10 64 bit для ноутбука sony vaio

Возвращает объект Dispatcher, с которым связан этот объект DispatcherObject. Gets the Dispatcher this DispatcherObject is associated with.

(Унаследовано от DispatcherObject) DpiX

Возвращает горизонтальные точки на дюйм изображения (DPI). Gets the horizontal dots per inch (dpi) of the image.

(Унаследовано от BitmapSource) DpiY

Получает вертикальные точки на дюйм изображения (DPI). Gets the vertical dots per inch (dpi) of the image.

(Унаследовано от BitmapSource) Format

Возвращает исходный формат PixelFormat данных растрового изображения. Gets the native PixelFormat of the bitmap data.

(Унаследовано от BitmapSource) HasAnimatedProperties

Возвращает значение, которое указывает, сопоставлены ли один или несколько объектов AnimationClock любому из свойств зависимостей этого объекта. Gets a value that indicates whether one or more AnimationClock objects is associated with any of this object’s dependency properties.

(Унаследовано от Animatable) Height

Возвращает высоту исходного растрового изображения в единицах, не зависящих от устройства (1/1/96 дюйма на единицу). Gets the height of the source bitmap in device-independent units (1/96th inch per unit).

(Унаследовано от BitmapSource) IsDownloading

Получает значение, указывающее, находится ли содержимое BitmapSource в процессе загрузки. Gets a value that indicates whether the BitmapSource content is currently downloading.

(Унаследовано от BitmapSource) IsFrozen

Получает значение, указывающее, доступен ли объект для изменения в настоящее время. Gets a value that indicates whether the object is currently modifiable.

(Унаследовано от Freezable) IsSealed

Получает значение, указывающее, является ли этот экземпляр в данный момент запечатанным (доступным только для чтения). Gets a value that indicates whether this instance is currently sealed (read-only).

(Унаследовано от DependencyObject) Metadata

Получает метаданные, связанные с данным растровым изображением. Gets the metadata that is associated with this bitmap image.

(Унаследовано от BitmapSource) Palette

Получает цветовую палитру растрового изображения, если она задана. Gets the color palette of the bitmap, if one is specified.

(Унаследовано от BitmapSource) PixelHeight

Получает высоту растрового изображения в пикселях. Gets the height of the bitmap in pixels.

(Унаследовано от BitmapSource) PixelWidth

Получает ширину растрового изображения в пикселях. Gets the width of the bitmap in pixels.

(Унаследовано от BitmapSource) Width

Возвращает ширину точечного рисунка в единицах, независимых от устройства (1/1/96 дюйма на единицу). Gets the width of the bitmap in device-independent units (1/96th inch per unit).

(Унаследовано от BitmapSource)

Методы

Указывает измененную область растрового изображения. Specifies the area of the bitmap that changed.

Применяет AnimationClock к заданному DependencyProperty. Applies an AnimationClock to the specified DependencyProperty. Если свойство уже анимировано, используется эстафетное поведение SnapshotAndReplace. If the property is already animated, the SnapshotAndReplace handoff behavior is used.

(Унаследовано от Animatable) ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)

Применяет AnimationClock к заданному DependencyProperty. Applies an AnimationClock to the specified DependencyProperty. Если свойство уже является анимированным, используется указанное поведение HandoffBehavior. If the property is already animated, the specified HandoffBehavior is used.

(Унаследовано от Animatable) BeginAnimation(DependencyProperty, AnimationTimeline)

Применяет анимацию к указанному DependencyProperty. Applies an animation to the specified DependencyProperty. Анимация начинается при отрисовке следующего кадра. The animation is started when the next frame is rendered. Если указанное свойство уже анимировано, используется поведение перемещения SnapshotAndReplace. If the specified property is already animated, the SnapshotAndReplace handoff behavior is used.

(Унаследовано от Animatable) BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)

Применяет анимацию к указанному DependencyProperty. Applies an animation to the specified DependencyProperty. Анимация начинается при отрисовке следующего кадра. The animation is started when the next frame is rendered. Если указанное свойство уже является анимированным, используется указанное поведение HandoffBehavior. If the specified property is already animated, the specified HandoffBehavior is used.

(Унаследовано от Animatable) CheckAccess()

Определяет, имеет ли вызывающий поток доступ к этому DispatcherObject. Determines whether the calling thread has access to this DispatcherObject.

(Унаследовано от DispatcherObject) CheckIfSiteOfOrigin()

Проверяет, получено ли исходное содержимое точечного рисунка из известного узла источника. Checks whether the bitmap source content is from a known site of origin. Этот метод позволяет проверить безопасность операций копирования пикселей. This method is used to make sure that pixel copying operations are safe.

(Унаследовано от BitmapSource) ClearValue(DependencyProperty)

Очищает локальное значение свойства. Clears the local value of a property. Очищаемое свойство задается идентификатором DependencyProperty. The property to be cleared is specified by a DependencyProperty identifier.

(Унаследовано от DependencyObject) ClearValue(DependencyPropertyKey)

Очищает локальное значение доступного только для чтения свойства. Clears the local value of a read-only property. Очищаемое свойство задается ключом DependencyPropertyKey. The property to be cleared is specified by a DependencyPropertyKey.

(Унаследовано от DependencyObject) Clone()

Создает изменяемый клон данного объекта WriteableBitmap, делая глубокие копии значений этого объекта. Creates a modifiable clone of this WriteableBitmap, making deep copies of this object’s values. При копировании свойств зависимостей этот метод копирует ссылки на ресурсы и привязки данных (которые могут уже не быть разрешимыми), но не копирует анимации и их текущие значения. When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values.

Делает этот экземпляр глубокой копией указанного объекта BitmapSource. Makes this instance a deep copy of the specified BitmapSource. При копировании свойств зависимостей этот метод копирует ссылки на ресурсы и привязки данных (которые могут уже не быть разрешимыми), но не копирует анимации и их текущие значения. When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values.

(Унаследовано от BitmapSource) CloneCurrentValue()

Создает модифицируемый клон данного объекта ByteAnimationUsingKeyFrames, делая глубокие копии текущих значений этого объекта. Creates a modifiable clone of this ByteAnimationUsingKeyFrames object, making deep copies of this object’s current values. Ссылки на ресурсы, привязки данных и анимации не копируются, но копируются их текущие значения. Resource references, data bindings, and animations are not copied, but their current values are.

Делает этот экземпляр изменяемой глубокой копией указанной коллекции BitmapSource с использованием текущих значений свойств. Makes this instance a modifiable deep copy of the specified BitmapSource using current property values. Ссылки на ресурсы, привязки данных и анимации не копируются, но копируются их текущие значения. Resource references, data bindings, and animations are not copied, but their current values are.

(Унаследовано от BitmapSource) CoerceValue(DependencyProperty)

Приводит значение указанного свойства зависимостей. Coerces the value of the specified dependency property. Это осуществляется путем вызова какой-либо функции CoerceValueCallback, указанной в метаданных свойства зависимостей, которое существует в вызывающем объекте DependencyObject. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.

(Унаследовано от DependencyObject) CopyPixels(Array, Int32, Int32)

Копирует данные пикселей растрового изображения в массив пикселей с заданным шагом начиная с заданного смещения. Copies the bitmap pixel data into an array of pixels with the specified stride, starting at the specified offset.

(Унаследовано от BitmapSource) CopyPixels(Int32Rect, Array, Int32, Int32)

Копирует данные пикселей растрового изображения из заданного прямоугольника в массив пикселей с заданным шагом начиная с заданного смещения. Copies the bitmap pixel data within the specified rectangle into an array of pixels that has the specified stride starting at the specified offset.

(Унаследовано от BitmapSource) CopyPixels(Int32Rect, IntPtr, Int32, Int32)

Копирует данные пикселей растрового изображения в пределах заданного прямоугольника. Copies the bitmap pixel data within the specified rectangle.

(Унаследовано от BitmapSource) CreateInstance()

Инициализирует новый экземпляр класса Freezable. Initializes a new instance of the Freezable class.

(Унаследовано от Freezable) CreateInstanceCore()

Если реализуется в производном классе, создает новый экземпляр производного класса Freezable. When implemented in a derived class, creates a new instance of the Freezable derived class.

Читайте также:  Какие папки можно удалять с диска с windows 10

(Унаследовано от Freezable) Equals(Object)

Определяет, является ли указанный DependencyObject эквивалентом текущего DependencyObject. Determines whether a provided DependencyObject is equivalent to the current DependencyObject.

(Унаследовано от DependencyObject) Freeze()

Делает текущий объект неизменяемым и присваивает его свойству IsFrozen значение true . Makes the current object unmodifiable and sets its IsFrozen property to true .

(Унаследовано от Freezable) FreezeCore(Boolean)

Делает экземпляр BitmapSource или производный класс постоянным. Makes an instance of BitmapSource or a derived class immutable.

(Унаследовано от BitmapSource) GetAnimationBaseValue(DependencyProperty)

Возвращает не анимированное значение указанного объекта DependencyProperty. Returns the non-animated value of the specified DependencyProperty.

(Унаследовано от Animatable) GetAsFrozen()

Создает фиксированную копию объекта Freezable, используя базовые (не анимационные) значения свойств. Creates a frozen copy of the Freezable, using base (non-animated) property values. Так как копия является фиксированной, копируются только ссылки на фиксированные вложенные объекты. Because the copy is frozen, any frozen sub-objects are copied by reference.

(Унаследовано от Freezable) GetAsFrozenCore(Freezable)

Делает этот экземпляр клоном указанного объекта BitmapSource. Makes this instance a clone of the specified BitmapSource object.

(Унаследовано от BitmapSource) GetCurrentValueAsFrozen()

Создает фиксированную копию объекта Freezable с использованием текущих значений свойств. Creates a frozen copy of the Freezable using current property values. Так как копия является фиксированной, копируются только ссылки на фиксированные вложенные объекты. Because the copy is frozen, any frozen sub-objects are copied by reference.

(Унаследовано от Freezable) GetCurrentValueAsFrozenCore(Freezable)

Делает этот экземпляр зафиксированным клоном указанного объекта BitmapSource. Makes this instance a frozen clone of the specified BitmapSource. Ссылки на ресурсы, привязки данных и анимации не копируются, но копируются их текущие значения. Resource references, data bindings, and animations are not copied, but their current values are.

(Унаследовано от BitmapSource) GetHashCode()

Возвращает хэш-код для данного объекта DependencyObject. Gets a hash code for this DependencyObject.

(Унаследовано от DependencyObject) GetLocalValueEnumerator()

Создает специализированный перечислитель для определения свойств зависимостей, которые локально установили значения для данного DependencyObject. Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.

(Унаследовано от DependencyObject) GetType()

Возвращает объект Type для текущего экземпляра. Gets the Type of the current instance.

(Унаследовано от Object) GetValue(DependencyProperty)

Возвращает текущее действующее значение свойства зависимостей в этом экземпляре DependencyObject. Returns the current effective value of a dependency property on this instance of a DependencyObject.

(Унаследовано от DependencyObject) InvalidateProperty(DependencyProperty)

Повторно вычисляет действующее значение для указанного свойства зависимостей. Re-evaluates the effective value for the specified dependency property.

(Унаследовано от DependencyObject) Lock()

Резервирует задний буфер для обновлений. Reserves the back buffer for updates.

Создает неполную копию текущего объекта Object. Creates a shallow copy of the current Object.

(Унаследовано от Object) OnChanged()

Вызывается при изменении текущего объекта Freezable. Called when the current Freezable object is modified.

(Унаследовано от Freezable) OnFreezablePropertyChanged(DependencyObject, DependencyObject)

Обеспечивает создание соответствующих указателей контекста для элемента данных типа DependencyObjectType, который был только что задан. Ensures that appropriate context pointers are established for a DependencyObjectType data member that has just been set.

(Унаследовано от Freezable) OnFreezablePropertyChanged(DependencyObject, DependencyObject, DependencyProperty)

Этот элемент поддерживает инфраструктуру Windows Presentation Foundation (WPF) и не предназначен для непосредственного использования из кода. This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

(Унаследовано от Freezable) OnPropertyChanged(DependencyPropertyChangedEventArgs)

Переопределяет реализацию DependencyObject для OnPropertyChanged(DependencyPropertyChangedEventArgs), чтобы также вызвать любой обработчик Changed в ответ на изменение свойства зависимостей типа Freezable. Overrides the DependencyObject implementation of OnPropertyChanged(DependencyPropertyChangedEventArgs) to also invoke any Changed handlers in response to a changing dependency property of type Freezable.

(Унаследовано от Freezable) ReadLocalValue(DependencyProperty)

Возвращает локальное значение свойства зависимостей, если таковое существует. Returns the local value of a dependency property, if it exists.

(Унаследовано от DependencyObject) ReadPreamble()

Обеспечивает доступ к Freezable из допустимого потока. Ensures that the Freezable is being accessed from a valid thread. Наследники объекта Freezable должны вызывать данный метод в начале любого API, который считывает элементы данных, не являющиеся свойствами зависимостей. Inheritors of Freezable must call this method at the beginning of any API that reads data members that are not dependency properties.

(Унаследовано от Freezable) SetCurrentValue(DependencyProperty, Object)

Задает значение свойства зависимостей, не меняя источник значения. Sets the value of a dependency property without changing its value source.

(Унаследовано от DependencyObject) SetValue(DependencyProperty, Object)

Задает локальное значение свойства зависимостей, указанного идентификатором этого свойства. Sets the local value of a dependency property, specified by its dependency property identifier.

(Унаследовано от DependencyObject) SetValue(DependencyPropertyKey, Object)

Задает локальное значение свойства зависимости только для чтения, определяемое идентификатором DependencyPropertyKey свойства зависимостей. Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.

(Унаследовано от DependencyObject) ShouldSerializeProperty(DependencyProperty)

Возвращает значение, которое указывает, следует ли процессам сериализации выполнять сериализацию значения для предоставленного свойства зависимостей. Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.

(Унаследовано от DependencyObject) ToString()

Создает строковое представление данного объекта на базе языка и региональных параметров. Creates a string representation of this object based on the current culture.

(Унаследовано от ImageSource) ToString(IFormatProvider)

Создает строковое представление данного объекта на основе переданного объекта IFormatProvider. Creates a string representation of this object based on the IFormatProvider passed in. Если значение поставщика равно null , используется CurrentCulture. If the provider is null , the CurrentCulture is used.

(Унаследовано от ImageSource) TryLock(Duration)

Пытается заблокировать растровое изображение, ожидая не больше указанного периода времени. Attempts to lock the bitmap, waiting for no longer than the specified length of time.

Освобождает задний буфер, чтобы сделать его доступным для отображения. Releases the back buffer to make it available for display.

Обеспечивает наличие у вызывающего потока доступ к этому DispatcherObject. Enforces that the calling thread has access to this DispatcherObject.

(Унаследовано от DispatcherObject) WritePixels(Int32Rect, Array, Int32, Int32)

Обновляет пиксели в заданной области растрового изображения. Updates the pixels in the specified region of the bitmap.

Обновляет пиксели в заданной области растрового изображения. Updates the pixels in the specified region of the bitmap.

Обновляет пиксели в заданной области растрового изображения. Updates the pixels in the specified region of the bitmap.

Обновляет пиксели в заданной области растрового изображения. Updates the pixels in the specified region of the bitmap.

Вызывает событие Changed для объекта Freezable и вызывает его метод OnChanged(). Raises the Changed event for the Freezable and invokes its OnChanged() method. Классы, производные от Freezable, должны вызывать этот метод в конце любого API, который изменяет члены класса, не сохраненные в виде свойств зависимостей. Classes that derive from Freezable should call this method at the end of any API that modifies class members that are not stored as dependency properties.

(Унаследовано от Freezable) WritePreamble()

Проверяет, что объект Freezable не заморожен и доступ к нему осуществляется из допустимого контекста потока. Verifies that the Freezable is not frozen and that it is being accessed from a valid threading context. Наследники объекта Freezable должны вызывать данный метод в начале любого API, который выполняет запись в элементах данных, не являющихся свойствами зависимостей. Freezable inheritors should call this method at the beginning of any API that writes to data members that are not dependency properties.

(Унаследовано от Freezable)

События

Происходит, когда изменяется класс Freezable или объект, который входит в его состав. Occurs when the Freezable or an object it contains is modified.

(Унаследовано от Freezable) DecodeFailed

Происходит при неудаче загрузки изображения вследствие повреждения его заголовка. Occurs when the image fails to load, due to a corrupt image header.

(Унаследовано от BitmapSource) DownloadCompleted

Происходит при полном завершении загрузки содержимого точечного рисунка. Occurs when the bitmap content has been completely downloaded.

(Унаследовано от BitmapSource) DownloadFailed

Происходит при невозможности загрузки содержимого точечного рисунка. Occurs when the bitmap content failed to download.

(Унаследовано от BitmapSource) DownloadProgress

Происходит при изменении состояния хода загрузки содержимого точечного рисунка. Occurs when the download progress of the bitmap content has changed.

(Унаследовано от BitmapSource)

Явные реализации интерфейса

Форматирует значение текущего экземпляра с использованием указанного формата. Formats the value of the current instance using the specified format.

Оцените статью