Platforms to show: All Mac Windows Linux Cross-Platform
JPEGStringToPictureMBS(buf as string) as picture
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Short version of the "JPEGStringToPicture(buf as string,allowdamaged as Boolean) as picture" method. allowdamaged is set to false.
See also:
Some examples using this global method:
- /Cameras/NikonCamera/Nikon Live View and Capture
- /CURL/CURLS SSL verification/CURLS SSL verification
- /Encryption/Base 64/Base64 and JPEG
- /Images/JPEG/Picture Database
- /Images/JPEG/Turbo JPEG Test
- /MacBase/NSURLConnection test
- /MacCocoa/NSURLConnection test
- /Picture/DiffPicturesMBS test
- /Picture/Picture Difference
- /Picture/StringToPicture
Some FAQ entries about this method:
JPEGStringToPictureMBS(buf as string,allowdamaged as Boolean) as picture
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This methods should read all JPEG file data you can get, but I've only tested it for 32 bit color and 8 bit grayscale.
I wrote it mainly because Xojo's built in OpenAsJPEG code crashes badly if your picture is not full downloaded. For example if you have a webbrowser you can now show JPEGs while you download them. Normally you can see a good picture allready with 50% of the data.
Xojo's OpenAsPicture in contrast crashes if the picture is not 100% downloaded or instead of a crash you get a white picture.
See the "JPEGToString example", "jpeg load crashtest" and "SaveJPEG without QuickTime" examples.
See also:
Some examples using this global method:
- /Compression/GZip/GZip with String
- /CURL/CURLS picture download
- /Encryption/Base 64/Base64 and JPEG
- /Images/JPEG/JPEGToString example
- /MacCocoa/NSURLConnection test
- /MacOSX/Image Capture
- /Main/Picture Benchmark
- /Picture/DiffPicturesMBS test
- /Picture/Picture Difference
- /Picture/Picture To String
Some FAQ entries about this method:
Blog Entries
The items on this page are in the following plugins: MBS Images Plugin.