Click or drag to resize

BitmapDataTranslateArgbToData Method

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

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

Parameters

argb
Type: SystemInt32
ARGB pixel value to translate into the platform-specific format

Return Value

Type: Int32
Platform-specific format of the pixels that can be set directly onto the data
Remarks
Use this method to translate an ARGB (Alpha in most significant) to the value required by the bitmap for the pixel. Each platform can have a different pixel format, and this allows you to abstract setting the data directly. The ARGB value can be easily retrieved using ToArgb. For non-alpha bitmaps, the alpha component will be ignored
See Also