We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de8e4da commit 2b4f395Copy full SHA for 2b4f395
src/D2DLibExport/D2DDevice.cs
@@ -177,6 +177,12 @@ public D2DLayer CreateLayer()
177
[DllImport("gdi32.dll")]
178
public static extern bool DeleteObject(IntPtr obj);
179
180
+ public D2DBitmap CreateBitmapFromHBitmap(HWND hbmp, bool useAlphaChannel)
181
+ {
182
+ HANDLE d2dbmp = D2D.CreateBitmapFromHBitmap(this.Handle, hbmp, useAlphaChannel);
183
+ return d2dbmp == HANDLE.Zero ? null : new D2DBitmap(d2dbmp);
184
+ }
185
+
186
public D2DBitmap CreateBitmapFromGDIBitmap(System.Drawing.Bitmap bmp)
187
{
188
bool useAlphaChannel =
0 commit comments