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
)
Public MustOverride Function TranslateDataToArgb (
bitmapData As Integer
) As Integer
abstract TranslateDataToArgb :
bitmapData : int -> int
Parameters
- bitmapData
- Type: SystemInt32
Platform specific bitmap data for a pixel to translate
Return Value
Type:
Int32Translated 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