Platforms to show: All Mac Windows Linux Cross-Platform

BMPStringtoPictureMBS(data as string) as picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Pictures Import and Export MBS Picture Plugin 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Reads a BMP picture from a string.
Example
dim p as Picture = LogoMBS(500)
dim s as string = p.BMPDataMBS
dim q as Picture = BMPStringtoPictureMBS(s)
window1.Backdrop = q

This function is endian safe and supports 1, 4, 8, 16, 24, 32 bit BMP images.
For 32bit images the alpha value is ignored.
Returns nil on any error.
Only uncompressed BMP files are supported.

Some examples using this global method:

Some FAQ entries about this method:

Blog Entries

Xojo Developer Magazine

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


The biggest plugin in space...