MatthiWare
Gebruiker
- Lid geworden
- 2 jul 2011
- Berichten
- 282
Dit is de code:
De byte's enz. snap ik wel maar vooral het is vooral de int rgba.
Alvast bedankt
Code:
byte B = Marshal.ReadByte(bitmapData.Scan0, offset++);
byte G = Marshal.ReadByte(bitmapData.Scan0, offset++);
byte R = Marshal.ReadByte(bitmapData.Scan0, offset++);
byte A = Marshal.ReadByte(bitmapData.Scan0, offset++);
int rgba = B | (G << 8) | (R << 16) | (A << 24); // <- deze
De byte's enz. snap ik wel maar vooral het is vooral de int rgba.
Alvast bedankt
