Platforms to show: All Mac Windows Linux Cross-Platform
JPEGImporterMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This class is not depending on any library! It works without QuickTime even on System 7, but as it contains everything needed this method is around 100 KB big!
Bases on libjpeg.
- 4 events
- event Error(message as string, ErrorCode as Integer)
- event HeadersRead as boolean
- event Info(message as string, msglevel as Integer, ErrorCode as Integer)
- event Warning(message as string, ErrorCode as Integer)
- 34 properties
- property AllowDamaged as boolean
- property BlockSmoothing as Boolean
- property CMYK as Boolean
- property ColorComponentCount as Integer
- property ColorSpace as Integer
- property CurrentDepth as Integer
- property data as string
- property ErrorMessage as string
- property ExifData as String
- property ExifOrientation as Integer
- property ExifThumbnail as String
- property FancyUpsampling as Boolean
- property file as folderitem
- property FileOffset as Integer
- property Height as Integer
- property HorizontalResolution as Integer
- property Mode as Integer
- property OriginalDepth as Integer
- property Path as String
- property Picture as Picture
- property PictureData as MemoryBlock
- property ProfileData as String
- property ProgressiveMode as Boolean
- property ReadExifData as Boolean
- property ReadMarkers as Boolean
- property ReadProfileData as Boolean
- property ReadXMPData as Boolean
- property ResolutionUnit as Integer
- property ScaleFactor as Integer
- property VerticalResolution as Integer
- property WarningMessage as String
- property Width as Integer
- property XMPData as String
- property YieldTicks as Integer
- shared property API as String
- 12 methods
- method BlueTestPicture as picture
- method CleanMarkers
- method FinishJPEG
- method GreenTestPicture as picture
- method Import
- method ImportCMYK
- method InitJPEG as boolean
- method LoopJPEG as Integer
- method MarkerCount as Integer
- method MarkerItem(index as Integer) as JPEGImporterMarkerMBS
- method ReadHeader as boolean
- method RedTestPicture as picture
- 2 shared methods
- shared method GetJPEGVersion as String
- shared method SetAPI(API as Ptr = nil)
- 24 constants
Color Spaces
Constant | Value | Description |
---|---|---|
ColorSpaceCMYK | 4 |
C/M/Y/K Example |
ColorSpaceGrayScale | 1 |
Gray |
ColorSpaceRGB | 2 |
red/green/blue |
ColorSpaceUnknown | 0 |
Not set. |
ColorSpaceYCbCr | 3 |
Y/Cb/Cr (also known as YUV) |
ColorSpaceYCCK | 5 |
Y/Cb/Cr/K |
Orientation Constants
Constant | Value | Description |
---|---|---|
kOrientationBottomLeft | 4 |
row 0 bottom, col 0 lhs |
kOrientationBottomRight | 3 |
row 0 bottom, col 0 rhs |
kOrientationLeftBottom | 8 |
row 0 lhs, col 0 bottom |
kOrientationLeftTop | 5 |
row 0 lhs, col 0 top |
kOrientationRightBottom | 7 |
row 0 rhs, col 0 bottom |
kOrientationRightTop | 6 |
row 0 rhs, col 0 top |
kOrientationTopLeft | 1 |
row 0 top, col 0 lhs |
kOrientationTopRight | 2 |
row 0 top, col 0 rhs |
Modes
Constant | Value | Description |
---|---|---|
ModeAuto | 30 |
Load the image into the picturedata property. Switches on import to RGB, Gray or CMYK depending on color space of JPEG file. Example |
ModeAutoByRow | 31 |
Load the image into the picturedata property. Switches on import to RGB, Gray or CMYK depending on color space of JPEG file. Example |
ModeCMYK | 2 |
Load the image into the picturedata property. The PictureData Memoryblock uses 4 bytes per pixel. |
ModeCMYKbyRow | 12 |
Same as ModeCMYK, but PictureData contains only the current row The PictureData Memoryblock uses 4 bytes per pixel. |
ModeGray | 3 |
Load the image into the picturedata property. The PictureData Memoryblock uses one byte per pixel. Example |
ModeGraybyRow | 13 |
Same as ModeGray, but PictureData contains only the current row The PictureData Memoryblock uses one byte per pixel. |
ModePicture | 0 |
Load the image into the picture property. |
ModeRaw | 20 | Load the image into the picturedata property. more |
ModeRGB | 1 |
Load the image into the picturedata property. The PictureData Memoryblock uses 3 bytes per pixel. Example |
ModeRGBbyRow | 11 |
Same as ModeRGB, but PictureData contains only the current row The PictureData Memoryblock uses 3 bytes per pixel. |
This class has no sub classes.
Some examples using this class:
- /DynaPDF/Image to PDF/Image to pdf
- /Images/JPEG/JPEG Benchmark
- /Images/JPEG/JPEG Modes
- /Images/JPEG/LoadAsJPEG Example
- /Images/JPEG/Quickly generate previews for JPEG and Tiff
- /Images/JPEG/StringToJPEG Example
- /Images/JPEG/Test on damaged JPEGs
- /Images/LargePicture/CMYK/PictureMBS with CMYK
- /Images/LargePicture/JPEG Modes
- /Images/LCMS2/Convert image to sRGB JPEG
Blog Entries
- News from the MBS Xojo Plugins Version 20.1
- MonkeyBread Software Releases the MBS Xojo Plugins in version 20.1
- MBS Xojo Plugins, version 20.1pr6
- MBS Xojo Plugins, version 20.1pr5
- Reading JPEG Thumbnails from EXIF
- MBS Xojo Plugins, version 19.5pr7
- libjpeg-turbo for Xojo
- ICC color profiling
- JPEG String to Picture
- MonkeyBread Software Releases the MBS REALbasic plug-ins 8.4
Xojo Developer Magazine
- 18.3, page 10: News
- 17.5, page 40: What's New in the MBS Plugins, With the Plugins growing every year, here are new capabilities you may have missed by Stefanie Juchmes
Release notes
- Version 20.1
- Added ExifOrientation property for JPEGImporterMBS class.
- Added ExifThumbnail property to JPEGImporterMBS class.
- Version 19.5
- Added API functions to JPEGImporterMBS and JPEGExporterMBS class.
- Added path property to JPEGExporterMBS and JPEGImporterMBS classes.
- Version 18.2
- Added JPEGImporterMBS.ProgressiveMode property.
- Version 17.3
- Added GetJPEGVersion to JPEGImporterMBS and JPEGExporterMBS classes.
The items on this page are in the following plugins: MBS Images Plugin.
JPEGImporterMarkerMBS - JPEGMovieMBS