jingwood / jingwood/d2dlib

Bitmap on Bitmap Transparency

Open
#71 3 comments 0 reactions 0 assignees View on GitHub
confirming
Dominant language
C#
Stars
261
Forks
48
PR merge metrics
No merged PRs in 30d

Description

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);

![image](https://user-images.githubusercontent.com/1911567/131260277-b60d1bb8-6f55-492b-9e58-af810d4d8c31.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.