I think this may do it too... I looked it up in my .NET book and it says
this example:
' Create a clone bithman, and make it transparent
dim bmp as new bitmap("c:\image.bmp")
' define transparency level
dim transparency as single = 0.8
' create 5x5 matric with transparency val in position (4,4)
dim values()() as single = {new single(){1,0,0,0,0}, _
new single() {0,1,0,0,0}, _
new single() {0,0,1,0,0}, _
new single() {0,0,0,transparency,0}, _
new single() {0,0,0,0,1}}
' use matrix to initialize new color matrix object
dim colMatrix as new ColorMatrix(values)
' create an imageattribute object, and assign its color matrix
dim imgAttr as new imageattributes()
imgAttr.SetColorMatrix(colMatrix,ColorMatrixFlag.D efault _
colorAdjustType.Bitmap)
'draw the bitmap using specificed image attributes
gr.drawImage(bmp,new
rectangle(200,20,bmp.width,bmp.height),0,0,bmp.wid th,bmp.height, _
graphicunit.pixel,imageAttr)
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2g***********@uni-berlin.de...
* "Brian Henry" <brianiup[nospam]@adelphia.net> scripsit: ick, I was hopeing to go the rought of not manuall changeing the alpha
channel pixel by pixel.. I thought I saw in one of my .NET books a
function to draw a image partly transparent with out doing this.
Maybe using a 'ColorMatrix' will have a better performance (untested!):
<URL:http://www.google.de/groups?selm=usT...FTNGP09.phx.gb
l>
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>