Platforms to show: All Mac Windows Linux Cross-Platform
JPEGExporterMBS 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 GetRowData(index as Integer) as memoryblock
- event Info(message as string, msglevel as Integer, ErrorCode as Integer)
- event Warning(message as string, ErrorCode as Integer)
- 19 properties
- property data as string
- property DCTMethod as Integer
- property ErrorCode as Integer
- property ErrorMessage as string
- property EXIFData as String
- property file as folderitem
- property HorizontalResolution as Integer
- property OptimizeCoding as Boolean
- property Path as String
- property Picture as Picture
- property ProfileData as String
- property Progressive as Boolean
- property Quality as Integer
- property ResolutionUnit as Integer
- property VerticalResolution as Integer
- property WarningMessage as String
- property XMPData as String
- property YieldTicks as Integer
- property Markers(Index as Integer) as string
- shared property API as String
- 6 methods
- method Export
- method ExportCMYK(data as memoryblock, width as UInt32, height as UInt32, rowbytes as UInt32)
- method ExportGray
- method ExportGray(data as memoryblock, width as UInt32, height as UInt32, rowbytes as UInt32)
- method ExportRGB(data as memoryblock, width as UInt32, height as UInt32, rowbytes as UInt32)
- method ExportRGBwithRowDataEvent(width as UInt32, height as UInt32, rowbytes as UInt32)
- 2 shared methods
- shared method GetJPEGVersion as String
- shared method SetAPI(API as Ptr = nil)
- 3 constants
Resolution Unit
Constant | Value | Description |
---|---|---|
ResolutionUnitDotsPerCentimeter | 2 |
Dots per centimeter |
ResolutionUnitDotsPerInch | 1 |
Dots per inch |
ResolutionUnitUnknown | 0 |
Undefined |
This class has no sub classes.
Blog Entries
- MBS Xojo Plugins, version 21.1pr7
- MBS Xojo Plugins, version 20.0pr7
- MBS Xojo Plugins, version 19.6pr4
- MBS Xojo Plugins, version 19.5pr7
- libjpeg-turbo for Xojo
- MBS Xojo Plugins, version 19.5pr6
- MBS Xojo Plugins, version 17.3pr5
- ICC color profiling
- Making use of the WebFileUploader
- MonkeyBread Software Releases the MBS REALbasic plug-ins 8.4
Release notes
- Version 21.1
- Added ResolutionUnit constants to JPEGExporterMBS class.
- Version 20.0
- Fixed crash with LibJPEGTurbo when using JPEGExporterMBS class with memory allocation and file handling.
- Fixed problem with Progressive property in JPEGExporterMBS not always being used.
- Version 19.5
- Added API functions to JPEGImporterMBS and JPEGExporterMBS class.
- Added path property to JPEGExporterMBS and JPEGImporterMBS classes.
- Version 17.3
- Added GetJPEGVersion to JPEGImporterMBS and JPEGExporterMBS classes.
- Version 17.1
- Added JPEGExporterMBS.ExportGray with memoryblock for pixel data.
Some examples using this class:
- /Images/JPEG/JPEGToString example
- /Images/JPEG/PNG to JPEG with ICC Profile
- /Images/JPEG/Recompress JPEGs
- /Images/JPEG/Turbo JPEG Test
- /Images/LargePicture/CMYK/PictureMBS with CMYK
- /Images/LargePicture/JPEG Save
- /Images/LCMS2/Apple ICC Profile to JPEG File
- /Images/LCMS2/CMYK/CMYK Example
- /Images/LCMS2/Convert image to sRGB JPEG
- /MacCF/ColorSync/Colorsync Transform to CMYK
Some related classes:
The items on this page are in the following plugins: MBS Images Plugin.
JPEG2000MBS - JPEGImporterMarkerMBS
