D
Dan
Let's say I have 2 images A and B: if I want to display B over A with a
varying level of transparency, I can use a matrix to change the alpha value
e.g.
// ... draw image A ...
ColorMatrix cm = new ColorMatrix();
cm.Matrix33 = 50; // 50% opacity
ImageAttributes ia = new ImageAttributes();
ia.SetColorMatrix(cm, ColorMatrixFlag.Default, ColorAdjustType.Bitmap);
// ...draw image B using attributes ia...
Besides this, I'd also like to treat a single color value in B as a the
transparent color: i.e. if the B image has a black circle onto a white
background, I'd like to treat white (rgb FFFFFF) as fully transparent,
independently from the transparency value chosen for blending B with A (the
circle will be drawn onto A with the specified transparency level and its
white background will not be visible at all). How can I do this?
Thanks guys!
varying level of transparency, I can use a matrix to change the alpha value
e.g.
// ... draw image A ...
ColorMatrix cm = new ColorMatrix();
cm.Matrix33 = 50; // 50% opacity
ImageAttributes ia = new ImageAttributes();
ia.SetColorMatrix(cm, ColorMatrixFlag.Default, ColorAdjustType.Bitmap);
// ...draw image B using attributes ia...
Besides this, I'd also like to treat a single color value in B as a the
transparent color: i.e. if the B image has a black circle onto a white
background, I'd like to treat white (rgb FFFFFF) as fully transparent,
independently from the transparency value chosen for blending B with A (the
circle will be drawn onto A with the specified transparency level and its
white background will not be visible at all). How can I do this?
Thanks guys!