JPEGExporterMBS class
Online Documentation - Statistics - FAQ - Plugin Parts (All , Dependencies ) - Class hierarchy
New in Version
22.2
22.3
22.4
22.5
23.0
23.1
23.2
23.3
23.4
23.5
24.0
24.1
The list of the topics ,
classes ,
interfaces ,
controls ,
modules ,
global methods by category ,
global methods by name ,
screenshots ,
licenses
and examples .
Platforms to show: All Mac Windows Linux Cross-Platform
JPEGExporterMBS class
A class for JPEG Exporting.
Example
dim g as FolderItemdim ji as JPEGImporterMBS dim je as JPEGExporterMBSdim f as FolderItemdim m as MemoryBlock// this code copies a JPG: CMYK or RGB // import it g=SpecialFolder.Desktop.Child("PICT1533.JPG" ) ji=new JPEGImporterMBS ji.File=g ji.AllowDamaged=true ji.CMYK=true // if it is cmyk if ji.InitJPEG then do loop until ji.LoopJPEG<>0 ji.FinishJPEGend if // export it f=SpecialFolder.Desktop.child("PICT1533 copy.JPG" ) je=new JPEGExporterMBS je.File=f je.Quality=75if ji.CMYK then m=ji.PictureData je.ExportCMYK m, ji.Width, ji.Height, ji.Width*4 else je.Picture=ji.Picture je.Exportend if
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
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
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.
Some examples using this class:
Blog Entries
Release notes
Version 21.1
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
Version 17.3
Version 17.1
The items on this page are in the following plugins: MBS Images Plugin .
JPEG2000MBS
-
JPEGImporterMarkerMBS