Table of Contents

Method CreateRgbDataFromPtr

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

CreateRgbDataFromPtr(int, int, IntPtr)

Creates array of RGBValue with the specified size and copies pixel data from the source pointer.

public static RGBValue[] CreateRgbDataFromPtr(int width, int height, IntPtr source)

Parameters

width int

Image width.

height int

Image height.

source nint

Pointer to the pixel data (array of RGBValue).

Returns

RGBValue[]