ClassRadBitmapData
Represents a bitmap in 32bit ARGB format.
Definition
Namespace:Telerik.Windows.Media.Imaging
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class RadBitmapData
Inheritance: objectRadBitmapData
Constructors
RadBitmapData(RadBitmapData)
Initializes a new instance of the RadBitmapData class from another instance.
Declaration
public RadBitmapData(RadBitmapData other)
Parameters
other
RadBitmapData(int, int)
Initializes a new instance of the RadBitmapData class.
RadBitmapData(int, int, int[])
Initializes a new instance of the RadBitmapData class.
Properties
PixelHeight
Gets the height of the image in pixels.
Declaration
public int PixelHeight { get; }
Property Value
The height of the image in pixels.
PixelWidth
Gets the width of the image in pixels.
Declaration
public int PixelWidth { get; }
Property Value
The width of the image in pixels.
Methods
GetPixelColor(int, int)
Gets the color of the pixel.
Declaration
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "x")]
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "y")]
public Color GetPixelColor(int x, int y)
Parameters
x
The x coordinate of the pixel.
y
The y coordinate of the pixel.
Returns
Color
SetPixelColor(int, int, Color)
Sets the color of the pixel.
Declaration
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "x")]
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "y")]
public void SetPixelColor(int x, int y, Color color)
Parameters
x
The x coordinate of the pixel.
y
The y coordinate of the pixel.
color
Color
The color.