Win32 Application draw on HBITMAP

60 views
Skip to first unread message

Hamdi Menawer

unread,
Oct 11, 2015, 3:46:45 PM10/11/15
to skia-discuss
Is there anyway to create a skCanvas from HBITMAP?

Note: My application is running under windows.

Cary Clark

unread,
Oct 12, 2015, 8:16:26 AM10/12/15
to skia-d...@googlegroups.com
No. Windows' BITMAP struct supports options like color planes that Skia does not support. 

On Sun, Oct 11, 2015 at 3:46 PM, Hamdi Menawer <alda...@gmail.com> wrote:
Is there anyway to create a skCanvas from HBITMAP?

Note: My application is running under windows.

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/d/optout.

Robert Phillips

unread,
Oct 12, 2015, 9:01:44 AM10/12/15
to skia-d...@googlegroups.com
You could create a DIBSection (being sure to set biBitCount to 32 in the BITMAPINFOHEADER) and then create an SkCanvas using the raw pixel data.
Reply all
Reply to author
Forward
0 new messages