Table of Contents

Method CreateAlphaDataFromPtr

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

CreateAlphaDataFromPtr(int, int, IntPtr)

Creates array of alpha components with the specified size and copies alpha component data from the source pointer.

public static byte[] CreateAlphaDataFromPtr(int width, int height, IntPtr source)

Parameters

width int

Image width.

height int

Image height.

source nint

Pointer to the alpha component data (array of bytes).

Returns

byte[]