Platforms to show: All Mac Windows Linux Cross-Platform
JPEG
Classes and functions for handling JPEG picture files.
- Globals
- JPEGStringToPictureMBS(buf as string) as picture
- JPEGStringToPictureMBS(buf as string,allowdamaged as Boolean) as picture
- PictureToJPEGStringMBS(pic as picture, quality as Integer = 80) as string
- Classes
- class JPEG2000MBS
- method Close
- method Compress as Boolean
- shared method Decode(Data as MemoryBlock) as Picture
- shared method Decode(Data as string) as Picture
- shared method Encode(pic as picture, Quality as Integer = 80) as MemoryBlock
- method GetRow(Index as Integer, Row as MemoryBlock = nil) as MemoryBlock
- method InitCompress(Width as Integer, Height as Integer, BytesPerPixel as Integer, BytesPerRow as Integer = 0) as Boolean
- method InitDecompress(ImageData as MemoryBlock) as Boolean
- method SetRow(Index as Integer, Row as MemoryBlock) as Boolean
- property BytesPerPixel as Integer
- property BytesPerRow as Integer
- property Height as Integer
- property ImageData as MemoryBlock
- property Options as String
- property Width as Integer
- class JPEGExporterMBS
- 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)
- shared method GetJPEGVersion as String
- shared method SetAPI(API as Ptr = nil)
- shared property API as String
- 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
- 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)
- class JPEGImporterMarkerMBS
- property Data as String
- property DataLength as Integer
- property Marker as Integer
- property OriginalLength as Integer
- class JPEGImporterMBS
- method BlueTestPicture as picture
- method CleanMarkers
- method FinishJPEG
- shared method GetJPEGVersion as String
- 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
- shared method SetAPI(API as Ptr = nil)
- property AllowDamaged as boolean
- shared property API as String
- 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
- 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)
- class JPEGMovieMBS
- method AddFrame(Image as MemoryBlock)
- method AddFrame(Image as String)
- method BuildMovie as String
- property Duration as Double
- property FrameCount as Integer
- property Height as Integer
- property SecondsPerFrame as Double
- property TimeScale as Integer
- property Width as Integer
- class JPEGTransformationMBS
- method close
- method Transform as boolean
- property CopyOption as Integer
- property DebugLevel as Integer
- property ErrorCode as Integer
- property ErrorMessage as String
- property Grayscale as Boolean
- property InputFile as FolderItem
- property MaxMemoryToUse as Integer
- property MirrorHorizonal as Boolean
- property MirrorVertical as Boolean
- property OptimizeCoding as Boolean
- property OutputFile as FolderItem
- property Progressive as Boolean
- property Rotate180 as Boolean
- property Rotate270 as Boolean
- property Rotate90 as Boolean
- property Transpose as Boolean
- property Transverse as Boolean
- property Trim as Boolean
- property WarningMessage as String
- event Error(message as string, ErrorCode as Integer)
- event Info(message as string, msglevel as Integer, ErrorCode as Integer)
- event Warning(message as string, ErrorCode as Integer)
- class JPEG2000MBS
- Class Extensions
- class FolderItem
- method OpenAsJPEGMBS as picture
- method OpenAsJPEGMBS(allowdamaged as Boolean) as picture
- method OpenAsJPEGMBS(allowdamaged as Boolean,fileposition as Integer) as picture
- method SaveAsJPEGMBS(pic as picture, quality as Integer = 80) as boolean
- class FolderItem
- Modules
- module JPEGTurboMBS
- method API as Ptr
- method GetJPEGVersion as String
- const Version = "2.0.3"
- module JPEGTurboMBS
Release notes
- Version 21.1
- Added ResolutionUnit constants to JPEGExporterMBS class.
- Version 20.2
- Fixed a bug in JPEGDecompress plugin part with data structure alignment on Linux, which caused crash in JPEGStringToPictureMBS function.
- Version 20.1
- Added ExifOrientation property for JPEGImporterMBS class.
- Added ExifThumbnail property to JPEGImporterMBS 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 JPEGTurboMBS module to use libjpeg-turbo in Xojo.
- Added API functions to JPEGImporterMBS and JPEGExporterMBS class.
- Added path property to JPEGExporterMBS and JPEGImporterMBS classes.
- Version 18.4
- Raised limit for JPEGMovieMBS class to make larger videos.
- Version 18.2
- Added JPEGImporterMBS.ProgressiveMode property.
- Version 17.3
- Added GetJPEGVersion to JPEGImporterMBS and JPEGExporterMBS classes.
- Version 17.2
- Added JPEGMovieMBS class.
The items on this page are in the following plugins: MBS Images Plugin.