jingwood/d2dlib

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

Open

#61 ouverte le 7 avr. 2021

Voir sur GitHub
 (6 commentaires) (0 réactions) (0 assignés)C# (48 forks)github user discovery
enhancementhelp wantedtodo

Métriques du dépôt

Stars
 (260 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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.

Guide contributeur