MBS Plugin Documentation

Search:

Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchie

New in Version 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 8.0 8.1 8.2 8.3 8.4 8.5 8.6 8.7 9.0

The list of the   themes,   classes,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items

JPEGImporterMBS.ReadHeader as boolean
method, Pictures Import and Export, MBS JPEG Plugin (JPEGDecompression), class JPEGImporterMBS, Console safe, Plugin version: 3.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Read the header of the JPEG data in a file or a memoryblock.
Example:
dim f as FolderItem
dim j as JPEGImporterMBS

f=DesktopFolder.Child("Jaguar1600.jpg")
j=new JPEGImporterMBS
j.file=f
if j.ReadHeader then
MsgBox str(j.Width)+" x "+str(j.Height)
else
MsgBox "no JPEG"
end if

Notes: You can use this function to see if the file is a JPEG image and which dimension it has.
JPEGImporterMBS.ReadMarkers as Boolean
property, Pictures Import and Export, MBS JPEG Plugin (JPEGDecompression), class JPEGImporterMBS, Console safe, Plugin version: 6.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Whether importer should read markers.
Notes: (Read and Write property)
JPEGImporterMBS.ReadProfileData as Boolean
property, Pictures Import and Export, MBS JPEG Plugin (JPEGDecompression), class JPEGImporterMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Whether the plugin should read in the icc profile.
Notes:
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)
JPEGImporterMBS.ReadXMPData as Boolean
property, Pictures Import and Export, MBS JPEG Plugin (JPEGDecompression), class JPEGImporterMBS, Console safe, Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Whether the plugin should read in the xmp data.
Notes:
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.RedTestPicture as picture
method, Pictures Import and Export, MBS JPEG Plugin (JPEGDecompression), class JPEGImporterMBS, Plugin version: 5.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: Returns a 100x100 pixel big picture filles with RGB(255,0,0).
Notes: Just for testing how well the plugin picture code works.
JPEGImporterMBS.ResolutionUnit as Integer
property, Pictures Import and Export, MBS JPEG Plugin (JPEGDecompression), class JPEGImporterMBS, Console safe, Plugin version: 3.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The unit of the resolution properties.
Notes:
Values:
0unknown
1dots per inch
2dots per cm
(Read and Write property)
JPEGImporterMBS.UseTempMemory as boolean
property, Pictures Import and Export, MBS JPEG Plugin (JPEGDecompression), class JPEGImporterMBS, Console safe, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: whether to use temporary memory for the bitmap or not.
Notes:
On Mac OS Classic this can save a lot of memory.
With MBS Plugin 3.1 this property is no longer used as all picture functions will try to use temporary memory first before trying heap memory.
(Read and Write property)
JPEGImporterMBS.VerticalResolution as Integer
property, Pictures Import and Export, MBS JPEG Plugin (JPEGDecompression), class JPEGImporterMBS, Console safe, Plugin version: 3.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The vertical resolution.
Notes: (Read and Write property)
JPEGImporterMBS.Warning(message as string)
event, Pictures Import and Export, MBS JPEG Plugin (JPEGDecompression), class JPEGImporterMBS, Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: This events reports all warning messages from the jpeg library.
JPEGImporterMBS.WarningMessage as String
property, Pictures Import and Export, MBS JPEG Plugin (JPEGDecompression), class JPEGImporterMBS, Console safe, Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The last warning message reported.
Notes: (Read and Write property)
JPEGImporterMBS.Width as integer
property, Pictures Import and Export, MBS JPEG Plugin (JPEGDecompression), class JPEGImporterMBS, Console safe, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The width of the picture.
Notes:
0 if the loading of the picture failed.
(Read and Write property)
JPEGImporterMBS.XMPData as String
property, Pictures Import and Export, MBS JPEG Plugin (JPEGDecompression), class JPEGImporterMBS, Console safe, Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: The XMP Data stored in the file.
Notes:
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
property, Pictures Import and Export, MBS JPEG Plugin (JPEGDecompression), class JPEGImporterMBS, Console safe, Plugin version: 7.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.

Function: How much time is given back to REALbasic for other ticks.
Example:
YieldTicks=6 // only use 1/10th of a second

Notes:
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 REALbasic redraw a progressbar.
(Read and Write property)

The items on this page are in the following plugins: MBS JPEG Plugin.