New to Telerik UI for WPFStart a free 30-day trial

Represents a bitmap in 32bit ARGB format.

Definition

Namespace:Telerik.Windows.Media.Imaging

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class RadBitmapData

Inheritance: objectRadBitmapData

Constructors

Initializes a new instance of the RadBitmapData class.

C#
public RadBitmapData(int width, int height, int[] pixels)
Parameters:widthint

The width.

heightint

The height.

pixelsint[]

The pixels.

Initializes a new instance of the RadBitmapData class.

C#
public RadBitmapData(int width, int height)
Parameters:widthint

The width.

heightint

The height.

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

C#
public RadBitmapData(RadBitmapData other)
Parameters:otherRadBitmapData

Properties

Gets the height of the image in pixels.

C#
public int PixelHeight { get; }
Property Value:

The height of the image in pixels.

Gets the pixels.

C#
public int[] Pixels { get; }

Gets the width of the image in pixels.

C#
public int PixelWidth { get; }
Property Value:

The width of the image in pixels.

Methods

Gets the color of the pixel.

C#
public Color GetPixelColor(int x, int y)
Parameters:xint

The x coordinate of the pixel.

yint

The y coordinate of the pixel.

Returns:

Color

Sets the color of the pixel.

C#
public void SetPixelColor(int x, int y, Color color)
Parameters:xint

The x coordinate of the pixel.

yint

The y coordinate of the pixel.

colorColor

The color.