Hello,
I am trying to draw a rectangle over a texture:
spriteBatch.Begin();
texture.Draw(device, spriteBatch, Vector2.Zero, new Rectangle(0,0, texture.Width, texture.Height), 0, clipRectangle);
spriteBatch.End();
Brush selectedColorBrush = new SolidColorBrush(target2D, new Color4(new Color3(255,0,0), 50), null);
target2D.BeginDraw();
target2D.FillRectangle(rectangle, selectedColorBrush);
target2D.EndDraw();
But it drown without transparency:
What did I do wrong?
P.S. I cannot use a Bitmap class because "D2DERR_UNSUPPORTED_PIXEL_FORMAT/UnsupportedPixelFormat"
Thank you for your attention.