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
PictureToJPEGStringMBS(pic as picture, quality as Integer = 80) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This methods saves 32bit pictures to a file using JPEG Compression. Using the parameter you can specify the quality in range between 25 and 100%
The picture should be a bitmap picture without alpha channel or mask.
Use the JPEGExporterMBS class for more options.
The returned string has the encoding set to binary (no encoding). If you want to concat the string with another you should change the encoding, so both strings have the same encoding. If you don't handle that RB may convert the JPEG data to UTF8 (Unicode) which will destroy it.
The picture is always encoded with 72 dpi. If you want to set a different dpi value, please use the JPEGExporterMBS class.
The items on this page are in the following plugins: MBS Images Plugin.