applying texture to bitmap [modified]
-
Trying to emulate the code presented in this article: http://www.codeproject.com/vb/net/bitmapTxtr.asp The method employed in the article is the following 1) Convert texture to grayscale by a method which results in the R, G, and B channels being identical. 2) Make the alpha channel the same as the other three channels as well. Then, 3) Scale the alpha channel by some percentage indicating desired degree of transparency ('float textureTransparency' in code from article) 4) Draw Texture to Bitmap. The code I've written is not identical to that from the article but *should* be effectively the same. However, in my code if I leave out step 2 completely, it makes no difference - the visible results are exactly the same (meaning in my own application the results are the same - I didn't use bitmap from article). This is not what I would expect. I think the article writer said he was primarily a VB programmer, so he may not know what he's doing. (I'm not an expert in GDI+ either.) Should step 2 change the results or not? Can someone answer this definitively? -- modified at 15:16 Friday 3rd August, 2007