As implementation already said, it should work, but why don’t you just try it out? On a side note, I find using hexadecimal numbers for bitshifting a little confusing, but maybe that’s just me.
where Alpha is ignored by the
GDI.
Actually, it isn’t ignored, but it represents a palette entry instead of an alpha value.