jingwood/d2dlib

Suggestion: Add Direct2D counterparts for GetPixel, SetPixel and Graphics.FromImage

Open

#61 建立於 2021年4月7日

在 GitHub 查看
 (6 留言) (0 反應) (0 負責人)C# (48 fork)github user discovery
enhancementhelp wantedtodo

倉庫指標

Star
 (260 star)
PR 合併指標
 (PR 指標待抓取)

描述

I need to pick a color from a bitmap, but the GetPixel function only exists in the default Bitmap class. Also graphics from image would allow drawing on top of an existing bitmap and not creating a blank one, which Device.CreateBitmapGraphics is doing.

Edit: You can make an empty graphic and draw the bitmap on it, but I meant that you can't directly edit the existing bitmap, just paste it onto the graphic, and there's no way to get the result back.

貢獻者指南