Метод | Описание | |
---|---|---|
CopyPixels ( |
Requests pixels from this BitmapSource. Derived classes must override CopyPixelsCommon to implement custom logic. |
|
CopyPixels ( System.Windows.Int32Rect sourceRect, |
Requests pixels from this BitmapSource. Derived classes must override CopyPixelsCommon to implement custom logic. |
|
CopyPixels ( System.Windows.Int32Rect sourceRect, |
Requests pixels from this BitmapSource. Derived classes must override CopyPixelsCommon to implement custom logic. |
Метод | Описание | |
---|---|---|
CloneCore ( System.Windows.Freezable source ) : void |
Copies data into a cloned instance. When Freezable is cloned, WPF will make deep clones of all writable, locally-set properties including expressions. The property's base value is copied -- not the current value. WPF skips read only DPs. If you derive from this class and have additional non-DP state that should be transfered to copies, you should override the CopyCommon method. |
|
CloneCurrentValueCore ( System.Windows.Freezable source ) : void |
Copies data into a cloned instance. When a Freezable's "current value" is cloned, WPF will make deep clones of the "current values" of all writable, locally-set properties. This has the effect of resolving expressions to their values. WPF skips read only DPs. If you derive from this class and have additional non-DP state that should be transfered to copies, you should override the CopyCommon method. |
|
CopyCore ( |
Copies data into a cloned instance. Override this method if you have additional non-DP state that should be transfered to clones. |
|
CopyPixelsCore ( System.Windows.Int32Rect sourceRect, int stride, int bufferSize, |
Requests pixels from this BitmapSource. This is the main image processing routine. It instructs the BitmapSource instance to produce pixels according to its algorithm - this may involve decoding a portion of a JPEG stored on disk, copying a block of memory, or even analytically computing a complex gradient. The algorithm is completely dependent on the implementation. Implementation of this method must only write to the first (rc.Width*PixelFormat.BitsPerPixel+7)/8 bytes of each line of the output buffer (in this case, a line is a consecutive string of "stride" bytes). |
|
CreateInstanceCore ( ) : System.Windows.Freezable |
Creates an instance of a CustomBitmap. The default implementation uses reflection to create a new instance of this type. Derived classes may override this method if they wish to provide a more performant implementation, or if their type does not have a public default constructor. |
|
GetAsFrozenCore ( System.Windows.Freezable source ) : void |
Copies data into a cloned instance. Freezable.GetAsFrozen is semantically equivalent to Freezable.Clone().Freeze(), except that you can avoid copying any portions of the Freezable graph which are already frozen. If you derive from this class and have additional non-DP state that should be transfered to copies, you should override the CopyCommon method. |
|
GetCurrentValueAsFrozenCore ( System.Windows.Freezable source ) : void |
Copies data into a cloned instance. Freezable.GetCurrentValueAsFrozen is semantically equivalent to Freezable.CloneCurrentValue().Freeze(), except that WPF will avoid copying any portions of the Freezable graph which are already frozen. If you derive from this class and have additional non-DP state that should be transfered to copies, you should override the CopyCommon method. |
|
RaiseDecodeFailed ( ExceptionEventArgs e ) : void |
Raises the decode failed event.
|
|
RaiseDownloadCompleted ( ) : void |
Raises the dowload completed event.
|
|
RaiseDownloadFailed ( ExceptionEventArgs e ) : void |
Raises the dowload failed event.
|
|
RaiseDownloadProgress ( System.Windows.Media.Imaging.DownloadProgressEventArgs e ) : void |
Raises the dowload progress event.
|
Метод | Описание | |
---|---|---|
ValidateArrayAndGetInfo ( |
Get the size of the specified array and of the elements in it.
|
protected final CloneCore ( System.Windows.Freezable source ) : void | ||
source | System.Windows.Freezable | /// The original instance to copy data from. /// |
Результат | void |
protected final CloneCurrentValueCore ( System.Windows.Freezable source ) : void | ||
source | System.Windows.Freezable | /// The original instance to copy data from. /// |
Результат | void |
protected CopyCore ( |
||
original | /// The original instance to copy data from. /// | |
useCurrentValue | bool | /// Whether or not to copy the current value of expressions, or the /// expressions themselves. /// |
willBeFrozen | bool | /// Indicates whether or not the clone will be frozen. If the /// clone will be immediately frozen, there is no need to clone /// data that is already frozen, you can just share the instance. /// |
Результат | void |
public final CopyPixels ( |
||
pixels | /// The destination array of pixels. /// | |
stride | int | /// The stride of the destination array. /// |
offset | int | /// The starting index within the destination array to copy to. /// |
Результат | void |
public final CopyPixels ( System.Windows.Int32Rect sourceRect, |
||
sourceRect | System.Windows.Int32Rect | /// The rectangle of pixels to copy. /// |
pixels | /// The destination array of pixels. /// | |
stride | int | /// The stride of the destination array. /// |
offset | int | /// The starting index within the destination array to copy to. /// |
Результат | void |
public final CopyPixels ( System.Windows.Int32Rect sourceRect, |
||
sourceRect | System.Windows.Int32Rect | /// The rectangle of pixels to copy. /// |
buffer | /// The destination buffer of pixels. /// | |
bufferSize | int | /// The size of the buffer, in bytes. /// |
stride | int | /// The stride of the destination buffer. /// |
Результат | void |
protected CopyPixelsCore ( System.Windows.Int32Rect sourceRect, int stride, int bufferSize, |
||
sourceRect | System.Windows.Int32Rect | |
stride | int | /// Defines the count of bytes between two vertically adjacent /// pixels in the output buffer. /// |
bufferSize | int | /// The size /// |
buffer | /// The caller controls the memory management and must provide an /// output buffer of sufficient size to complete the call based on /// the width, height and pixel format of the bitmap and the /// sub-rectangle provided to the copy method. /// | |
Результат | void |
protected CreateInstanceCore ( ) : System.Windows.Freezable | ||
Результат | System.Windows.Freezable |
protected final GetAsFrozenCore ( System.Windows.Freezable source ) : void | ||
source | System.Windows.Freezable | /// The original instance to copy data from. /// |
Результат | void |
protected final GetCurrentValueAsFrozenCore ( System.Windows.Freezable source ) : void | ||
source | System.Windows.Freezable | /// The original instance to copy data from. /// |
Результат | void |
protected RaiseDecodeFailed ( ExceptionEventArgs e ) : void | ||
e | ExceptionEventArgs | |
Результат | void |
protected RaiseDownloadCompleted ( ) : void | ||
Результат | void |
protected RaiseDownloadFailed ( ExceptionEventArgs e ) : void | ||
e | ExceptionEventArgs | |
Результат | void |
protected RaiseDownloadProgress ( System.Windows.Media.Imaging.DownloadProgressEventArgs e ) : void | ||
e | System.Windows.Media.Imaging.DownloadProgressEventArgs | |
Результат | void |