byte Alpha; byte Red; byte Green; byte Blue; int RGB; .... private long ARGB() { long functionReturnValue = 0; if (Alpha > 127) { functionReturnValue = ((Alpha - 128) * 0x1000000 | 0x80000000) | Red | (Green * 0x100L) | (Blue * 0x10000); } else { functionReturnValue = (Alpha * 0x1000000) | Red | (Green * 0x100L) | (Blue * 0x10000); } return functionReturnValue; RGB = Alpha & Red & Green & Blue; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)