i.e something like;
1 2 3 4 5 6 7 8 9 10 11 12 13 | if ( alpha > 0 ) { if ( alpha == 255 ) { *destinationPixel = *sourcePixel; } else { // Do full alpha blending calculations here } } ++destinationPixel; ++sourcePixel; |
Hope this helps someone
Mike
1 2 3 4 5 6 7 8 9 10 11 12 13 | if ( alpha > 0 ) { if ( alpha == 255 ) { *destinationPixel = *sourcePixel; } else { // Do full alpha blending calculations here } } ++destinationPixel; ++sourcePixel; |
1 | if (255 = alpha) |