Platforms to show: All Mac Windows Linux Cross-Platform
Back to JPEGImporterMBS class.
JPEGImporterMBS.AllowDamaged as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If AllowDamaged is false, nil will be returned if the picture is damaged.
Default value is false.
(Read and Write property)
JPEGImporterMBS.BlockSmoothing as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 12.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Default value is true.
This setting is relevant only when decoding a progressive JPEG image. During the first DC-only scan, block smoothing provides a very "fuzzy" look instead of the very "blocky" look seen without it; which is better seems a matter of personal taste. But block smoothing is nearly always a win during later stages, especially when decoding a successive-approximation image: smoothing helps to hide the slight blockiness that otherwise shows up on smooth gradients until the lowest coefficient bits are sent.
(Read and Write property)
JPEGImporterMBS.CMYK as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 3.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This property sets the Mode property to ModeCMYK.
(Read and Write property)
JPEGImporterMBS.ColorComponentCount as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 3.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
1 | Grayscale |
3 | RGB |
4 | CMYK |
Some examples using this property:
JPEGImporterMBS.ColorSpace as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 13.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also the Colorspace constants.
(Read and Write property)
JPEGImporterMBS.CurrentDepth as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
In the current implementation always 32bit.
0 if the loading of the picture failed.
(Read and Write property)
Some examples using this property:
JPEGImporterMBS.data as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If file is nil, the compressed data is taken from this property.
(Read and Write property)
JPEGImporterMBS.ErrorMessage as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
(Read and Write property)
JPEGImporterMBS.ExifData as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 8.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Only used when ReadExifData is set to true before you import the image.
The string contains the binary content of a exif data on disc.
Value is "" if no data was found.
(Read and Write property)
JPEGImporterMBS.ExifOrientation as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
ReadExifData property must be set earlier to have the import process load EXIF data.
Returns -1 in case of error.
Valid values are in range of 1 to 8. See kOrientation* constants.
For new development, please use ExifTagsMBS class instead.
(Read only property)
Some examples using this property:
JPEGImporterMBS.ExifThumbnail as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
ReadExifData property must be set earlier to have the import process load EXIF data.
Returns string containing JPEG compressed image data.
For new development, please use ExifTagsMBS class instead.
(Read only property)
JPEGImporterMBS.FancyUpsampling as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 12.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Default value is true.
If true, use direct DCT scaling with DCT size > 8 for downsampling of chroma components. If false, use only DCT size <= 8 and simple separate downsampling. Default is true. For better image stability in multiple generation compression cycles it is preferable that this value matches the corresponding FancyUpsampling value in decompression.
(Read and Write property)
JPEGImporterMBS.file as folderitem
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If file is nil and path is "", the source is taken from the data property.
(Read and Write property)
JPEGImporterMBS.FileOffset as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
(Read and Write property)
JPEGImporterMBS.Height as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
0 if the loading of the picture failed.
(Read and Write property)
JPEGImporterMBS.HorizontalResolution as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 3.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
(Read and Write property)
JPEGImporterMBS.Mode as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 8.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Can be either ModePicture (Default), ModeRGB or ModeCMYK.
(Read and Write property)
JPEGImporterMBS.OriginalDepth as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Value maybe 8 for grayscale pictures and 24 or 32 for colored pictures.
0 if the loading of the picture failed.
(Read and Write property)
JPEGImporterMBS.Path as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 19.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If file is nil and path is "", the source is taken from the data property.
(Read and Write property)
JPEGImporterMBS.Picture as Picture
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Set to nil on any error.
(Read and Write property)
JPEGImporterMBS.PictureData as MemoryBlock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 3.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Basicly a memoryblock with one byte for each channel.
For ReadByRow methods this property contains memoryblock for a row of the image.
(Read and Write property)
JPEGImporterMBS.ProfileData as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 7.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Only used when ReadProfileData is set to true before you import the image.
The string contains the binary content of a profile file on disc. So you can pass it to the CMOpenProfileFromDataMBS function or write it to a file using the binarystream class.
Value is "" if no profile was found.
(Read and Write property)
JPEGImporterMBS.ProgressiveMode as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 18.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Loading progressive files needs more memory.
(Read and Write property)
JPEGImporterMBS.ReadExifData as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 8.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If there is exif data, it will be stored in the ExifData property.
Setting this value to true will set ReadMarkers to true, too.
The data is stored in one or more markers, so it is needed to read them before extracting the data.
(Read and Write property)
Some examples using this property:
JPEGImporterMBS.ReadMarkers as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 6.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
(Read and Write property)
Some examples using this property:
JPEGImporterMBS.ReadProfileData as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 7.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If there is a profile, it will be stored in the ProfileData property.
Setting this value to true will set ReadMarkers to true, too.
A profile is stored in one or more markers, so it is needed to read them before extracting the profile.
(Read and Write property)
Some examples using this property:
JPEGImporterMBS.ReadXMPData as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 8.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If there is xmp data, it will be stored in the XMPData property.
Setting this value to true will set ReadMarkers to true, too.
The data is stored in one or more markers, so it is needed to read them before extracting the data.
(Read and Write property)
JPEGImporterMBS.ResolutionUnit as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 3.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Values:
0 | unknown |
1 | dots per inch |
2 | dots per cm |
JPEGImporterMBS.ScaleFactor as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 10.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Allowed values: 0, 1, 2, 4, 8
0 and 1 disable scaling.
Default valus is 0 for no scaling.
(Read and Write property)
JPEGImporterMBS.VerticalResolution as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 3.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
(Read and Write property)
JPEGImporterMBS.WarningMessage as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 8.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
(Read and Write property)
JPEGImporterMBS.Width as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
0 if the loading of the picture failed.
(Read and Write property)
JPEGImporterMBS.XMPData as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 8.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Only used when ReadXMPData is set to true before you import the image.
The string contains the binary content of a xmp data on disc.
Value is "" if no data was found.
(Read and Write property)
JPEGImporterMBS.YieldTicks as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 7.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If value is greater than zero, the application will yield to another RB thread after the given number of ticks have passed. 60 ticks are one second. Using a small value can slow down processing a lot while a big value keeps your application not responding to mouse clicks.
If you use this property with e.g. 6 as the value, you may also want to use this method in a thread so you can handle mouse events or let Xojo redraw a progressbar.
(Read and Write property)
The items on this page are in the following plugins: MBS Images Plugin.
