Class RadBitmap
Represents a bitmap in 32bit ARGB format.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Media.Imaging
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public class RadBitmap
Constructors
RadBitmap(Int32, Int32, Int32[])
Initializes a new instance of the RadBitmap class by using a pixels array with a specified width and height.
Declaration
public RadBitmap(int width, int height, int[] pixels)
Parameters
System.
|
System.
|
System.
|
RadBitmap(Stream)
Initializes a new instance of the RadBitmap class using a Stream.
Declaration
public RadBitmap(Stream streamSource)
Parameters
System.
|
RadBitmap(BitmapSource)
Initializes a new instance of the RadBitmap class using a BitmapSource.
Declaration
public RadBitmap(BitmapSource image)
Parameters
Bitmap
|
RadBitmap(FrameworkElement)
RadBitmap(WriteableBitmap)
Initializes a new instance of the RadBitmap class using a WriteableBitmap as a source.
Declaration
public RadBitmap(WriteableBitmap writableBitmap)
Parameters
Writeable
|
RadBitmap(RadBitmap)
Initializes a new instance of the RadBitmap class copying the contents from another bitmap.
Declaration
public RadBitmap(RadBitmap other)
Parameters
Rad
|
RadBitmap(RadBitmapData)
Initializes a new instance of the RadBitmap class form an instance of RadBitmapData.
Declaration
public RadBitmap(RadBitmapData data)
Parameters
Rad
|
Properties
Bitmap
Gets the WriteableBitmap instance associated with this RadBitmap.
Declaration
public WriteableBitmap Bitmap { get; }
Property Value
Height
Gets the height in pixels of this RadBitmap.
Declaration
public int Height { get; }
Property Value
System.
|
Width
Gets the width in pixels of this RadBitmap.
Declaration
public int Width { get; }
Property Value
System.
|
Methods
Crop(Int32, Int32, Int32, Int32)
Returns a cropped copy of this RadBitmap.
Declaration
public RadBitmap Crop(int x, int y, int newWidth, int newHeight)
Parameters
System. The X coordinate of the crop rectangle. |
System. The Y coordinate of the crop rectangle. |
System. The width of the crop rectangle. |
System. The height of the crop rectangle. |
Returns
GetPixels()
Gets the pixels array of this RadBitmap in 32bit ARGB format.
Declaration
public int[] GetPixels()
Returns
System.
|
Resize(Int32, Int32)
Declaration
public RadBitmap Resize(int width, int height)
Parameters
System.
|
System.
|