Win: WindowsDrawPictureIntoDeviceContextMBS

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


💬 Ask a question or report a problem