Platforms to show: All Mac Windows Linux Cross-Platform
Back to FolderItem class.
FolderItem.OpenAsJPEGMBS as picture
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
A short version of OpenAsJPEG with fileposition=0 and allowdamage=false.
See also:
- OpenAsJPEGMBS(allowdamaged as Boolean) as picture
- OpenAsJPEGMBS(allowdamaged as Boolean,fileposition as Integer) as picture
Some examples using this method:
FolderItem.OpenAsJPEGMBS(allowdamaged as Boolean) as picture
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
A short version of OpenAsJPEG with fileposition=0.
See also:
Some examples using this method:
FolderItem.OpenAsJPEGMBS(allowdamaged as Boolean,fileposition as Integer) as picture
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This methods should read all JPEG files you can get, but I've only tested it for 32 bit color and 8 bit grayscale.
This method is not depending on any library! It works without QuickTime even on System 7, but as it contains everything needed this method is around 120 KB big!
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 folder "jpeg load crashtest" in the examples.
The two parameters are both optional. The second is to give a file position to start reading. This way you can load several JPEGs from different file position from one file.
See also:
Some examples using this method:
The items on this page are in the following plugins: MBS Images Plugin.