You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Direct2D Bitmaps and the alpha channel is set to true.
If the alpha channel is set to false, all transparent pixels in the overlayed image are opaque. If set to true, the fully transparent pixels are transparent, but semi transparent pixels are fully opaque (incorrect layering).
For example, in the image above the coordinate system arrows are surrounded with semi transparent pixels that are showing up as fully opaque whitish pixels. When drawn with GDI+ these are not white.
When using the DrawBitmap method to draw one bitmap over another, all semi-transparent pixels show up as fully opaque.
g.DrawBitmap(backImage, this.ClientRectangle);
g.DrawBitmap(frontImage, new D2DRect(0, 0, frontImage.Width, frontImage.Height), 1, D2DBitmapInterpolationMode.Linear);
The text was updated successfully, but these errors were encountered: