Click or drag to resize

BitmapDataTranslateDataToArgb Method

Translates the platform specific pixel format to a 32-bit ARGB value

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public abstract int TranslateDataToArgb(
	int bitmapData
)

Parameters

bitmapData
Type: SystemInt32
Platform specific bitmap data for a pixel to translate

Return Value

Type: Int32
Translated ARGB value from the bitmap data
Remarks
Use this method to translate an value from the bitmap data to a 32-bit ARGB (Alpha in most significant byte). Each platform can have a different pixel format, and this allows you to abstract getting the data into a 32-bit colour. The ARGB value can be easily handled using [C:Eto.Drawing.Color(uint)]. For non-alpha bitmaps, the alpha component will be ignored
See Also