Class RadBitmapData
Represents a bitmap in 32bit ARGB format.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Media.Imaging
Assembly: Telerik.Windows.Controls.dll
Syntax
public class RadBitmapData
Constructors
RadBitmapData(Int32, Int32)
Initializes a new instance of the RadBitmapData class.
Declaration
public RadBitmapData(int width, int height)
Parameters
System.Int32
width
The width. |
System.Int32
height
The height. |
RadBitmapData(Int32, Int32, Int32[])
Initializes a new instance of the RadBitmapData class.
Declaration
public RadBitmapData(int width, int height, int[] pixels)
Parameters
System.Int32
width
The width. |
System.Int32
height
The height. |
System.Int32[]
pixels
The pixels. |
RadBitmapData(RadBitmapData)
Initializes a new instance of the RadBitmapData class from another instance.
Declaration
public RadBitmapData(RadBitmapData other)
Parameters
RadBitmapData
other
|
Properties
PixelHeight
Gets the height of the image in pixels.
Declaration
public int PixelHeight { get; }
Property Value
System.Int32
The height of the image in pixels. |
Pixels
Gets the pixels.
Declaration
public int[] Pixels { get; }
Property Value
System.Int32[]
|
PixelWidth
Gets the width of the image in pixels.
Declaration
public int PixelWidth { get; }
Property Value
System.Int32
The width of the image in pixels. |
Methods
GetPixelColor(Int32, Int32)
Gets the color of the pixel.
Declaration
public Color GetPixelColor(int x, int y)
Parameters
System.Int32
x
The x coordinate of the pixel. |
System.Int32
y
The y coordinate of the pixel. |
Returns
System.Windows.Media.Color
|
SetPixelColor(Int32, Int32, Color)
Sets the color of the pixel.
Declaration
public void SetPixelColor(int x, int y, Color color)
Parameters
System.Int32
x
The x coordinate of the pixel. |
System.Int32
y
The y coordinate of the pixel. |
System.Windows.Media.Color
color
The color. |