Platforms to show: All Mac Windows Linux Cross-Platform

WindowsDrawPictureIntoDeviceContextMBS(pic as picture, HDC as Integer, x as Integer, y as Integer, w as Integer, h as Integer, Transparent as boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Graphics & Pictures MBS Win Plugin 11.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Draws a Xojo Picture into a HDC on Windows.
Example
// get a picture
dim logo as Picture = LogoMBS(500)

// get HDC
dim h as Integer = g.Handle(g.HandleTypeHDC)

// and draw into it
WindowsDrawPictureIntoDeviceContextMBS(logo, h, 0, 0, 500, 500, false)

Some SDKs from other companies give you sometimes HDC value to draw your stuff inside. You can prepare a Xojo picture and copy it into the HDC.
Specify rectangle and whether to use transparency.

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...