Class
RadBitmapData

Represents a bitmap in 32bit ARGB format.

Definition

Namespace:Telerik.Windows.Media.Imaging

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class RadBitmapData

Inheritance: objectRadBitmapData

Constructors

RadBitmapData(RadBitmapData)

Initializes a new instance of the RadBitmapData class from another instance.

Declaration

cs-api-definition
public RadBitmapData(RadBitmapData other)

Parameters

other

RadBitmapData

RadBitmapData(int, int)

Initializes a new instance of the RadBitmapData class.

Declaration

cs-api-definition
public RadBitmapData(int width, int height)

Parameters

width

int

The width.

height

int

The height.

RadBitmapData(int, int, int[])

Initializes a new instance of the RadBitmapData class.

Declaration

cs-api-definition
public RadBitmapData(int width, int height, int[] pixels)

Parameters

width

int

The width.

height

int

The height.

pixels

int[]

The pixels.

Properties

PixelHeight

Gets the height of the image in pixels.

Declaration

cs-api-definition
public int PixelHeight { get; }

Property Value

int

The height of the image in pixels.

PixelWidth

Gets the width of the image in pixels.

Declaration

cs-api-definition
public int PixelWidth { get; }

Property Value

int

The width of the image in pixels.

Pixels

Gets the pixels.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public int[] Pixels { get; }

Property Value

int[]

Methods

GetPixelColor(int, int)

Gets the color of the pixel.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "x")]
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "y")]
public Color GetPixelColor(int x, int y)

Parameters

x

int

The x coordinate of the pixel.

y

int

The y coordinate of the pixel.

Returns

Color

SetPixelColor(int, int, Color)

Sets the color of the pixel.

Declaration

cs-api-definition
[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

int

The x coordinate of the pixel.

y

int

The y coordinate of the pixel.

color

Color

The color.